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
77f6db6110
don't clone map keys ( #325 )
2021-06-15 08:46:04 +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
mingxguo27
6ebb69f275
Refactoring
2020-08-12 17:21:00 +00:00
mingxguo27
b09d64a015
Resolve pull request comments: refactoring and workflow
2020-08-12 10:18:17 +00:00
mingxguo27
1e9da1e2d6
Add fuzz target for CBOR
2020-08-11 09:48:44 +00: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
Julien Cretin
ca6f910c26
Remove unknown fields
2020-05-13 11:09:32 +02:00
Julien Cretin
479de32a95
Rename $initial to $map
2020-05-11 16:40:11 +02:00
Julien Cretin
491721b421
Rename extend_cbor_map_options
2020-05-11 16:07:59 +02:00
Julien Cretin
f4b791ed91
Encode credentials as a protocol buffer message
...
This permits to decode a credential of a different version without failing.
2020-05-09 20:57:13 +02:00
Jean-Michel Picod
f91d2fd3db
Initial commit
2020-01-30 11:47:29 +01:00