-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Tracking Issue for cargo-script RFC 3424 #12207
Copy link
Copy link
Labels
C-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Status: An implemented feature is waiting on community feedback for bugs or design concerns.Z-scriptNightly: cargo scriptNightly: cargo script
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Status: An implemented feature is waiting on community feedback for bugs or design concerns.Z-scriptNightly: cargo scriptNightly: cargo script
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
In Progress
View all comments
Summary
eRFC: #3424
RFC: rust-lang/rfcs#3502, rust-lang/rfcs#3503
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#script
Testing steps (
previous testing steps)Implementation:
synfor parsing doc comments #12258cargo Cargo.toml#12281Cargo.tomlof the cargo-script #14670target/#12282CARGO_MANIFEST_PATHvariable to replaceCARGO_MANIFEST_DIR(feat: add CARGO_MANIFEST_PATH env variable #14404)cargo installignores therust-toolchain.tomlor uses the wrong one #11036)versionfield optional in Cargo.toml #9829cargo pkgidsupport (Addcargo pkgidfor cargo-script #14831, feat: addcargo pkgidsupport for cargo-script #14961)[lib](Cargo scripts try to build a nearbysrc/lib.rsif present #14476)cargo add/cargo rmsupport (feat(toml): Allow adding/removing from cargo scripts #14857)cargo removeprints the edition warning twicecargo clippysupportcargo fmtsupport (Styling of Rust Frontmatter style-team#212)cargo fixsupport (fix(fix): Migrate cargo script manifests across editions #14864)cargo(for cargo script) and rustc disagee on shebangs #15170)Deferred / non-blocking:
$CARGOpassed to external subcommands can point to the wrongcargoif already set #15099cargo publish(including setting theincludesimplicitly)cargo foo.rsoutput noise (Cargo script should only output messages from the script for no-change builds #16388)CARGO_TARGET_DIRto make it the parent of all target directories rfcs#3371 and last-seen zulip discussion for shared cache rather than a sharedCARGO_TARGET_DIRlike in the Pre-RFCpackage.nameoptional #12689-Zscriptshould overridecurrent_exe#12870cargo Cargo.tomlsupport, see Remove the support forCargo.tomlof the cargo-script #14670cargo install --path(uses the samepathsyntax as[dependencies])Issues: Z-scriptNightly: cargo script
Note: third-party support
Considerations for stabilization
cargo install(Change config paths to only check CARGO_HOME for cargo-script #14749)current_dir)Unresolved Issues
See also the Pre-RFC for more discussion
Known Issues
cargo foo.rs -Zsomething, onlycargo -Zsomething cargo.rs(true for any global flag in Cargo) because anything after the script name is assumed to be an argument to the script, like third-party subcommands.Future Extensions
No response
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.