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 = []13# Implement serialization of AST using structdump14#15# Structdump generates code, which exactly replicated passed AST16# Contrary to serde, has no code bloat problem, and is recommended17#18# The only limitation is serialized form is only useable if built from build script19structdump = ["dep:structdump", "jrsonnet-interner/structdump"]20# Implement serialization of AST using serde21#22# Warning: as serde doesn't deduplicate strings, `Source` struct will bloat23# output binary with repeating source code. To resolve this issue, you should either24# override serialization of this struct using custom `Serializer`/`Deserializer`,25# not rely on Source, and fill its `source_code` with empty value, or use `structdump`26# instead27serde = ["dep:serde"]2829[dependencies]30jrsonnet-interner.workspace = true31jrsonnet-gcmodule.workspace = true3233static_assertions = "1.1"3435peg = "0.8.1"3637serde = { version = "1.0", features = ["derive", "rc"], optional = true }38structdump = { version = "0.2.0", features = ["derive"], optional = true }difftreelog
source
crates/jrsonnet-parser/Cargo.toml1.2 KiBsourcehistory