1[package]2name = "jrsonnet-parser"3description = "jsonnet language parser and AST"4version.workspace = true5repository.workspace = true6authors = ["Yaroslav Bolyukin <iam@lach.pw>"]7license = "MIT"8edition = "2021"910[features]11default = []12exp-destruct = []13exp-null-coaelse = []14# Implement serialization of AST using structdump15#16# Structdump generates code, which exactly replicated passed AST17# Contrary to serde, has no code bloat problem, and is recommended18#19# The only limitation is serialized form is only useable if built from build script20structdump = ["dep:structdump", "jrsonnet-interner/structdump"]21# Implement serialization of AST using serde22#23# Warning: as serde doesn't deduplicate strings, `Source` struct will bloat24# output binary with repeating source code. To resolve this issue, you should either25# override serialization of this struct using custom `Serializer`/`Deserializer`,26# not rely on Source, and fill its `source_code` with empty value, or use `structdump`27# instead28serde = ["dep:serde"]2930[dependencies]31jrsonnet-interner.workspace = true32jrsonnet-gcmodule.workspace = true3334static_assertions = "1.1"3536peg = "0.8.1"3738serde = { workspace = true, features = ["derive", "rc"], optional = true }39structdump = { version = "0.2.0", features = ["derive"], optional = true }difftreelog
source
crates/jrsonnet-parser/Cargo.toml1.3 KiBsourcehistory