Make libstd depend on the hashbrown crate
This commit is contained in:
parent
556fc40a95
commit
1fa7a21534
5 changed files with 44 additions and 0 deletions
14
src/tools/rustc-std-workspace-alloc/Cargo.toml
Normal file
14
src/tools/rustc-std-workspace-alloc/Cargo.toml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[package]
|
||||
name = "rustc-std-workspace-alloc"
|
||||
version = "1.0.0"
|
||||
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
||||
license = 'MIT/Apache-2.0'
|
||||
description = """
|
||||
Hack for the compiler's own build system
|
||||
"""
|
||||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
|
||||
[dependencies]
|
||||
alloc = { path = "../../liballoc" }
|
||||
9
src/tools/rustc-std-workspace-alloc/lib.rs
Normal file
9
src/tools/rustc-std-workspace-alloc/lib.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#![feature(no_core, alloc)]
|
||||
#![no_core]
|
||||
|
||||
// See rustc-std-workspace-core for why this crate is needed.
|
||||
|
||||
// Rename the crate to avoid conflicting with the alloc module in liballoc.
|
||||
extern crate alloc as foo;
|
||||
|
||||
pub use foo::*;
|
||||
Loading…
Add table
Add a link
Reference in a new issue