Skip to content

Dev setup #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/cargo-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Cargo Audit

on:
push:
branches:
- master
paths:
- '**/Cargo.toml'
pull_request:
paths:
- '**/Cargo.toml'

permissions:
contents: read
actions: read

jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/cache@v4
with:
path: |
~/.cargo
key: ${{ runner.os }}-cargo-audit-${{ hashFiles('**/Cargo.toml') }}

- run: cargo install cargo-audit
- run: cargo audit --deny=warnings
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.toml') }}

- uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
Expand All @@ -99,13 +99,13 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
key: ${{ runner.os }}-cargo-coverage-${{ hashFiles('**/Cargo.toml') }}

- uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
toolchain: stable

- uses: taiki-e/install-action@13fe1882c51d253ef22193d24823029c0acab68b # cargo-llvm-cov
- uses: taiki-e/install-action@f676f6a897011f9ac8f578264b7142f4679496b9 # cargo-llvm-cov

- run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info

Expand All @@ -127,7 +127,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
key: ${{ runner.os }}-cargo-examples-${{ hashFiles('**/Cargo.toml') }}

- uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/workflows-audit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Workflows Audit

on:
push:
Expand All @@ -15,7 +15,7 @@ permissions:
actions: read

jobs:
workflows-audit:
audit:
runs-on: ubuntu-latest

steps:
Expand Down
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"recommendations": [
"rust-lang.rust-analyzer",
"vadimcn.vscode-lldb",
"tamasfe.even-better-toml",
"usernamehw.errorlens",
"fill-labs.dependi",
"ryanluker.vscode-coverage-gutters",
"cordx56.rustowl-vscode"
]
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"rust-analyzer.check.command": "clippy",
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true
},
"coverage-gutters.coverageBaseDir": "**",
"[html]": {
"editor.formatOnSave": false
Expand Down