Skip to content

Commit 61a513c

Browse files
committed
chore: make credential dependencies platform-specific
1 parent a4a8bd1 commit 61a513c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

credential/cargo-credential-macos-keychain/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ description = "A Cargo credential process that stores tokens in a macOS keychain
88

99
[dependencies]
1010
cargo-credential = { version = "0.2.0", path = "../cargo-credential" }
11+
12+
[target.'cfg(target_os = "macos")'.dependencies]
1113
security-framework = "2.0.0"

credential/cargo-credential-wincred/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@ description = "A Cargo credential process that stores tokens with Windows Creden
88

99
[dependencies]
1010
cargo-credential = { version = "0.2.0", path = "../cargo-credential" }
11-
windows-sys = { version = "0.48", features = ["Win32_Foundation", "Win32_Security_Credentials"] }
11+
12+
[target.'cfg(windows)'.dependencies.windows-sys]
13+
version = "0.48"
14+
features = [
15+
"Win32_Foundation",
16+
"Win32_Security_Credentials"
17+
]

0 commit comments

Comments
 (0)