Sitelet https://github.com/category-labs/manytrace/commit/e38e9d49cf5fc109efeb35480a76d06c12381e7b
Skip to content

Commit e38e9d4

Browse files
committed
protocol: add zerocopy serialization framework
Implement two-pass serialization with counting and reserved buffer approach
1 parent 974caf6 commit e38e9d4

5 files changed

Lines changed: 704 additions & 3 deletions

File tree

‎Cargo.lock‎

Lines changed: 253 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
members = ["mpscbuf"]
2+
members = ["mpscbuf", "protocol"]
33
resolver = "2"
44

55
[workspace.package]

‎protocol/Cargo.toml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[package]
2+
name = "protocol"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
rkyv = { version = "0.8.10", features = ["alloc", "bytecheck"] }
8+
bitcode = "0.6.6"
9+
10+
[dev-dependencies]
11+
divan = "0.1"
12+
rstest = "0.22"
13+
14+
[[bench]]
15+
name = "counter"
16+
harness = false

0 commit comments

Comments
 (0)