-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo script example needs nightly -Zscript feature #12287
Conversation
r? @epage (rustbot has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have more discussions on Zulip for this topic. As epage said, shebang is platform dependent. I'll close this at this moment and let's discuss on Zulip. Thank you!
I was thinking the opposite. It sounds like |
(this is all within the scope of this being for unstable documentation, not production) |
Sounds fair. Let me reopen it. |
ad9ecea
to
4fb22dd
Compare
Addressed the comment re |
@bors r+ |
☀️ Test successful - checks-actions |
Update cargo 8 commits in 4cebd130ebca3bc219180a54f3e26cc1b14a91de..03bc66b55c290324bd46eb22e369c8fae1908f91 2023-06-21 18:59:29 +0000 to 2023-06-23 23:27:46 +0000 - fix(script): Be quiet on programmatic output (rust-lang/cargo#12305) - docs(unstable): Update script documentation (rust-lang/cargo#12308) - cargo script example needs nightly -Zscript feature (rust-lang/cargo#12287) - fix(script): Process config relative to script, not CWD (rust-lang/cargo#12303) - -Znext-lockfile-bump: Don't suggest using -Z on stable (rust-lang/cargo#12302) - build(deps): bump openssl from 0.10.54 to 0.10.55 (rust-lang/cargo#12300) - Add `.toml` file extension restriction for `-Zconfig-include` (rust-lang/cargo#12298) - docs(unstable): Point stable-unstable docs to nightly docs (rust-lang/cargo#12299) r? `@ghost`
What does this PR try to resolve?
Update cargo script example. Cargo script currently needs nightly
-Zscript
feature.Without this change users will see:
cc #12207
How should we test and review this PR?
I don't think any additional tests are needed. All existing tests for cargo script already use
-Zscript
.Additional information
Thanks for designing and implementing cargo script @epage!