cargo-credential-bitwarden

Crates.iocargo-credential-bitwarden
lib.rscargo-credential-bitwarden
version0.1.0
sourcesrc
created_at2024-05-19 20:19:35.654058
updated_at2024-05-19 20:19:35.654058
descriptionA Cargo credential process that stores tokens in a Bitwarden vault.
homepagehttps://github.com/Jantje19/cargo-credential-bitwarden#readme
repositoryhttps://github.com/Jantje19/cargo-credential-bitwarden
max_upload_size
id1245194
size36,452
Jantje19 (Jantje19)

documentation

README

cargo-credential-bitwarden

A Cargo credential provider for Bitwarden.

This crate borrows heavily from the cargo-credential-1password crate.

Usage

cargo-credential-bitwarden uses the Bitwarden bw CLI to store the token. You must install the bw CLI from the Bitwarden website.

Afterward you need to configure cargo to use cargo-credential-bitwarden 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-bitwarden --sync"]

Finally, run cargo login to save your registry token in Bitwarden.

CLI Arguments

cargo-credential-bitwarden supports the following command-line arguments:

  • --email: The email address used to login.
  • --sync: Automatically sync the local vault before getting the credential and automatically sync when the credential gets updated.
Commit count: 1

cargo fmt