Skip to content

Commit

Permalink
Note that cargo-credential-gnome-secret won't be available precompiled.
Browse files Browse the repository at this point in the history
The rust-lang/rust build infrastructure uses a version of Linux that is
too old to support building this.
  • Loading branch information
ehuss committed Dec 9, 2020
1 parent 395edf2 commit eabef56
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/doc/src/reference/unstable.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit eabef56

Please sign in to comment.