[go: up one dir, main page]

sonic-rs 0.1.3

Sonic-rs is a fast Rust JSON library based on SIMD
Documentation
[package]
name = "sonic-rs"
version = "0.1.3"
authors = ["Volo Team <volo@cloudwego.io>"]
edition = "2021"
description = "Sonic-rs is a fast Rust JSON library based on SIMD"
repository = "https://github.com/cloudwego/sonic-rs"
documentation = "https://docs.rs/sonic-rs"
license = "Apache-2.0"
readme = "README.md"
keywords = ["json", "simd", "serde", "serialization"]
categories = ["encoding", "parser-implementations"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cfg-if = "1.0"
arrayref = "0.3"
packed_simd = { version = "0.3", package = "packed_simd" }
serde = { version = "1.0", default-features = false }
itoa = "1.0"
ryu = "1.0"
faststr = "0.2"
smallvec = "1.11"
bumpalo = "3.13"
bytes = "1.4"
thiserror = "1.0"
simdutf8 = { version = "0.1", optional = true}

[dev-dependencies]
jemallocator =  "0.5"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
simd-json = "0.12"
core_affinity = "0.8"
criterion = { version = "0.5", features = ["html_reports"] }
gjson = "0.8"
serde_derive = "1.0"
env_logger = "0.10"
faststr = "0.2"
# This config will disable rustc-serialize crate to avoid security warnings in ci
json-benchmark = { git = "https://github.com/serde-rs/json-benchmark", default-features = false, features = ["all-files", "lib-serde"]}
paste = "1.0"
serde_bytes = "0.11"

[profile.release]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 1
panic = 'unwind'
incremental = false
overflow-checks = false

[[bench]]
name = "deserialize_struct"
harness = false

[[bench]]
name = "deserialize_value"
harness = false

[[bench]]
name = "serialize_struct"
harness = false

[[bench]]
name = "serialize_value"
harness = false

[[bench]]
name = "get_from"
harness = false

[features]
# default feature, not validate utf-8 when parsing json from slice
default = []

# validate the utf-8 when when parsing json from slice
utf8 = ["simdutf8"]