File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,6 @@ anyhow.workspace = true
128
128
base64.workspace = true
129
129
bytesize.workspace = true
130
130
cargo-credential.workspace = true
131
- cargo-credential-libsecret.workspace = true
132
- cargo-credential-macos-keychain.workspace = true
133
- cargo-credential-wincred.workspace = true
134
131
cargo-platform.workspace = true
135
132
cargo-util.workspace = true
136
133
clap = { workspace = true , features = [" wrap_help" ] }
@@ -189,9 +186,18 @@ unicode-xid.workspace = true
189
186
url.workspace = true
190
187
walkdir.workspace = true
191
188
189
+ [target .'cfg(target_os = "linux")' .dependencies ]
190
+ cargo-credential-libsecret.workspace = true
191
+
192
+ [target .'cfg(target_os = "macos")' .dependencies ]
193
+ cargo-credential-macos-keychain.workspace = true
194
+
192
195
[target .'cfg(not(windows))' .dependencies ]
193
196
openssl = { workspace = true , optional = true }
194
197
198
+ [target .'cfg(windows)' .dependencies ]
199
+ cargo-credential-wincred.workspace = true
200
+
195
201
[target .'cfg(windows)' .dependencies .windows-sys ]
196
202
workspace = true
197
203
features = [
Original file line number Diff line number Diff line change @@ -529,9 +529,15 @@ fn credential_action(
529
529
}
530
530
"cargo:paseto" => bail ! ( "cargo:paseto requires -Zasymmetric-token" ) ,
531
531
"cargo:token-from-stdout" => Box :: new ( BasicProcessCredential { } ) ,
532
+ #[ cfg( windows) ]
532
533
"cargo:wincred" => Box :: new ( cargo_credential_wincred:: WindowsCredential { } ) ,
534
+ #[ cfg( target_os = "macos" ) ]
533
535
"cargo:macos-keychain" => Box :: new ( cargo_credential_macos_keychain:: MacKeychain { } ) ,
536
+ #[ cfg( target_os = "linux" ) ]
534
537
"cargo:libsecret" => Box :: new ( cargo_credential_libsecret:: LibSecretCredential { } ) ,
538
+ name if BUILT_IN_PROVIDERS . contains ( & name) => {
539
+ Box :: new ( cargo_credential:: UnsupportedCredential { } )
540
+ }
535
541
process => Box :: new ( CredentialProcessCredential :: new ( process) ) ,
536
542
} ;
537
543
config. shell ( ) . verbose ( |c| {
You can’t perform that action at this time.
0 commit comments