diff --git a/.github/workflows/check-rust.yml b/.github/workflows/check-rust.yml index 42cfbe7..c4a6ae4 100644 --- a/.github/workflows/check-rust.yml +++ b/.github/workflows/check-rust.yml @@ -54,3 +54,26 @@ jobs: - name: Check run: mise run rs-check + + check-windows: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v6 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Cache cargo registry + uses: actions/cache@v5 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- + + - name: Check + run: cargo check --locked diff --git a/Cargo.lock b/Cargo.lock index d463138..a123191 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -387,6 +387,12 @@ version = "3.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + [[package]] name = "bytes" version = "1.11.1" @@ -1193,9 +1199,11 @@ version = "3.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eebcc3aff044e5944a8fbaf69eb277d11986064cba30c468730e8b9909fb551c" dependencies = [ + "byteorder", "dbus-secret-service", "log", "secret-service", + "windows-sys 0.60.2", "zbus", "zeroize", ] diff --git a/Cargo.toml b/Cargo.toml index 3867f16..16aa239 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,9 @@ toml = "0.8" rpassword = "7" keyring = { version = "3", default-features = false, features = ["async-secret-service", "crypto-rust"] } +[target.'cfg(windows)'.dependencies] +keyring = { version = "3", features = ["windows-native"] } + [dev-dependencies] httpmock = { version = "0.7", default-features = false } tempfile = "3"