Describe the usage of cargo run

This commit is contained in:
Hiroaki Yutani 2022-05-04 11:11:07 +09:00 committed by Teodor Tanasoaia
parent f1d72f8433
commit af6e2fc7ab

View File

@ -54,6 +54,12 @@ naga my_shader.spv my_shader.metal --flow-dir flow-dir # convert the SPV to Meta
naga my_shader.wgsl my_shader.vert --profile es310 # convert the WGSL to GLSL vertex stage under ES 3.20 profile
```
As naga includes a default binary target, you can also use `cargo run` without installation. This is useful when you develop naga itself, or investigate the behavior of naga at a specific commit (e.g. [wgpu](https://github.com/gfx-rs/wgpu) might pin a different version of naga than the `HEAD` of this repository).
```bash
cargo run my_shader.wgsl
```
## Development workflow
The main instrument aiding the development is the good old `cargo test --all-features --workspace`,