Skip to content

Commit 6f2ae57

Browse files
committed
Add how to actually run codegen to codegen docs.
1 parent 71eb6e8 commit 6f2ae57

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,18 @@ inputs from the `codegen` program. Commonly used variables are:
9494

9595
## Running `codegen`
9696

97+
The easiest way to run `codegen` is via `cargo`:
98+
99+
```sh
100+
cargo run -p codegen
101+
```
102+
103+
To pass additional parameters, e.g. `-h` for help:
104+
105+
```sh
106+
cargo r -p codegen -- -h
107+
```
108+
97109
`codegen` will generate all files by default or if a glob pattern is specified,
98110
only output files that match the glob.
99111

0 commit comments

Comments
 (0)