Weihang Lo
Weihang Lo
Triage: We had [a talk on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/334885-t-cargo.2Fbuild-integration/topic/re.3A.20wasm-pack.20.2B.20--crate-type). No matter which solution comes out, Cargo can help in spreading the words about how `wasm-pack` and `--crate-type` play well with each other...
@daxpedda If I understand it correctly, the `fn main()` is in your `lib.rs`, and you'd like to build a binary crate also from the same `lib.rs` file, without exporting the...
If you have access to `Command`, [config command line override](https://doc.rust-lang.org/nightly/cargo/reference/config.html#command-line-overrides) is available. See a relevant discussion #14381 and other alternatives in .
> that's what I suspected. is `git-oxide` used for that already? It is still the `ignore` crate. https://github.com/rust-lang/cargo/blob/7ac34d3edc6129bbf835e32ac69c7d59c320d2c3/src/cargo/sources/path.rs#L477-L500 Another challenge is that we should avoid flooding people with those warnings....
@ijackson Cargo [started collecting last use data](https://doc.rust-lang.org/nightly/cargo/CHANGELOG.html#cargo-178-2024-05-02) since 1.78.0, which was almost one year ago. Personally I feel like that is long enough for us to ship this feature in...
Really appreciate the detailed reply! > …this feature is poorly compatible with continued use of older versions, that don't record last usage time. Those older versions might end up re-downloading...
This is the latest status of it on rustc side: , which the new remap rule in [the conclusion](https://github.com/rust-lang/rust/issues/111540#issuecomment-1994010274) is implemented. I've updated the unresolved issues section in this tracking...
Status update: * This change should make `-Ztrim-paths` also work for rustdoc * A stable hasher extracting from rustc is on its way. See also * https://github.com/rust-lang/compiler-team/issues/755 * https://github.com/rust-lang/rustc-stable-hash/pull/1
https://github.com/rust-lang/rust/pull/107099 is just merged, so should be able to support for rustdoc. Edit: need to adjust cargo to pass `--remap-path-prefix` to rustdoc invocations.
Updated: * doctest has supported remapping: https://github.com/rust-lang/rust/pull/122450 * rustdoc diagnostics hasn't: That potentially blocks this, if we would like to see `-Ztrim-paths` supports also for rustdoc invocations.