Update Rust edition to 2024 #469
Workflow file for this run
This file contains hidden or 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
| name: Rust | |
| on: | |
| workflow_dispatch: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| name: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Install dependencies | |
| run: sudo apt-get install libsodium-dev libsqlite3-dev libzstd-dev | |
| - name: Build | |
| run: cargo build --verbose --locked | |
| - name: Run tests | |
| run: cargo test --verbose | |
| - name: Run integration tests | |
| run: cd tests; cargo run -- --cookie test | |
| clippy: | |
| name: clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Install dependencies | |
| run: sudo apt-get install libsodium-dev libsqlite3-dev libzstd-dev | |
| - name: Run clippy | |
| #run: cargo clippy --all --lib --tests -- --deny warnings | |
| run: cargo clippy --all --lib --tests | |
| fmt: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Run cargo fmt | |
| run: cargo fmt --all -- --check |