Skip to content

Commit 66a73b1

Browse files
committed
Add a table with tested formats
1 parent 686787b commit 66a73b1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

serdect/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ While this crate can't ensure that format implementations don't perform
2929
other kinds of data-dependent branching on the contents of the serialized data,
3030
using a constant-time hex serialization with human-readable formats should
3131
help reduce the overall timing variability.
32+
The table below lists the crates `serdect` is tested against.
33+
❌ marks the cases for which the serialization is not constant-size for a given data size (due to the format limitations), and therefore will not be constant-time too.
34+
35+
| Crate | `array` | `slice` |
36+
|--------------------------------------------------------------------|:--------:|:--------:|
37+
| [`bincode`](https://crates.io/crates/bincode) v1 | ✅ | ✅ |
38+
| [`ciborium`](https://crates.io/crates/ciborium) v0.2 | ❌ | ✅ |
39+
| [`rmp-serde`](https://crates.io/crates/rmp-serde) v1 | ❌ | ✅ |
40+
| [`serde-json-core`](https://crates.io/crates/serde-json-core) v0.5 | ✅ | ✅ |
41+
| [`serde-json`](https://crates.io/crates/serde-json) v1 | ✅ | ✅ |
42+
| [`toml`](https://crates.io/crates/toml) v0.7 | ✅ | ✅ |
43+
3244

3345
## Minimum Supported Rust Version
3446

0 commit comments

Comments
 (0)