Skip to content

Commit

Permalink
docs(rust): hostType should be "crate" instead of "cargo" (renovatebo…
Browse files Browse the repository at this point in the history
  • Loading branch information
i10416 authored and ssams committed Dec 2, 2024
1 parent a042d01 commit eb64ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Read the [Rust environment variables docs](https://doc.rust-lang.org/cargo/refer
You as user can set authentication for private crates by adding a `hostRules` configuration to your `renovate.json` file.

All token `hostRules` with a `hostType` (e.g. `github`, `gitlab`, `bitbucket`, etc.) and host rules without a `hostType` will be automatically setup for authentication.
You can also configure a `hostRules` that's only for Cargo authentication (e.g. `hostType: 'cargo'`).
You can also configure a `hostRules` that's only for Cargo authentication (e.g. `hostType: 'crate'`).

```js title="Example of authentication for a private GitHub and Cargo registry:"
module.exports = {
Expand All @@ -47,7 +47,7 @@ module.exports = {
{
matchHost: 'someGitHost.enterprise.com',
token: process.env.CARGO_GIT_TOKEN,
hostType: 'cargo',
hostType: 'crate',
},
],
};
Expand Down

0 comments on commit eb64ad0

Please sign in to comment.