#cddl #converter #parser

bin+lib cddlconv

A commandline utility for converting CDDL to various formats

8 releases

0.1.8 Feb 18, 2026
0.1.7 Sep 2, 2025
0.1.6 Mar 14, 2025
0.1.5 Mar 7, 2024
0.1.1 Aug 28, 2023

#991 in Parser implementations

Download history 25/week @ 2026-01-22 28/week @ 2026-01-29 37/week @ 2026-02-05 22/week @ 2026-02-12 45/week @ 2026-02-19 48/week @ 2026-02-26 56/week @ 2026-03-05 57/week @ 2026-03-12 56/week @ 2026-03-19 57/week @ 2026-03-26 56/week @ 2026-04-02 57/week @ 2026-04-09 56/week @ 2026-04-16 56/week @ 2026-04-23 56/week @ 2026-04-30 56/week @ 2026-05-07

233 downloads per month

Apache-2.0

140KB
4.5K SLoC

TypeScript 2.5K SLoC // 0.0% comments Rust 1.5K SLoC // 0.0% comments

cddlconv

crates.io license ci

A commandline utility for converting CDDL to various formats.

Usage

  1. Clone this repo and cd into it.
  2. cargo run -- path/to/file.cddl

Tips

Formatting output

The output is generally ugly, so you may need to format it. The easiest way is to pipe it into a formatter.

For example,

outfile=path/to/file.ts
cargo run -- path/to/file.cddl | prettier --stdin-filepath=$outfile > $outfile

Limitations

  1. Only TypeScript and Zod v4 is supported at the moment.

Dependencies

~12–18MB
~319K SLoC