cddl-codegen
cddl-codegen copied to clipboard
Codegen serialization logic for CBOR automatically from a CDDL specification
https://www.rfc-editor.org/rfc/rfc8610#section-3.8.2
CIP25 for example uses CDDL to specify a set of keys that can be present, but allows people to extend the base specification with whichever key they need. This doesn't...
Given the CDDL ``` bytes .size 64 ``` # Expected code `bytes: [u8; 64]` # Generated code `bytes: Vec`
Supposed the following CDDL ``` bootstrapEraDistr = 1 ``` # Expected code ```rust #[wasm_bindgen] #[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd)] pub struct BootstrapEraDistr { } #[wasm_bindgen] impl BootstrapEraDistr { pub...
Bumps [either](https://github.com/bluss/either) from 1.5.3 to 1.7.0. Commits d6f088e Merge pull request #73 from cuviper/release-1.7.0 2370b06 Release 1.7.0 f1eca77 Merge pull request #72 from cuviper/clone_from f90883c Specialize Clone::clone_from 26a6dc7 Merge pull...
According to the CBOR RFC, if strict mode is not being followed, duplicate keys in CBOR maps are allowed. cddl-codegen only supports strict mode and can't handle duplicate keys. It...
Bumps [cbor_event](https://github.com/primetype/cbor_event) from 2.1.3 to 2.2.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: #...
[//]: # (dependabot-start) ⚠️ **Dependabot Preview has been deactivated** ⚠️ This pull request was created by Dependabot Preview, and you've upgraded to Dependabot. This means it won't respond to `dependabot`...
with `--preserve-encodings=true` ``` non_overlap_basic_not_basic = [ ; @name group basic // ; @name group_arr basic_arr // ; @name group_tagged #6.11(basic) // ; @name group_bytes bytes .cbor basic ] ``` All...
Caused when the inlining would made cddl-codegen think that the types were not overlapping since it was looking at the stored type not the actual starting cbor type (e.g. when...