From ac5da123828a84749b40ecac64e7da7c62486b17 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Wed, 20 Sep 2023 12:33:43 +0800 Subject: [PATCH] doc: mention unstable flag `-Z asymmetric-token` Co-authored-by: Arlo Siemsen --- src/doc/src/reference/unstable.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/src/reference/unstable.md b/src/doc/src/reference/unstable.md index 456cb22f4cf..c57871d20f7 100644 --- a/src/doc/src/reference/unstable.md +++ b/src/doc/src/reference/unstable.md @@ -936,7 +936,7 @@ timeout = 300 # in seconds * Tracking Issue: [10519](https://github.com/rust-lang/cargo/issues/10519) * RFC: [#3231](https://github.com/rust-lang/rfcs/pull/3231) -Add support for Cargo to authenticate the user to registries without sending secrets over the network. +The `-Z asymmetric-token` flag enables the `cargo:paseto` credential provider which allows Cargo to authenticate to registries without sending secrets over the network. In [`config.toml`](config.md) and `credentials.toml` files there is a field called `private-key`, which is a private key formatted in the secret [subset of `PASERK`](https://github.com/paseto-standard/paserk/blob/master/types/secret.md) and is used to sign asymmetric tokens