cddlconv

Crates.iocddlconv
lib.rscddlconv
version0.1.5
sourcesrc
created_at2023-08-28 23:21:40.242684
updated_at2024-03-07 16:31:21.747381
descriptionA commandline utility for converting CDDL to various formats.
homepage
repositoryhttps://github.com/google/cddlconv/
max_upload_size
id957438
size346,201
Alex Rudenko (OrKoN)

documentation

README

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 is supported at the moment.
Commit count: 73

cargo fmt