Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make .cargo/credentials a subset of .cargo/config #4839

Merged
merged 1 commit into from
Jan 9, 2018

Commits on Jan 8, 2018

  1. Make .cargo/credentials a subset of .cargo/config

    Previously, .cargo/credentials looked like
    
    ```toml
    token = "..."
    
    [my-registry]
    token = "..."
    ```
    
    And was simply merged into the `registry` block of .cargo/config. This
    meant that custom registry tokens were under
    `registry.my-registry.token` rather than `registries.my-registry.token`
    which is where the index was located, and that you couldn't have a
    custom registry named `token` or it'd conflict with the token for the
    default registry.
    
    This commit changes things such that .cargo/credentials has the same
    layout as .cargo/config, but only contains token values. For backwards
    compatibility, we move `token` to `registry.token` when parsing.
    sfackler committed Jan 8, 2018
    Configuration menu
    Copy the full SHA
    5cb5e7d View commit details
    Browse the repository at this point in the history