forked from cloudwego/sonic-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
91 lines (76 loc) · 2.12 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[package]
name = "sonic-rs"
version = "0.3.13"
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"
serde = { version = "1.0", features = ["rc", "derive"] }
itoa = "1.0"
ryu = "1.0"
faststr = { version = "0.2", features = ["serde"] }
smallvec = "1.11"
bumpalo = "3.13"
bytes = "1.4"
thiserror = "1.0"
simdutf8 = "0.1"
parking_lot = "0.12"
[target.'cfg(not(target_env = "msvc"))'.dev-dependencies]
jemallocator = "0.5"
[dev-dependencies]
serde_json = { version = "1.0", features = ["float_roundtrip", "raw_value"] }
simd-json = "0.13"
core_affinity = "0.8"
criterion = { version = "0.5", features = ["html_reports"] }
gjson = "0.8"
serde_derive = "1.0"
encoding_rs = "0.8"
# This schema are used in benches and copied from https://github.com/serde-rs/json-benchmark
schema = { path = "benches/schema" }
paste = "1.0"
serde_bytes = "0.11"
bytes = {version = "1.4", features = ["serde"]}
chrono = { version = "0.4", features = ["serde"] }
[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
[[bench]]
name = "value_operator"
harness = false
[features]
default = []
# Use an arbitrary precision number type representation when parsing JSON into `sonic_rs::Value`.
# This allows the JSON numbers will be serialized without loss of precision.
arbitrary_precision = []
# Sort the keys when serializing `sonic_rs::Value`.
sort_keys = []