Skip to content

Commit e51c494

Browse files
committed
feat: stabilize credential-process and registry-auth
1 parent c2d26f3 commit e51c494

File tree

40 files changed

+712
-496
lines changed

40 files changed

+712
-496
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
# cargo-credential-1password
22

3-
This is the implementation for the Cargo credential helper for [1password].
4-
See the [credential-process] documentation for how to use this.
3+
A Cargo [credential provider] for [1password].
4+
5+
`cargo-credential-1password` uses the 1password `op` CLI to store the token. You must
6+
install the `op` CLI from the [1password
7+
website](https://1password.com/downloads/command-line/). You must run `op signin`
8+
at least once with the appropriate arguments (such as `op signin my.1password.com [email protected]`),
9+
unless you provide the sign-in-address and email arguments. The master password will be required on each request
10+
unless the appropriate `OP_SESSION` environment variable is set. It supports
11+
the following command-line arguments:
12+
* `--account`: The account shorthand name to use.
13+
* `--vault`: The vault name to use.
14+
* `--sign-in-address`: The sign-in-address, which is a web address such as `my.1password.com`.
15+
* `--email`: The email address to sign in with.
516

617
[1password]: https://1password.com/
7-
[credential-process]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process
18+
[credential provider]: https://doc.rust-lang.org/nightly/cargo/reference/registry-authentication.html

credential/cargo-credential-libsecret/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo-credential-libsecret"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
edition.workspace = true
55
license.workspace = true
66
repository = "https://github.com/rust-lang/cargo"

credential/cargo-credential-libsecret/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
This is the implementation for the Cargo credential helper for [GNOME libsecret].
44
See the [credential-process] documentation for how to use this.
55

6+
This credential provider is built-in to cargo as `cargo:libsecret`.
7+
68
[GNOME libsecret]: https://wiki.gnome.org/Projects/Libsecret
7-
[credential-process]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process
9+
[credential-process]: https://doc.rust-lang.org/nightly/cargo/reference/registry-authentication.html

credential/cargo-credential-macos-keychain/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo-credential-macos-keychain"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
edition.workspace = true
55
license.workspace = true
66
repository = "https://github.com/rust-lang/cargo"

credential/cargo-credential-macos-keychain/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
This is the implementation for the Cargo credential helper for [macOS Keychain].
44
See the [credential-process] documentation for how to use this.
55

6+
This credential provider is built-in to cargo as `cargo:macos-keychain`.
7+
68
[macOS Keychain]: https://support.apple.com/guide/keychain-access/welcome/mac
7-
[credential-process]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process
9+
[credential-process]: https://doc.rust-lang.org/nightly/cargo/reference/registry-authentication.html
10+

credential/cargo-credential-wincred/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo-credential-wincred"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
edition.workspace = true
55
license.workspace = true
66
repository = "https://github.com/rust-lang/cargo"

credential/cargo-credential-wincred/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
This is the implementation for the Cargo credential helper for [Windows Credential Manager].
44
See the [credential-process] documentation for how to use this.
55

6+
This credential provider is built-in to cargo as `cargo:wincred`.
7+
68
[Windows Credential Manager]: https://support.microsoft.com/en-us/windows/accessing-credential-manager-1b5c916a-6a16-889f-8581-fc16e8165ac0
7-
[credential-process]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process
9+
[credential-process]: https://doc.rust-lang.org/nightly/cargo/reference/registry-authentication.html

credential/cargo-credential/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ provides an interface to store tokens for authorizing access to a registry
55
such as https://crates.io/.
66

77
Documentation about credential processes may be found at
8-
https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process
8+
https://doc.rust-lang.org/nightly/cargo/reference/credential-provider-protocol.html
99

1010
Example implementations may be found at
1111
https://github.com/rust-lang/cargo/tree/master/credential

publish.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717

1818

1919
TO_PUBLISH = [
20+
'credential/cargo-credential',
21+
'credential/cargo-credential-libsecret',
22+
'credential/cargo-credential-wincred',
23+
'credential/cargo-credential-1password',
24+
'credential/cargo-credential-macos-keychain',
2025
'crates/cargo-platform',
2126
'crates/cargo-util',
2227
'crates/crates-io',

0 commit comments

Comments
 (0)