blob: fa7eb959d670563962b20a46f8535970060d424e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
set -e
cargo build --examples
for file in examples/*; do
filename=$(basename ${file})
extension=${filename##*.}
example_name=${filename%.*}
if [[ "${extension}" = "rs" ]]; then
cargo run --example ${example_name}
fi
done
|