You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: text/3502-cargo-script.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -425,6 +425,11 @@ case that a `Cargo.toml` would.
425
425
With lockfile "hidden away" in the `target/`,
426
426
users might not be aware that they are using old dependencies.
427
427
428
+
The precedence schema for `cargo foo` has limitations
429
+
- If your script has the same name as a built-in subcommand, then you have to prefix it with `./`
430
+
- If you browse a random repo and try to run one of your aliases or third-party commands, you could unintentionally get a local script instead.
431
+
- If `PATH` is unset or set to an empty string, then running `build` will run `cargo build` and run the built-in `build` command rather than your script
0 commit comments