Skip to content

Commit

Permalink
Add a table with tested formats
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarri committed Jun 21, 2023
1 parent 26a3884 commit 3466e57
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions serdect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ While this crate can't ensure that format implementations don't perform
other kinds of data-dependent branching on the contents of the serialized data,
using a constant-time hex serialization with human-readable formats should
help reduce the overall timing variability.
The table below lists the crates `serdect` is tested against.
❌ 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.

| Crate | `array` | `slice` |
|--------------------------------------------------------------------|:--------:|:--------:|
| [`bincode`](https://crates.io/crates/bincode) v1 | ✅ | ✅ |
| [`ciborium`](https://crates.io/crates/ciborium) v0.2 | ❌ | ✅ |
| [`rmp-serde`](https://crates.io/crates/rmp-serde) v0.2 | ❌ | ✅ |
| [`serde-json-core`](https://crates.io/crates/serde-json-core) v0.5 | ✅ | ✅ |
| [`serde-json`](https://crates.io/crates/serde-json) v1 | ✅ | ✅ |
| [`toml`](https://crates.io/crates/toml) v0.7 | ✅ | ✅ |


## Minimum Supported Rust Version

Expand Down

0 comments on commit 3466e57

Please sign in to comment.