Skip to content
googlePublic

About

A commandline utility for converting CDDL to various formats.

Resources

Code of conduct

Contributing

Security policy

Stars

15 stars

Watchers

2 watching

Forks

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 -- [--format <type-script|zod>] 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 (--format type-script) and Zod v4 (--format zod) are supported at the moment.

About

A commandline utility for converting CDDL to various formats.

Resources

Code of conduct

Contributing

Security policy

Stars

15 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages