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
128128base64.workspace = true
129129bytesize.workspace = true
130130cargo-credential.workspace = true
131- cargo-credential-libsecret.workspace = true
132- cargo-credential-macos-keychain.workspace = true
133- cargo-credential-wincred.workspace = true
134131cargo-platform.workspace = true
135132cargo-util.workspace = true
136133clap = { workspace = true , features = [" wrap_help" ] }
@@ -189,9 +186,18 @@ unicode-xid.workspace = true
189186url.workspace = true
190187walkdir.workspace = true
191188
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+
192195[target .'cfg(not(windows))' .dependencies ]
193196openssl = { workspace = true , optional = true }
194197
198+ [target .'cfg(windows)' .dependencies ]
199+ cargo-credential-wincred.workspace = true
200+
195201[target .'cfg(windows)' .dependencies .windows-sys ]
196202workspace = true
197203features = [
Original file line number Diff line number Diff line change @@ -529,9 +529,15 @@ fn credential_action(
529529 }
530530 "cargo:paseto" => bail ! ( "cargo:paseto requires -Zasymmetric-token" ) ,
531531 "cargo:token-from-stdout" => Box :: new ( BasicProcessCredential { } ) ,
532+ #[ cfg( windows) ]
532533 "cargo:wincred" => Box :: new ( cargo_credential_wincred:: WindowsCredential { } ) ,
534+ #[ cfg( target_os = "macos" ) ]
533535 "cargo:macos-keychain" => Box :: new ( cargo_credential_macos_keychain:: MacKeychain { } ) ,
536+ #[ cfg( target_os = "linux" ) ]
534537 "cargo:libsecret" => Box :: new ( cargo_credential_libsecret:: LibSecretCredential { } ) ,
538+ name if BUILT_IN_PROVIDERS . contains ( & name) => {
539+ Box :: new ( cargo_credential:: UnsupportedCredential { } )
540+ }
535541 process => Box :: new ( CredentialProcessCredential :: new ( process) ) ,
536542 } ;
537543 config. shell ( ) . verbose ( |c| {
You can’t perform that action at this time.
0 commit comments