Weihang Lo

Results 53 issues of Weihang Lo

### What does this PR try to resolve? New `-Ztrim-paths` remap rules for git/registry dependencies: * Git dependencies: remove ~/.cargo/git/checkouts prefix. * Registry dependencies: remove ~/.cargo/registry/src prefix. This make the...

A-build-execution
S-waiting-on-review

This is part of https://github.com/rust-lang/cargo/issues/12137 As of 6982b443cf438732f6652c798bff9244d77f753c, the remap of `-Ztrim-paths` is relatively simple. It follows what is described in [RFC 3127](https://rust-lang.github.io/rfcs/3127-trim-paths.html#trim-paths-implementation-in-cargo): > For the the current package (where...

S-needs-design
Z-trim-paths

### What does this PR try to resolve? `CARGO_TARGET__RUSTDOCFLAGS` was accidentally accepted somehow, so support both config and env officially, given that removing env support would be a breaking change....

A-documenting-cargo-itself
S-waiting-on-review
A-cfg-expr

### Summary RFC: [#3013] Original issue: [rust-lang/rust#82450](https://github.com/rust-lang/rust/issues/82450) Documentation: - https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#check-cfg - https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#cargorustc-check-cfgcheck_cfg This tracks the integration of rustc `--check-cfg` flag ([RFC #3013][#3013]), which enables complete or partial checking of conditional...

S-needs-mentor
C-tracking-issue
S-waiting-on-feedback

### What does this PR try to resolve? External subcommands are already able to inherit the jobserver from env since https://github.com/rust-lang/cargo/pull/10511. However, users reported that they've expected `cargo run` to...

Command-run
S-waiting-on-review

### Please complete the following tasks - [X] I have searched the [discussions](https://github.com/clap-rs/clap/discussions) - [X] I have searched the [open](https://github.com/clap-rs/clap/issues) and [rejected](https://github.com/clap-rs/clap/issues?q=is%3Aissue+label%3AS-wont-fix+is%3Aclosed) issues ### Rust Version rustc 1.72.0-beta.11 (7a3a43a3b 2023-08-18)...

C-bug
M-breaking-change
A-builder

[rendered](https://github.com/weihanglo/cargo/blob/version-bump/CHANGELOG.md)

S-waiting-on-review

### Summary Original issue: #1171. See also #11813 Implementation: #13252 Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#git `-Zgit` is a collection of new Git features in Cargo. Currently we have experiments on * Shallow clones...

A-git
C-tracking-issue

### What does this PR try to resolve? An unstable `-Zpatch-files` flag is added to support patching your dependencies with patch files, with the patchtool you configure in `[patchtool]` config...

A-configuration
A-workspaces
A-manifest
A-testing-cargo-itself
S-waiting-on-review
A-unstable

### What does this PR try to resolve? Protect standard library source from being fixed by `cargo fix`. This is a bug in rustc, which it shouldn't have given any...

Command-fix
S-waiting-on-review