| Crates.io | cargo-credential-1password |
| lib.rs | cargo-credential-1password |
| version | 0.4.5 |
| created_at | 2020-12-16 21:19:45.860234+00 |
| updated_at | 2024-11-28 14:02:23.189379+00 |
| description | A Cargo credential process that stores tokens in a 1password vault. |
| homepage | https://github.com/rust-lang/cargo |
| repository | https://github.com/rust-lang/cargo |
| max_upload_size | |
| id | 323719 |
| size | 33,031 |
A Cargo credential provider for 1password.
This crate is maintained by the Cargo team as a part of an experiment around 1password integration. We encourage people to try to use this crate in their projects and provide feedback through issues, but do not guarantee long term maintenance.
cargo-credential-1password uses the 1password op CLI to store the token. You
must install the op CLI from the 1password
website.
Afterward you need to configure cargo to use cargo-credential-1password as
the credential provider. You can do this by adding something like the following
to your cargo config file:
[registry]
global-credential-providers = ["cargo-credential-1password --account my.1password.com"]
Finally, run cargo login to save your registry token in 1password.
cargo-credential-1password supports the following command-line arguments:
--account: The account name to use. For a list of available accounts,
run op account list.--vault: The vault name to use. For a list of available vaults,
run op vault list.