To build with Address Sanitizer, run
env RUSTFLAGS="-Z sanitizer=address" cargo +nightly build --target x86_64-unknown-linux-gnu --release
To build with debug assertions and overflow checks, run
env RUSTFLAGS="-C debug-assertions -C overflow-checks" cargo build --release
To build with all of the above, run
env RUSTFLAGS="-Z sanitizer=address -C debug-assertions -C overflow-checks" cargo +nightly build --target x86_64-unknown-linux-gnu --release
Run the test for an individual client with:
mkdir success failure
cut -d , -f 2 ~/top-1m.csv | grep --only-matching -E '[a-zA-Z0-9.-]+' | parallel -j 50 ~/rust-http-clients-smoke-test/fetch-one-url.sh "$PATH_TO_BINARY_UNDER_TEST"