Compare commits

..

No commits in common. "edeb080745efe3190f3c38f2eb05bf2d17bdd1dc" and "f1865f85a17b6a1cc7ffb56f37134b7f4feaed62" have entirely different histories.

View file

@ -3,18 +3,8 @@
# Karol Kuczmarski. "Add examples to your Rust libraries" # Karol Kuczmarski. "Add examples to your Rust libraries"
# http://xion.io/post/code/rust-examples.html # 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 cargo run --example irisawa-hexlet; echo
MANIFEST="$(dirname -- $0)/Cargo.toml" cargo run --example three-spheres; echo
cargo run --example point-on-sphere; echo
# set up the command that runs each example cargo run --example kaleidocycle
RUN_EXAMPLE="cargo run --manifest-path $MANIFEST --example"
# run the examples
$RUN_EXAMPLE irisawa-hexlet; echo
$RUN_EXAMPLE three-spheres; echo
$RUN_EXAMPLE point-on-sphere; echo
$RUN_EXAMPLE kaleidocycle