2018-05-25 00:29:52 +08:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
if [ -z NO_STD ]; then
|
2018-05-25 00:44:26 +08:00
|
|
|
cargo build --verbose;
|
|
|
|
cargo build --verbose --features "arbitrary";
|
|
|
|
cargo build --verbose --features "mint";
|
|
|
|
cargo build --verbose --features "alloc";
|
|
|
|
cargo build --verbose --features "serde-serialize";
|
|
|
|
cargo build --verbose --features "abomonation-serialize";
|
|
|
|
cargo build --verbose --features "debug";
|
|
|
|
cargo build --verbose --features "debug arbitrary mint serde-serialize abomonation-serialize";
|
2018-05-25 00:29:52 +08:00
|
|
|
else
|
|
|
|
cargo install xargo;
|
|
|
|
xargo build --verbose --no-default-features --target=x86_64-unknown-linux-gnu --features "${CARGO_FEATURES}";
|
|
|
|
fi
|