Use workspace in examples

This commit is contained in:
Yota Toyama committed 2019-06-02 06:44:21 +00:00
1 parent 83f3e445a1
commit eeb89f030f
2 files changed
+16 -14

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
[workspace]
members = [
"coroutines",
"dynamic_threads",
"free_by_borrow",
"free_by_gc",
"static_threads",
"suspended_coroutines",
]
+7 -14
View File
@@ -2,19 +2,12 @@
set -ex
for dir in $(ls)
do
if ! [ -d $dir ]
then
continue
fi
cargo build
(
cd $dir
cargo build
target/debug/$dir &
pid=$!
sleep 10
kill $pid
)
for cargo_file in */Cargo.toml
do
target/debug/$(dirname $cargo_file) &
pid=$!
sleep 10
kill $pid
done