Make libstd depend on the hashbrown crate

This commit is contained in:
Amanieu d'Antras 2019-02-07 12:08:05 +01:00
parent 556fc40a95
commit 1fa7a21534
5 changed files with 44 additions and 0 deletions

View 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" }

View 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::*;