mirror of
https://github.com/rust-lang/cargo
synced 2024-10-04 06:49:15 +00:00
Note that cargo-credential-gnome-secret won't be available precompiled.
The rust-lang/rust build infrastructure uses a version of Linux that is too old to support building this.
This commit is contained in:
parent
395edf2f8f
commit
eabef5698b
|
@ -1017,9 +1017,6 @@ credential-process = "cargo:macos-keychain"
|
|||
The current wrappers are:
|
||||
|
||||
* `cargo:macos-keychain`: Uses the macOS Keychain to store the token.
|
||||
* `cargo:gnome-secret`: Uses
|
||||
[libsecret](https://wiki.gnome.org/Projects/Libsecret) to store the token on
|
||||
Linux systems running GNOME.
|
||||
* `cargo:wincred`: Uses the Windows Credential Manager to store the token.
|
||||
* `cargo:1password`: Uses the 1password `op` CLI to store the token. You must
|
||||
install the `op` CLI from the [1password
|
||||
|
@ -1034,6 +1031,20 @@ The current wrappers are:
|
|||
* `--sign-in-address`: The sign-in-address, which is a web address such as `my.1password.com`.
|
||||
* `--email`: The email address to sign in with.
|
||||
|
||||
A wrapper is available for GNOME
|
||||
[libsecret](https://wiki.gnome.org/Projects/Libsecret) to store tokens on
|
||||
Linux systems. Due to build limitations, this wrapper is not available as a
|
||||
pre-compiled binary. This can be built and installed manually. First, install
|
||||
libsecret using your system package manager (for example, `sudo apt install
|
||||
libsecret-1-dev`). Then build and install the wrapper with `cargo install
|
||||
--git https://github.com/rust-lang/cargo.git cargo-credential-gnome-secret`.
|
||||
In the config, use a path to the binary like this:
|
||||
|
||||
```toml
|
||||
[registry]
|
||||
credential-process = "cargo-credential-gnome-secret {action}"
|
||||
```
|
||||
|
||||
#### `credential-process` Interface
|
||||
|
||||
There are two different kinds of token processes that Cargo supports. The
|
||||
|
|
Loading…
Reference in a new issue