git.delta.rocks / jrsonnet / refs/commits / 7b01ecbd8fbc

difftreelog

source

crates/jrsonnet-parser/Cargo.toml1.2 KiBsourcehistory
1[package]2name = "jrsonnet-parser"3description = "jsonnet language parser and AST"4version.workspace = true5authors = ["Yaroslav Bolyukin <iam@lach.pw>"]6license = "MIT"7edition = "2021"89[features]10default = []11exp-destruct = []12# Implement serialization of AST using structdump13#14# Structdump generates code, which exactly replicated passed AST15# Contrary to serde, has no code bloat problem, and is recommended16#17# The only limitation is serialized form is only useable if built from build script18structdump = ["dep:structdump", "jrsonnet-interner/structdump"]19# Implement serialization of AST using serde20#21# Warning: as serde doesn't deduplicate strings, `Source` struct will bloat22# output binary with repeating source code. To resolve this issue, you should either23# override serialization of this struct using custom `Serializer`/`Deserializer`,24# not rely on Source, and fill its `source_code` with empty value, or use `structdump`25# instead26serde = ["dep:serde"]2728[dependencies]29jrsonnet-interner.workspace = true30jrsonnet-gcmodule = { version = "0.3.4" }3132static_assertions = "1.1"3334peg = "0.8.0"3536serde = { version = "1.0", features = ["derive", "rc"], optional = true }37structdump = { version = "0.2.0", features = ["derive"], optional = true }