Skip to content

Commit a875212

Browse files
committed
make rustc-std-workspace-core/alloc re-exports of their underlying crates, like std
1 parent 4b84043 commit a875212

File tree

7 files changed

+29
-2
lines changed

7 files changed

+29
-2
lines changed

Cargo.lock

+12
Original file line numberDiff line numberDiff line change
@@ -3196,6 +3196,18 @@ version = "0.1.0"
31963196
source = "registry+https://github.com/rust-lang/crates.io-index"
31973197
checksum = "e5c9f15eec8235d7cb775ee6f81891db79b98fd54ba1ad8fae565b88ef1ae4e2"
31983198

3199+
[[package]]
3200+
name = "rustc-std-workspace-alloc"
3201+
version = "1.0.1"
3202+
3203+
[[package]]
3204+
name = "rustc-std-workspace-core"
3205+
version = "1.0.1"
3206+
3207+
[[package]]
3208+
name = "rustc-std-workspace-std"
3209+
version = "1.0.1"
3210+
31993211
[[package]]
32003212
name = "rustc_abi"
32013213
version = "0.0.0"

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ members = [
4444
"src/tools/coverage-dump",
4545
"src/tools/rustc-perf-wrapper",
4646
"src/tools/wasm-component-ld",
47+
"src/tools/rustc-std-workspace/rustc-std-workspace-core",
48+
"src/tools/rustc-std-workspace/rustc-std-workspace-alloc",
49+
"src/tools/rustc-std-workspace/rustc-std-workspace-std",
4750
]
4851

4952
exclude = [
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
[package]
22
name = "rustc-std-workspace-alloc"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
authors = ["Alex Crichton <[email protected]>"]
55
edition = "2018"
66
license = 'MIT/Apache-2.0'
77
description = 'workspace hack'
88

9+
repository = "https://github.com/rust-lang/rust/tree/master/src/tools/rustc-std-workspace"
10+
911
[dependencies]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#![no_std]
2+
extern crate alloc as the_alloc;
3+
pub use the_alloc::*;
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
[package]
22
name = "rustc-std-workspace-core"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
authors = ["Alex Crichton <[email protected]>"]
55
license = "MIT/Apache-2.0"
66
description = """
77
Explicitly empty crate for rust-lang/rust integration
88
"""
99

10+
repository = "https://github.com/rust-lang/rust/tree/master/src/tools/rustc-std-workspace"
11+
1012
[dependencies]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#![no_std]
2+
extern crate core as the_core;
3+
pub use the_core::*;

src/tools/rustc-std-workspace/rustc-std-workspace-std/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ authors = ["Alex Crichton <[email protected]>"]
55
license = "MIT/Apache-2.0"
66
description = "Workaround for rustbuild"
77

8+
repository = "https://github.com/rust-lang/rust/tree/master/src/tools/rustc-std-workspace"
9+
810
[lib]
911
name = "std"
1012

0 commit comments

Comments
 (0)