Skip to content

Commit

Permalink
Update rust.md
Browse files Browse the repository at this point in the history
 hostType should be either platform or datasource. For Rust crate, datasource is not `cargo`, but `crate`
  • Loading branch information
i10416 authored Nov 18, 2024
1 parent 66f4af8 commit 46991e3
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 46991e3

Please sign in to comment.