Skip to content

Commit

Permalink
🩹 🎨 remove unused imports in Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZamDimon committed Sep 16, 2024
1 parent 6902210 commit 076bf48
Show file tree
Hide file tree
Showing 6 changed files with 228 additions and 1,497 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/rust.yaml
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
Loading

0 comments on commit 076bf48

Please sign in to comment.