aws-nitro-enclaves-nsm-api icon indicating copy to clipboard operation
aws-nitro-enclaves-nsm-api copied to clipboard

Replace serde deps with minicbor

Open emostov opened this issue 3 years ago • 5 comments
trafficstars

Issue #, if available:

#19

Description of changes:

serde_cbor is deprecated. This PR removes serde_cbor and it's associated dependencies, replacing them with minicbor, a library that is currently maintained. This has the added benefit of slimming down the dependency tree, reducing dependency review burden.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

emostov avatar Oct 10 '22 17:10 emostov

@petreeftime any updates here?

emostov avatar Apr 26 '23 20:04 emostov

Last time I tested this, it didn't work for me. I'll take another look.

petreeftime avatar May 02 '23 10:05 petreeftime

Last time I tested this, it didn't work for me. I'll take another look.

@petreeftime can anything be done to move this forward?

emostov avatar Jul 03 '23 18:07 emostov

I no longer work on this project, so I will not be able to help, but it seems that minicbor_derive only supports encoding and decoding with indexed fields, rather than fields which are named, as the NSM provides, so the unit tests might work since they self generate the data, but the answers from the NSM will not work. As such, serialization and deserialization needs to be done by hand and cannot work otherwise.

@meerd @shtaked

petreeftime avatar Jul 05 '23 09:07 petreeftime

IMO, adding some unit tests with actual API responses from NSM would make it easy to discover such issues and prevent backwards incompatibility.

petreeftime avatar Jul 05 '23 09:07 petreeftime