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 1f86132 commit de53178
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 formats `serdect` is tested against, and
whether the serialization via `array` or `slice` is constant-time for them.

| Format | `array` | `slice` |
|---------------------------------|----------|----------|
| Bincode (`bincode=^1`) | ✅ | ✅ |
| CBOR (`ciborium=^0.2`) | ❌ | ✅ |
| MessagePack (`rmp-serde`) | ❌ | ✅ |
| JSON (`serde-json-core=^0.5`) | ✅ | ✅ |
| JSON (`serde-json=^1`) | ✅ | ✅ |
| TOML (`toml=^0.7`) | ✅ | ✅ |


## Minimum Supported Rust Version

Expand Down

0 comments on commit de53178

Please sign in to comment.