Skip to content

Commit

Permalink
chore: turn off metadata lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Dec 28, 2024
1 parent 25611e1 commit 81a1128
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 10 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,35 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
- name: Rust cache
uses: Swatinem/[email protected].3
uses: Swatinem/[email protected].6
with:
prefix-key: cargo-${{ matrix.platform }}
- name: Install components
run: |
rustup component add clippy
rustup component add rustfmt
- name: Format Check
run: cargo fmt --all -- --check
- name: Lint Check
run: cargo clippy --workspace -- -D warnings
- name: Test(Rust)
run: cargo test --workspace

# https://nexte.st/docs/installation/pre-built-binaries/#using-nextest-in-github-actions
- name: Install nextest(Parallel Test Execution CLI)
uses: taiki-e/install-action@nextest
- name: Test
run: cargo nextest run --workspace

- name: Sync node version
uses: actions/setup-node@v4.0.3
uses: actions/setup-node@v4.1.0
with:
node-version: 'lts/*'
cache: 'npm'

- name: Node.js cache
uses: actions/cache@v4.0.2
uses: actions/cache@v4.2.0
with:
path: ${{ github.workspace }}/gui/frontend/.next/cache
# Generate a new cache whenever packages or source files change.
Expand Down Expand Up @@ -84,7 +89,7 @@ jobs:
mv ./target/release/bluetooth_battery_monitor ./build
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.4
uses: actions/upload-artifact@v4.5.0
with:
name: Bluetooth Battery Monitor ${{runner.os}}
path: |
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version = "0.3.1"
description = "Bluetooth battery monitor"
repository = "https://github.com/SARDONYX-sard/bluetooth-battery-monitor"
readme = "README.md"
keywords = ["devtools"]

[workspace]
members = ["crates/bluetooth", "crates/timer", "gui/backend"]
Expand Down Expand Up @@ -143,7 +144,6 @@ unnested_or_patterns = "deny"
unseparated_literal_suffix = "deny"
unused_self = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
useless_let_if_seq = "deny"
useless_transmute = "deny"
verbose_file_reads = "deny"
1 change: 1 addition & 0 deletions crates/bluetooth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ license = "MIT OR Apache-2.0"
repository.workspace = true
edition = "2021"
rust-version = "1.70"
keywords.workspace = true


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
1 change: 1 addition & 0 deletions crates/timer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ license = "MIT OR Apache-2.0"
repository.workspace = true
edition = "2021"
rust-version = "1.70"
keywords.workspace = true


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
3 changes: 2 additions & 1 deletion gui/backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ license = "MIT OR Apache-2.0"
repository.workspace = true
edition = "2021"
rust-version = "1.60"
keywords.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
Expand Down Expand Up @@ -54,5 +55,5 @@ tracing-appender = "0.2.3"
# DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"]

[lint]
[lints]
workspace = true
4 changes: 3 additions & 1 deletion gui/backend/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::cargo_common_metadata)]

fn main() {
tauri_build::build()
tauri_build::build();
}
1 change: 1 addition & 0 deletions gui/backend/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
#![allow(clippy::cargo_common_metadata)]

mod cmd;
mod error;
Expand Down

0 comments on commit 81a1128

Please sign in to comment.