代码拉取完成,页面将自动刷新
language: rust
rust:
- stable
- beta
- nightly
script:
- cargo test --all-features
matrix:
include:
- os: osx
- name: cargo audit
cache: cargo
rust: nightly
install:
- cargo install -Z install-upgrade cargo-audit
script:
- cargo generate-lockfile -Z minimal-versions
- cargo audit
- cargo update
- cargo audit
- name: cargo check --features
script:
# Need to remove dev-dependencies so that they don't affect feature resolution
- cargo run --manifest-path ci/remove-dev-dependencies/Cargo.toml
# A somewhat arbitrary selection of features to check
- cargo check
- cargo check --features brotli,deflate,gzip,zlib,zstd,stream
- cargo check --features brotli,deflate,gzip,zlib,zstd,bufread
- cargo check --features brotli,bufread,stream
- cargo check --features zstd,bufread,stream
- cargo check --features all
- name: docs.rs
rust: nightly
script:
- RUSTDOCFLAGS='--cfg=docsrs -Dwarnings' cargo doc --no-default-features --no-deps
- RUSTDOCFLAGS='--cfg=docsrs -Dwarnings' cargo doc --all-features --no-deps
- name: cargo fmt
install:
- rustup component add rustfmt
script:
- cargo fmt -- --check
- name: cargo clippy
install:
- rustup component add clippy
script:
- cargo clippy --all-targets --all-features -- -D warnings
branches:
only: [staging, trying, master]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。