cddl-codegen is a library to generate Rust, WASM and JSON code from CDDL specifications
See docs here