Skip to content

Commit db16c20

Browse files
authored
Align Desktop Native's Rust CI checks with SDK (#17261)
* clean crate deps * update lint workflow * add rustfmt.toml * apply rust fmt * missed one * fix lint of lint lol * more deps platform fixes * fix macos_provider * some more deps clean * more cleanup * add --all-targets * remove another unused dep * generate index.d.ts * fix whitespace * fix split comment in biometric * formatting comment in biometric_v2 * apply fmt
1 parent 90ca6bf commit db16c20

File tree

59 files changed

+383
-506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+383
-506
lines changed

.github/workflows/lint.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,27 @@ jobs:
9898
with:
9999
persist-credentials: false
100100

101+
- name: Install Rust
102+
uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable
103+
with:
104+
toolchain: stable
105+
components: rustfmt, clippy
106+
107+
- name: Install Rust nightly
108+
uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable
109+
with:
110+
toolchain: nightly
111+
components: rustfmt
112+
101113
- name: Check Rust version
102114
run: rustup --version
103115

116+
- name: Cache cargo registry
117+
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
118+
104119
- name: Run cargo fmt
105120
working-directory: ./apps/desktop/desktop_native
106-
run: cargo fmt --check
121+
run: cargo +nightly fmt --check
107122

108123
- name: Run Clippy
109124
working-directory: ./apps/desktop/desktop_native
@@ -118,6 +133,13 @@ jobs:
118133
working-directory: ./apps/desktop/desktop_native
119134
run: cargo sort --workspace --check
120135

136+
- name: Install cargo-udeps
137+
run: cargo install cargo-udeps --version 0.1.57 --locked
138+
139+
- name: Cargo udeps
140+
working-directory: ./apps/desktop/desktop_native
141+
run: cargo +nightly udeps --workspace --all-features --all-targets
142+
121143
- name: Install cargo-deny
122144
uses: taiki-e/install-action@81ee1d48d9194cdcab880cbdc7d36e87d39874cb # v2.62.45
123145
with:

0 commit comments

Comments
 (0)