Skip to content

Commit eabef56

Browse files
committed
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.
1 parent 395edf2 commit eabef56

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/doc/src/reference/unstable.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,9 +1017,6 @@ credential-process = "cargo:macos-keychain"
10171017
The current wrappers are:
10181018

10191019
* `cargo:macos-keychain`: Uses the macOS Keychain to store the token.
1020-
* `cargo:gnome-secret`: Uses
1021-
[libsecret](https://wiki.gnome.org/Projects/Libsecret) to store the token on
1022-
Linux systems running GNOME.
10231020
* `cargo:wincred`: Uses the Windows Credential Manager to store the token.
10241021
* `cargo:1password`: Uses the 1password `op` CLI to store the token. You must
10251022
install the `op` CLI from the [1password
@@ -1034,6 +1031,20 @@ The current wrappers are:
10341031
* `--sign-in-address`: The sign-in-address, which is a web address such as `my.1password.com`.
10351032
* `--email`: The email address to sign in with.
10361033

1034+
A wrapper is available for GNOME
1035+
[libsecret](https://wiki.gnome.org/Projects/Libsecret) to store tokens on
1036+
Linux systems. Due to build limitations, this wrapper is not available as a
1037+
pre-compiled binary. This can be built and installed manually. First, install
1038+
libsecret using your system package manager (for example, `sudo apt install
1039+
libsecret-1-dev`). Then build and install the wrapper with `cargo install
1040+
--git https://github.com/rust-lang/cargo.git cargo-credential-gnome-secret`.
1041+
In the config, use a path to the binary like this:
1042+
1043+
```toml
1044+
[registry]
1045+
credential-process = "cargo-credential-gnome-secret {action}"
1046+
```
1047+
10371048
#### `credential-process` Interface
10381049

10391050
There are two different kinds of token processes that Cargo supports. The

0 commit comments

Comments
 (0)