1[package]2name = "jrsonnet-parser"3description = "jsonnet language parser and AST"4authors.workspace = true5edition.workspace = true6license.workspace = true7repository.workspace = true8version.workspace = true910[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.workspace = true3536peg.workspace = true3738serde = { workspace = true, features = ["derive", "rc"], optional = true }39structdump = { workspace = true, features = ["derive"], optional = true }difftreelog
source
crates/jrsonnet-parser/Cargo.toml1.3 KiBsourcehistory