Skip to content

Commit db1bbda

Browse files
committed
refactor: Group target directory drawbacks
1 parent 457801f commit db1bbda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/3502-cargo-script.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,16 +417,16 @@ stored in other locations
417417
(our temp files are inside the `target/` dir and should be rarer).
418418
A GC for cargo is being tracked in [rust-lang/cargo#12633](https://github.com/rust-lang/cargo/issues/12633)
419419

420+
With lockfile "hidden away" in the `target/`,
421+
users might not be aware that they are using old dependencies.
422+
420423
Syntax is not reserved for `build.rs`, proc-maros, embedding
421424
additional packages, or other functionality to be added later with the
422425
assumption that if these features are needed, a user should be using a
423426
multi-file package.
424427
As stated in the Motivation, this doesn't have to perfectly cover every use
425428
case that a `Cargo.toml` would.
426429

427-
With lockfile "hidden away" in the `target/`,
428-
users might not be aware that they are using old dependencies.
429-
430430
The precedence schema for `cargo foo` has limitations
431431
- If your script has the same name as a built-in subcommand, then you have to prefix it with `./`
432432
- 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.

0 commit comments

Comments
 (0)