forked from madonoharu/tsify
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
50 lines (46 loc) · 1.32 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[package]
name = "tsify-next"
version = "0.5.4"
edition = "2021"
authors = [
"Madono Haru <[email protected]>",
"Jason Siefken <[email protected]>"
]
license = "MIT OR Apache-2.0"
description = "Tsify-next is a library for generating TypeScript definitions from rust code."
repository = "https://github.com/siefkenj/tsify"
homepage = "https://github.com/siefkenj/tsify"
keywords = ["wasm", "wasm-bindgen", "typescript"]
categories = ["wasm"]
[dependencies]
tsify-next-macros = { path = "tsify-next-macros", version = "0.5.4" }
wasm-bindgen = { version = "0.2.86", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
serde-wasm-bindgen = { version = "0.6", optional = true }
gloo-utils = { version = "0.2", optional = true }
[dev-dependencies]
indoc = "2.0.5"
js-sys = "0.3"
macrotest = "1.0"
pretty_assertions = "1.4.0"
wasm-bindgen-test = "0.3"
[features]
default = ["json"]
wasm-bindgen = ["tsify-next-macros/wasm-bindgen", "dep:wasm-bindgen"]
js = [
"wasm-bindgen",
"tsify-next-macros/js",
"dep:serde",
"dep:serde-wasm-bindgen"
]
json = [
"wasm-bindgen",
"tsify-next-macros/json",
"dep:serde",
"dep:gloo-utils",
"dep:serde_json",
]
[workspace]
members = ["tsify-next-macros", "tests-e2e/*"]
exclude = ["tests-e2e/reference_output"]