Skip to content

Update Rust crate reqwest to v0.13.2 #324

Update Rust crate reqwest to v0.13.2

Update Rust crate reqwest to v0.13.2 #324

Workflow file for this run

name: Sanity
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
sanity:
runs-on: ubuntu-latest
env:
# Deny warnings for all steps
# (changing this flag triggers a complete rebuild, so it's helpful to define it globally)
RUSTFLAGS: --deny warnings
steps:
- name: Checkout
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
# Can be removed once https://github.com/actions/runner-images/pull/13076 is released
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
- name: Cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Cargo fuzz
run: .github/workflows/fuzz-all.sh
shell: bash
# audit dependencies for severe vulnerabilities
# (to deny warnings in the future, note that cargo audit requires additional arguments)
- name: Cargo audit
run: |
cargo install --force cargo-audit
cargo generate-lockfile
cargo audit
- name: Install nightly toolchain and rust-src (for asan)
run: |
rustup toolchain install nightly
rustup component add rust-src --toolchain nightly
- name: Cargo test 'adblock' package (asan)
run: |
RUST_BACKTRACE=1 RUSTFLAGS="-Z sanitizer=address" \
RUSTDOCFLAGS="-Z sanitizer=address" \
cargo +nightly test -Zbuild-std --target x86_64-unknown-linux-gnu
- name: Cargo test 'adblock' package (asan, release)
run: |
RUST_BACKTRACE=1 RUSTFLAGS="-Z sanitizer=address" \
RUSTDOCFLAGS="-Z sanitizer=address" \
cargo +nightly test -Zbuild-std --release --all-features \
--target x86_64-unknown-linux-gnu