docs: Cargo.toml - Update rustc dep upstream reference - #5
Conversation
polarathene
commented
Feb 26, 2026
Using That reference is a bit more clearer with intent.
[dependencies]
# ...# Internal feature, only used when building as part of libstd, not part of the# stable interface of this crate.core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }
alloc = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-alloc' }
[features]
# ...# Internal feature, only used when building as part of libstd, not part of the# stable interface of this crate.rustc-dep-of-std = ['core', 'alloc', 'gimli/rustc-dep-of-std']That same Nov 2018 commit shows that the
Additionally it seems since Rust 1.89 (Aug 2025), there is no longer a need for Looking at some projects that dropped it, I didn't see any change to a |
UPDATE: Looking at
alexcrichton/dlmalloc-rsvssunfishcode/rustix-dlmallochistory, it seems you're maintaining the fork for rustix support by rewriting history with a rebase to sync for updates? I'll raise this PR upstream atalexcrichton/dlmalloc-rsinstead then 👍 (EDIT:Done)This appears to have changed in 2020 with Rust 1.47.
The reference doesn't quite communicate the context for usage here in this crate? I assume it's related to building the std lib with nightly? The comment might benefit from a little more context regarding that but I doubt most readers care (if they don't grok the provided context)? 😅