Skip to content

Commit 0a7fbf5

Browse files
committed
docs(auth): Merge recommended configurations
Before, it made it look like you needed to maintain a platform-specific `.cargo/config.toml` but it can instead be cross-platform.
1 parent 88694ae commit 0a7fbf5

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/doc/src/reference/registry-authentication.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,10 @@ to look in Cargo's [credentials](config.md#credentials) file or environment vari
2424
Some private registries may also recommend a registry-specific credential-provider. Check your
2525
registry's documentation to see if this is the case.
2626

27-
### macOS configuration
2827
```toml
2928
# ~/.cargo/config.toml
3029
[registry]
31-
global-credential-providers = ["cargo:token", "cargo:macos-keychain"]
32-
```
33-
34-
### Linux (libsecret) configuration
35-
```toml
36-
# ~/.cargo/config.toml
37-
[registry]
38-
global-credential-providers = ["cargo:token", "cargo:libsecret"]
39-
```
40-
41-
### Windows configuration
42-
```toml
43-
# %USERPROFILE%\.cargo\config.toml
44-
[registry]
45-
global-credential-providers = ["cargo:token", "cargo:wincred"]
30+
global-credential-providers = ["cargo:token", "cargo:libsecret", "cargo:macos-keychain", "cargo:wincred"]
4631
```
4732

4833
Note that later entries have higher precedence.

0 commit comments

Comments
 (0)