5 releases
0.1.5 | Mar 7, 2024 |
---|---|
0.1.4 | Mar 7, 2024 |
0.1.3 | Jan 26, 2024 |
0.1.2 | Nov 10, 2023 |
0.1.1 | Aug 28, 2023 |
#815 in Parser implementations
31 downloads per month
140KB
4.5K
SLoC
cddlconv
A commandline utility for converting CDDL to various formats.
Usage
- Clone this repo and
cd
into it. 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
- Only
TypeScript
andZod
is supported at the moment.
Dependencies
~12–21MB
~291K SLoC