Current section
Files
Jump to
Current section
Files
native/rustyjson/Cargo.toml
[package]
name = "rustyjson"
version = "0.3.7"
authors = ["Jeff Huen"]
edition = "2021"
[lib]
name = "rustyjson"
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
[dependencies]
flate2 = "1.0"
rustler = { version = "0.37", features = ["big_integer"] }
serde = "1.0"
lazy_static = "1.0"
itoa = "1.0"
ryu = "1.0"
lexical-core = "1.0"
num-bigint = "0.4"
simdutf8 = "0.1"
smallvec = "1.13"
mimalloc = { version = "0.1", default-features = false, optional = true }
tikv-jemallocator = { version = "0.6", optional = true }
snmalloc-rs = { version = "0.3", optional = true }
[target.'cfg(target_env = "musl")'.dependencies]
mimalloc = { version = "0.1", default-features = false, optional = true, features = ["local_dynamic_tls"] }
[features]
default = ["mimalloc"]
mimalloc = ["dep:mimalloc"]
jemalloc = ["dep:tikv-jemallocator"]
snmalloc = ["dep:snmalloc-rs"]
# NIF version features for rustler_precompiled (OTP 24+ = 2.15, OTP 26 = 2.16, OTP 27+ = 2.17)
nif_version_2_15 = ["rustler/nif_version_2_15"]
nif_version_2_16 = ["rustler/nif_version_2_16"]
nif_version_2_17 = ["rustler/nif_version_2_17"]
bench = []
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
[[bench]]
name = "decode_bench"
harness = false
required-features = ["bench"]
[[bench]]
name = "encode_bench"
harness = false
required-features = ["bench"]