-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
62 lines (52 loc) · 2.19 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
51
52
53
54
55
56
57
58
59
60
61
62
[package]
name = "zod"
version = "0.1.0"
edition = "2021"
build = "build.rs"
description = "Rust integraions with the `zod` typescript library."
authors = ["Nicolai Unrein<[email protected]>"]
documentation = "https://docs.rs/zod"
repository = "https://github.com/nicolaiunrein/zod"
license = "MIT OR Apache-2.0"
[workspace]
package.edition = "2021"
package.description = "Rust integraions with the `zod` typescript library."
package.authors = ["Nicolai Unrein<[email protected]>"]
package.documentation = "https://docs.rs/zod"
package.repository = "https://github.com/nicolaiunrein/zod"
package.license = "MIT OR Apache-2.0"
members = [
"core",
"derive",
]
[dependencies]
# remember to update build-dependencies as well
zod-derive = { path = "./derive", version = "0.1.0" }
zod-core = { path = "./core", version = "0.1.0" }
# =========================== inventory dependencies ===========================
inventory = { version = "0.3.3", optional = true }
# ============================== rpc dependencies ==============================
async-trait = { version = "0.1.64", optional = true }
axum = { version = "0.6.7", features = ["ws", "headers"], optional = true }
futures = { version = "0.3.26", optional = true }
pin-project-lite = { version = "0.2.9", optional = true }
serde = { version = "1.0.152", features = ["derive"], optional = true }
serde_json = { version = "1.0.92", optional = true }
thiserror = { version = "1.0.38", optional = true }
tokio = { version = "1.25.0", optional = true }
tracing = { version = "0.1.37", optional = true }
[dev-dependencies]
paste = "1.0.11"
pretty_assertions = "1.3.0"
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.93"
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
trybuild = { version = "1.0.77", features = ["diff"] }
[build-dependencies]
zod-core = { path = "./core", version = "0.1.0" }
zod-derive = { path = "./derive", version = "0.1.0" }
[features]
default = ["rpc"]
rpc = ["dep:async-trait", "dep:axum", "dep:futures", "dep:inventory", "dep:pin-project-lite", "dep:serde", "dep:serde_json", "dep:thiserror", "dep:tokio", "dep:tracing"]
smol_str = ["zod-core/smol_str"]
ordered-float = ["zod-core/ordered-float"]