Describe the usage of cargo run

This commit is contained in:
Hiroaki Yutani authored and Teodor Tanasoaia committed 2022-05-09 23:29:00 +02:00
1 parent f1d72f8433
commit af6e2fc7ab
1 file changed
+6
+6
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`,