| Crates.io | cddlconv |
| lib.rs | cddlconv |
| version | 0.1.7 |
| created_at | 2023-08-28 23:21:40.242684+00 |
| updated_at | 2025-09-02 14:22:04.736418+00 |
| description | A commandline utility for converting CDDL to various formats. |
| homepage | |
| repository | https://github.com/google/cddlconv/ |
| max_upload_size | |
| id | 957438 |
| size | 348,458 |
A commandline utility for converting CDDL to various formats.
cd into it.cargo run -- path/to/file.cddlThe 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
TypeScript and Zod is supported at the moment.