Problem
cargo logout doesn't seem to do anything when libsecret is used
Steps
- Log in with this in the configuration
[registry]
global-credential-providers = ["cargo:libsecret"]
- Note
cargo-registry:crates-io entry being created with the token in the password field
- Run
cargo logout
- Observe no output printed by the command,
cargo-registry:crates-io is still present with the same token/password
Possible Solution(s)
cargo logout should print logout status and actually do something when libsecret is used
Notes
No response
Version
cargo 1.95.0 (f2d3ce0bd 2026-03-21)
release: 1.95.0
commit-hash: f2d3ce0bd7f24a49f8f72d9000448f8838c4e850
commit-date: 2026-03-21
host: x86_64-unknown-linux-gnu
libgit2: 1.9.2 (sys:0.20.4 vendored)
libcurl: 8.15.0-DEV (sys:0.4.83+curl-8.15.0 vendored ssl:OpenSSL/3.5.4)
ssl: OpenSSL 3.5.4 30 Sep 2025
os: Ubuntu 24.4.0 (noble) [64-bit]
Problem
cargo logoutdoesn't seem to do anything whenlibsecretis usedSteps
cargo-registry:crates-ioentry being created with the token in the password fieldcargo logoutcargo-registry:crates-iois still present with the same token/passwordPossible Solution(s)
cargo logoutshould print logout status and actually do something whenlibsecretis usedNotes
No response
Version