diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f435fdda7..bbe07b19d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -46,6 +46,8 @@ jobs: uses: dtolnay/rust-toolchain@nightly - name: Install src run: rustup component add rust-src + - name: Install xargo + run: cargo install xargo - name: Running test script env: DO_FMT: true diff --git a/contrib/_test.sh b/contrib/_test.sh index e18b23146..649d45c39 100755 --- a/contrib/_test.sh +++ b/contrib/_test.sh @@ -101,8 +101,8 @@ if [ "$DO_ASAN" = true ]; then RUSTFLAGS='-Zsanitizer=memory -Zsanitizer-memory-track-origins -Cforce-frame-pointers=yes -Cllvm-args=-msan-eager-checks=0' \ cargo test --lib --all --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu - cargo run --release --manifest-path=./no_std_test/Cargo.toml | grep -q "Verified Successfully" - cargo run --release --features=alloc --manifest-path=./no_std_test/Cargo.toml | grep -q "Verified alloc Successfully" + xargo run --release --target=x86_64-unknown-linux-gnu --manifest-path=./no_std_test/Cargo.toml | grep -q "Verified Successfully" + xargo run --release --target=x86_64-unknown-linux-gnu --features=alloc --manifest-path=./no_std_test/Cargo.toml | grep -q "Verified alloc Successfully" fi # Run formatter if told to. diff --git a/no_std_test/Xargo.toml b/no_std_test/Xargo.toml new file mode 100644 index 000000000..de8cec3df --- /dev/null +++ b/no_std_test/Xargo.toml @@ -0,0 +1,2 @@ +[dependencies] +alloc = {}