You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Async boundaries |`async_io` reads or writes one complete CBOR item without pretending serde itself is async. |
29
29
| Debugging and inspection | RFC 8949 diagnostic notation, pretty diagnostics and the companion `cbor` CLI. |
30
-
| Embedded targets |`no_std + alloc` for the full heap-backed API, or no allocation for serialization, validation and the core header codec. |
30
+
| Embedded targets |`no_std + alloc` for the full heap-backed API, or no allocation for serialization, well-formedness checks and the core header codec. |
31
31
32
32
Licensed under the MIT License.
33
33
@@ -153,8 +153,8 @@ Code agents should start with [`AGENTS.md`](AGENTS.md) for the compressed API
153
153
selection rules, then use [`docs/agent-cookbook.md`](docs/agent-cookbook.md)
154
154
for copyable recipes and common migration traps. The runnable
155
155
[`agent_patterns`](examples/agent_patterns.rs) example covers exact-item
156
-
validation, byte strings, borrowed deserialization, raw values, CBOR sequences
157
-
and canonical encoding.
156
+
well-formedness checks, byte strings, borrowed deserialization, raw values,
157
+
CBOR sequences and canonical encoding.
158
158
159
159
## Highlights
160
160
@@ -177,7 +177,7 @@ and canonical encoding.
177
177
For protocols built on the older RFC 7049 §3.9 "Canonical CBOR" rule
178
178
(kept as RFC 8949 §4.2.3, and used by ciborium's canonical module), the
179
179
`*_with` variants take `KeyOrder::LengthFirst`.
180
-
***Integer map keys, arrays and tags (COSE)** — with the `derive` feature,
180
+
***COSE-style integer map keys, arrays and tags** — with the `derive` feature,
181
181
`#[derive(cbor2::Cbor)]` maps struct fields to integer keys
182
182
(`#[cbor(key = 1)]`), encodes named structs as field-order arrays
183
183
(`#[cbor(array)]`) and wraps containers in CBOR tags
@@ -208,8 +208,8 @@ and canonical encoding.
208
208
protocol maps, such as CWT claims, `diagnostic_pretty_with_key_comments`
209
209
can take a `Cbor::KEYS` table and add `// "iss"` style string-key
210
210
comments (CDN end-of-line comments) beside the wire integer keys.
211
-
***Allocation-free helpers** — `validate`checks that an input is exactly
212
-
one well-formed CBOR item (RFC 8949 §5.3.1, including text UTF-8),
211
+
***Allocation-free helpers** — `validate`is a well-formedness check for exactly
212
+
one CBOR item (RFC 8949 §5.3.1, including text UTF-8),
213
213
`serialized_size` computes the exact encoded size of any serializable
214
214
value and `to_slice` encodes into a caller-provided buffer; none of them
215
215
allocates heap memory.
@@ -221,7 +221,7 @@ and canonical encoding.
221
221
***`no_std` support** — `default-features = false, features = ["alloc"]`
222
222
keeps the full API minus `std::io` interop and `HashMap` conversions;
223
223
without `alloc` the crate still serializes (`to_writer`/`to_slice`/
224
-
`serialized_size`), validates and speaks the `core` header codec.
224
+
`serialized_size`), checks well-formedness and speaks the `core` header codec.
0 commit comments