Skip to content

Commit 920fc0e

Browse files
committed
Add changes from jamesmunns/postcard#127
Add a FixedSizeByteArray type that can be used to serialize fixed-size byte arrays faster than all other available methods. This type only works with postcard. A more general solution would need to be implemented in serde itself. This works around serde-rs/serde#2680.
1 parent 40f26cf commit 920fc0e

File tree

7 files changed

+670
-8
lines changed

7 files changed

+670
-8
lines changed

Cargo.lock

Lines changed: 188 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

postcard/Cargo.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,19 @@ heapless-cas = ["heapless", "heapless/cas"]
6767
alloc = ["serde/alloc", "embedded-io/alloc"]
6868
use-defmt = ["defmt"]
6969
use-crc = ["crc", "paste"]
70+
71+
[dev-dependencies.criterion]
72+
version = "0.5"
73+
74+
[dev-dependencies.serde-big-array]
75+
version = "0.5.1"
76+
77+
[dev-dependencies.serde_bytes]
78+
version = "0.11.12"
79+
80+
[dev-dependencies.serde-byte-array]
81+
version = "0.1.2"
82+
83+
[[bench]]
84+
name = "byte_array"
85+
harness = false

0 commit comments

Comments
 (0)