kaczmarczyck
7e7d5e38a1
enforces Module imports granularity ( #445 )
2022-03-14 20:44:48 +01:00
David Drysdale
fbe68b55cd
cbor: support tagged values
2021-06-17 10:33:36 +02:00
David Drysdale
3aca5fbc74
cbor: prepare for publishing as standalone crate
...
- Add an example of usage
- Add a minimal README, including the example code
- Document public items
- Add more info to Cargo.toml
2021-06-16 17:16:05 +02:00
David Drysdale
7719078d46
cbor: rename crate to sk-cbor
...
In anticipation of publishing to crates.io, which already has a `cbor`
crate.
2021-06-16 17:16:05 +02:00
David Drysdale
f2812e4fe2
cbor: drop std feature, use core in tests ( #327 )
2021-06-16 15:40:18 +02:00
kaczmarczyck
9a1c060234
Remove KeyType from CBOR ( #306 )
...
* removes KeyType from CBOR
* type_label usage in writer
2021-04-14 10:19:10 +02:00
kaczmarczyck
78b7767682
CBOR maps use Vec instead of BTreeMap ( #303 )
...
* CBOR uses Vec for map internally
* remove BTreeMap from get_info
* rename cbor_map_btree and clean up cbor_array_vec
* destructure now takes Vec, not BTreeMap
* adds dedup in CBOR writer
* fail to write CBOR maps with duplicates
* CBOR interface refinements
* macro documentation for CBOR map and array
2021-04-13 14:46:28 +02:00
Guillaume Endignoux
85a34ad085
Migrate import statements and macros to Rust 2018.
2020-09-24 11:28:24 +02:00
Guillaume Endignoux
09c9fb3a3e
Apply suggestion to remove additional semi-colons.
2020-06-22 11:49:47 +02:00
Guillaume Endignoux
240ba7580d
Improve comments.
2020-06-22 11:49:47 +02:00
Guillaume Endignoux
db70c3e66d
s/read_cbor_map/destructure_cbor_map/g
2020-06-22 11:49:47 +02:00
Guillaume Endignoux
2589eb99b3
Update read_cbor_map example to use a text key as well.
2020-06-22 11:49:47 +02:00
Guillaume Endignoux
493efa9b25
Apply syntax suggestion to read_cbor_map! macro.
2020-06-22 11:49:46 +02:00
Guillaume Endignoux
c8864666e0
Extract some logic to a separate function, to reduce binary size overhead of read_cbor_map.
2020-06-22 11:49:46 +02:00
Guillaume Endignoux
2124511913
Simplify syntax of the read_cbor_map! macro, to align it with cbor_map.
2020-06-22 11:49:46 +02:00
Guillaume Endignoux
2c4bf7d422
Add documentation for read_cbor_map! macro.
2020-06-22 11:49:46 +02:00
Guillaume Endignoux
97fb222455
Add a read_cbor_map macro to avoid the overhead of removing values on-by-one in BTreeMap.
2020-06-22 11:49:46 +02:00
Jean-Michel Picod
f91d2fd3db
Initial commit
2020-01-30 11:47:29 +01:00