-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathCargo.toml
166 lines (154 loc) · 4.67 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[workspace]
members = [
"pages",
"tools/bencher",
"tools/formatter",
"tools/parser",
"tools/schema",
]
[workspace.package]
version = "0.1.0"
authors = ["David Koloski <[email protected]>"]
edition = "2021"
license = "MIT"
publish = false
[workspace.dependencies]
cargo_metadata = "0.15"
clap = "4"
enum-iterator = "0.8"
fixed-map = { version = "0.9", default-features = false }
regex = "1.10"
schema = { path = "tools/schema" }
serde = "1.0"
serde_json = "1.0"
stylist = { version = "0.12", default-features = false }
tempfile = "3.10"
time = "0.3"
wasm-bindgen = "0.2"
web-sys = "0.3.69"
yew = { version = "0.20", default-features = false }
[package]
name = "rust_serialization_benchmark"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
publish.workspace = true
build = "build.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# Some features may require multiple dependencies to compile properly
# For example, benchmarking bincode requires two features: "serde" and "bincode"
[dependencies]
bilrost = { version = "=0.1011.0", optional = true }
bincode1 = { package = "bincode", version = "=1.3.3", optional = true }
# Can't call it bincode2 because of a current issue of bincode2
bincode = { package = "bincode", version = "=2.0.0-rc.3", optional = true }
bitcode = { version = "=0.6.3", optional = true }
borsh = { version = "=1.5.3", features = ["derive"], optional = true }
capnp = { version = "=0.20.3", optional = true }
cbor4ii = { version = "=0.3.3", features = [
"use_std",
"serde1",
], optional = true }
ciborium = { version = "=0.2.2", optional = true }
databuf = { version = "=0.5.0", optional = true }
dlhn = { version = "=0.1.7", optional = true }
flatbuffers = { version = "=24.12.23", optional = true }
msgpacker = { version = "=0.4.5", optional = true }
nachricht-serde = { version = "=0.4.0", optional = true }
nanoserde = { version = "=0.1.37", optional = true }
parity-scale-codec = { version = "=3.6.12", features = [
"full",
], optional = true }
parity-scale-codec-derive = { version = "=3.6.12", optional = true }
postcard = { version = "=1.1.1", features = ["alloc"], optional = true }
pot = { version = "=3.0.1", optional = true }
prost = { version = "=0.13.4", optional = true }
rkyv = { version = "=0.8.9", optional = true }
rmp-serde = { version = "=1.3.0", optional = true }
ron = { version = "=0.8.1", optional = true }
savefile = { version = "=0.18.5", optional = true }
savefile-derive = { version = "=0.18.5", optional = true }
serde_bare = { version = "=0.5.0", optional = true }
serde-brief = { version = "=0.1.0", features = [
"std",
], optional = true }
serde_cbor = { version = "=0.11.2", optional = true }
serde_json = { version = "=1.0.134", features = [
"float_roundtrip",
], optional = true }
simd-json = { version = "=0.14.3", optional = true }
simd-json-derive = { version = "=0.15.0", optional = true }
speedy = { version = "=0.8.7", optional = true }
wiring = { version = "=0.2.2", optional = true }
criterion = "=0.5.1"
libflate = "=2.1.0"
pprof = { version = "=0.14.0", features = ["flamegraph"], optional = true }
rand = "=0.8.5"
serde = { version = "=1.0.216", features = ["derive"] }
zstd = "=0.13.2"
[features]
default = [
"default-encoding-set",
"measure-compression",
]
default-encoding-set = [
"bilrost",
"bincode1",
"bincode",
"bitcode",
"borsh",
"capnp",
"cbor4ii",
"ciborium",
"databuf",
"dlhn",
"flatbuffers",
"msgpacker",
"nachricht-serde",
"nanoserde",
"postcard",
"pot",
"prost",
"rkyv",
"rmp-serde",
"ron",
"savefile",
"scale",
"serde_bare",
"serde-brief",
"serde_cbor",
"serde_json",
"simd-json",
"speedy",
# "wiring",
]
measure-compression = []
capnp = ["dep:capnp"]
prost = ["dep:capnp", "dep:prost"]
simd-json = ["dep:simd-json", "dep:simd-json-derive"]
savefile = ["dep:savefile", "dep:savefile-derive"]
scale = ["dep:parity-scale-codec", "dep:parity-scale-codec-derive"]
# Enable these features to regenerate generated files rather than using the committed versions.
regenerate = [
"regenerate-capnp",
"regenerate-flatbuffers",
"regenerate-prost",
]
regenerate-capnp = ["dep:capnpc"]
regenerate-flatbuffers = ["dep:flatc-rust"]
regenerate-prost = ["dep:prost-build"]
[dev-dependencies]
rand_pcg = "0.3.1"
[build-dependencies]
capnp = "=0.20.3"
capnpc = { version = "=0.20.1", optional = true }
flatc-rust = { version = "=0.2.0", optional = true }
prost-build = { version = "=0.13.4", optional = true }
[[bench]]
harness = false
name = "bench"
[profile.bench]
lto = true
# Uncomment this to profile
# debug = true