Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
criterion 0.2.0 - Docs.rs
[go: Go Back, main page]

criterion 0.2.0

Statistics-driven micro-benchmarking library
set -ex

if [ "$CLIPPY" = "yes" ]; then
      cargo clippy --all -- -D warnings
elif [ "$DOCS" = "yes" ]; then
    cargo clean
    cargo doc --all --no-deps
    cd book
    mdbook build
    cd ..
    cp -r book/book/ target/doc/book/
    travis-cargo doc-upload || true
elif [ "$COVERAGE" = "yes" ]; then
    cargo tarpaulin --all --no-count --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
elif [ "$BENCHMARK" = "yes" ]; then
    cargo bench --all
elif [ "$RUSTFMT" = "yes" ]; then
    cargo fmt -- --write-mode diff
else
    cargo build
    cargo test --all
    cargo build --benches --all
fi