-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🩹 🎨 remove unused imports in
Cargo.toml
- Loading branch information
Showing
6 changed files
with
228 additions
and
1,497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUSTFLAGS: -Dwarnings | ||
rust_min: 1.74.0 # because of bumpalo (requires 1.74.0) | ||
# clap requires 1.74.0 | ||
rust_clippy: 1.77.0 | ||
rust_nightly: nightly-2024-05-05 | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ env.rust_min }} | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Build | ||
run: cargo build --verbose | ||
|
||
doc: | ||
name: doc | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust ${{ env.rust_nightly }} | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ env.rust_min }} | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: "doc --lib --all-features" | ||
run: | | ||
cargo doc --lib --no-deps --all-features --document-private-items | ||
env: | ||
RUSTDOCFLAGS: -Dwarnings | ||
|
||
test: | ||
name: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust ${{ env.rust_stable }} | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Install cargo-nextest | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-nextest | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: test full | ||
run: | | ||
set -euxo pipefail | ||
cargo nextest run | ||
cargo test --doc |
Oops, something went wrong.