9012 shaares
209 private links
209 private links
-
Add code example in Rust in the examples/ directory located at the same level as src/.
-
Then run it with
cargo run --example code_sample.rs
. -
Add specific dependencies used by the examples in the [dev-dependencies] of the Cargo.toml; these are not necessary to run the main programm