dyna3/app-proto/run-examples.sh
2025-07-20 19:06:26 -07:00

16 lines
No EOL
700 B
Bash

# run all Cargo examples, as described here:
#
# Karol Kuczmarski. "Add examples to your Rust libraries"
# http://xion.io/post/code/rust-examples.html
#
# you should invoke this script by calling `sh` or another interpreter, rather
# than calling `souce`, to ensure that the script can find the manifest file for
# the application prototype
# find the manifest file for the application prototype
MANIFEST="$(dirname -- $0)/Cargo.toml"
cargo run --manifest-path $MANIFEST --example irisawa-hexlet; echo
cargo run --manifest-path $MANIFEST --example three-spheres; echo
cargo run --manifest-path $MANIFEST --example point-on-sphere; echo
cargo run --manifest-path $MANIFEST --example kaleidocycle