mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
merge codegen into main crate
This commit is contained in:
parent
c08f30a60c
commit
1a549b7c40
14 changed files with 261 additions and 890 deletions
21
Cargo.toml
21
Cargo.toml
|
|
@ -30,11 +30,16 @@ name = "schema"
|
|||
path = "src/bin/schema.rs"
|
||||
required-features = ["schema"]
|
||||
|
||||
[[bin]]
|
||||
name = "codegen"
|
||||
path = "src/bin/codegen.rs"
|
||||
required-features = ["codegen"]
|
||||
|
||||
[dependencies]
|
||||
bitbuffer = { version = "0.10.9", features = ["serde"] }
|
||||
num_enum = "0.5.7"
|
||||
num-traits = "0.2.15"
|
||||
enumflags2 = { version = "0.7.5", features = ["serde"] }
|
||||
enumflags2 = { version = "0.7.8", features = ["serde"] }
|
||||
snap = "1.1.0"
|
||||
serde = { version = "1.0.152", features = ["derive", "rc"] }
|
||||
serde_json = "1.0.91"
|
||||
|
|
@ -47,14 +52,26 @@ better-panic = { version = "0.3.0", optional = true }
|
|||
no-panic = { version = "0.1.17", optional = true }
|
||||
fnv = "1.0.7"
|
||||
steamid-ng = "1.0.0"
|
||||
schemars = { version = "0.8.11", optional = true }
|
||||
tracing = { version = "0.1.37", optional = true }
|
||||
tracing-subscriber = { version = "0.3.16", features = ["env-filter"], optional = true }
|
||||
itertools = "0.10.5"
|
||||
|
||||
# schema
|
||||
schemars = { version = "0.8.11", optional = true }
|
||||
|
||||
# codegen
|
||||
quote = { version = "1", optional = true }
|
||||
syn = { version = "1", features = ["full"], optional = true }
|
||||
Inflector = { version = "0.11", default-features = false, optional = true }
|
||||
proc-macro2 = { version = "1", optional = true }
|
||||
tempfile = { version = "3", optional = true }
|
||||
lazy_static = { version = "1", optional = true }
|
||||
prettyplease = { version = "0.1", optional = true }
|
||||
|
||||
[features]
|
||||
schema = ["schemars", "bitbuffer/schemars"]
|
||||
trace = ["tracing", "tracing-subscriber"]
|
||||
codegen = ["better-panic", "quote", "syn", "Inflector", "proc-macro2", "tempfile", "lazy_static", "prettyplease"]
|
||||
|
||||
[dev-dependencies]
|
||||
pretty_assertions = "1.3.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue