docs: Cargo.toml - Update rustc dep upstream reference#5
docs: Cargo.toml - Update rustc dep upstream reference#5polarathene wants to merge 1 commit intosunfishcode:mainfrom
Cargo.toml - Update rustc dep upstream reference#5Conversation
|
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)? 😅