fork/rust_serialization_benchmark

git clone https://git.julia.blue/fork/rust_serialization_benchmark

Julia RyanWIP: binrwc26f391

master
4.4 KiB156 linesraw
1[workspace]
2members = [
3  "pages",
4  "tools/bencher",
5  "tools/formatter",
6  "tools/parser",
7  "tools/schema",
8]
9
10[workspace.package]
11version = "0.1.0"
12authors = ["David Koloski <djkoloski@gmail.com>"]
13edition = "2021"
14license = "MIT"
15publish = false
16
17[workspace.dependencies]
18cargo_metadata = "0.15"
19clap = "4"
20enum-iterator = "0.8"
21fixed-map = { version = "0.9", default-features = false }
22regex = "1.9"
23schema = { path = "tools/schema" }
24serde = "1.0"
25serde_json = "1.0"
26stylist = { version = "0.12", default-features = false }
27tempfile = "3.6"
28time = "0.3"
29wasm-bindgen = "0.2"
30web-sys = "0.3.60"
31yew = { version = "0.20", default-features = false }
32
33[package]
34name = "rust_serialization_benchmark"
35version.workspace = true
36authors.workspace = true
37edition.workspace = true
38license.workspace = true
39publish.workspace = true
40build = "build.rs"
41
42# Some features may require multiple dependencies to compile properly
43# For example, benchmarking bincode requires two features: "serde" and "bincode"
44[dependencies]
45abomonation = { version = "0.7.3", optional = true }
46abomonation_derive = { version = "0.5.0", optional = true }
47alkahest = { version = "0.1.5", optional = true, features = [
48  "derive",
49  "nightly",
50] }
51bebop = { version = "2.4.9", optional = true }
52bincode1 = {package = "bincode", version = "1.3.3", optional = true }
53# Can't call it bincode2 because of a current issue of bincode2
54bincode = {package = "bincode", version = "2.0.0-rc", optional = true }
55binrw = { version = "0.13", optional = true }
56bitcode = { version = "0.5.0", optional = true }
57borsh = { version = "1.1.1", features = ["derive"], optional = true }
58# TODO: Unfork after bson adds support for pre-warmed serialization buffers
59# https://github.com/mongodb/bson-rust/pull/328
60bson = { version = "2.6.0", git = "https://github.com/djkoloski/bson-rust", branch = "master", optional = true }
61bytecheck = { version = "0.6.11", optional = true }
62bytemuck = { version = "1.14.0", optional = true }
63capnp = { version = "0.18.3", optional = true }
64cbor4ii = { version = "0.3.1", features = [ "use_std", "serde1" ], optional = true }
65ciborium = { version = "0.2.1", optional = true }
66criterion = "0.5"
67databuf = { version = "0.5", optional = true }
68dlhn = { version = "0.1.6", optional = true }
69flatbuffers = { version = "23.5.26", optional = true }
70libflate = "1.3.0"
71msgpacker = { version = "0.4.3", optional = true }
72nachricht-serde = { version = "0.4.0", optional = true }
73nanoserde = {version = "0.1.35", optional = true }
74parity-scale-codec = { version = "3.6.5", features = ["full"], optional = true }
75parity-scale-codec-derive = { version = "3.6.5", optional = true }
76postcard = { version = "1.0.8", features = ["alloc"], optional = true }
77pot = { version = "3.0.0", optional = true }
78prost = { version = "0.12.1", optional = true }
79rand = "0.8.5"
80rkyv = { version = "0.7.42", features = ["validation"], optional = true }
81rmp-serde = { version = "1.1.2", optional = true }
82ron = { version = "0.8.1", optional = true }
83serde = { version = "1.0.190", features = ["derive"], optional = true }
84serde_bare = { version = "0.5.0", optional = true }
85serde_cbor = { version = "0.11.2", optional = true }
86serde_json = { version = "1.0.108", optional = true }
87simd-json = { version = "0.13.4", optional = true }
88simd-json-derive = { version = "0.13.0", optional = true }
89speedy = { version = "0.8.6", optional = true }
90savefile = { version = "0.16.2", optional = true }
91savefile-derive = { version = "0.16.2", optional = true }
92zstd = "0.12.3"
93
94[features]
95default = [
96  "abomonation",
97  "abomonation_derive",
98  "alkahest",
99  # "bebop",
100  "bincode1",
101  "bincode",
102  "binrw",
103  "bitcode",
104  "borsh",
105  "bson",
106  "bytecheck",
107  "bytemuck",
108  "capnp",
109  "cbor4ii",
110  "ciborium",
111  "databuf",
112  "dlhn",
113  "flatbuffers",
114  "msgpacker",
115  "nachricht-serde",
116  "nanoserde",
117  "scale",
118  "postcard",
119  "pot",
120  "prost",
121  "prost-build",
122  "rkyv",
123  "rmp-serde",
124  "ron",
125  "serde",
126  "serde_bare",
127  "serde_cbor",
128  "serde_json",
129  "simd-json",
130  "speedy",
131  "savefile"
132]
133simd-json = ["dep:simd-json", "simd-json-derive"]
134
135savefile = ["dep:savefile", "savefile-derive"]
136
137scale = ["parity-scale-codec", "parity-scale-codec-derive"]
138
139[dev-dependencies]
140rand_pcg = "0.3.1"
141
142[build-dependencies]
143bebop-tools = "2.8.7"
144capnp = "0.18.3"
145capnpc = "0.18.0"
146flatc-rust = "0.2.0"
147prost-build = { version = "0.12.1", optional = true }
148
149[[bench]]
150harness = false
151name = "bench"
152
153[profile.bench]
154lto = true
155# Uncomment this to profile
156# debug = true