diff options
Diffstat (limited to 'library/rustc-std-workspace-alloc')
-rw-r--r-- | library/rustc-std-workspace-alloc/Cargo.toml | 14 | ||||
-rw-r--r-- | library/rustc-std-workspace-alloc/lib.rs | 9 |
2 files changed, 23 insertions, 0 deletions
diff --git a/library/rustc-std-workspace-alloc/Cargo.toml b/library/rustc-std-workspace-alloc/Cargo.toml new file mode 100644 index 000000000..049ca3e46 --- /dev/null +++ b/library/rustc-std-workspace-alloc/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "rustc-std-workspace-alloc" +version = "1.99.0" +license = 'MIT OR Apache-2.0' +description = """ +Hack for the compiler's own build system +""" +edition = "2021" + +[lib] +path = "lib.rs" + +[dependencies] +alloc = { path = "../alloc" } diff --git a/library/rustc-std-workspace-alloc/lib.rs b/library/rustc-std-workspace-alloc/lib.rs new file mode 100644 index 000000000..c38a8d2f2 --- /dev/null +++ b/library/rustc-std-workspace-alloc/lib.rs @@ -0,0 +1,9 @@ +#![feature(no_core)] +#![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::*; |