#!/bin/sh -ve
||
# install cargo subcommands
# run test.sh without sanitizers
RUSTFLAGS=""
# run test.sh with sanitizers only on nightly
version=
if [ ;then
RUSTFLAGS="-Z sanitizer=address"
RUSTFLAGS="-Z sanitizer=thread"
if [ ;then # the leak sanitizer is only available on Linux
RUSTFLAGS="-Z sanitizer=leak"
fi
# RUSTFLAGS="-Z sanitizer=memory" ./test.sh # not working, see: https://github.com/rust-lang/rust/issues/39610
fi
# go back to root crate
# try to generate doc