Skip to content

Commit

Permalink
Fix cargo install examples
Browse files Browse the repository at this point in the history
  • Loading branch information
orf authored Dec 29, 2024
1 parent 2b94fcf commit a0365d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/dev-tools/backends/cargo.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Select the CLI bin name to install when multiple are available (passed as `cargo

```toml
[tools]
"cargo:github.com/username/demo" = { version = "tag:v1.0.0", bin = "demo" }
"cargo:https://github.com/username/demo" = { version = "tag:v1.0.0", bin = "demo" }
```

### `crate`
Expand All @@ -106,7 +106,7 @@ Select the crate name to install when multiple are available (passed as

```toml
[tools]
"cargo:github.com/username/demo" = { version = "tag:v1.0.0", crate = "demo" }
"cargo:https://github.com/username/demo" = { version = "tag:v1.0.0", crate = "demo" }
```

### `locked`
Expand All @@ -116,5 +116,5 @@ pass `false` to disable:

```toml
[tools]
"cargo:github.com/username/demo" = { version = "latest", locked = false }
"cargo:https://github.com/username/demo" = { version = "latest", locked = false }
```

0 comments on commit a0365d1

Please sign in to comment.