From 5c6f27b1e064af7c0d922eb00b5494fc6ca81b82 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 3 Nov 2024 22:30:02 +0100 Subject: [PATCH] extract rustc-std-workspace crate sources from crates.io and place them here --- src/rustc-std-workspace/README.md | 4 ++++ .../rustc-std-workspace-alloc/Cargo.toml | 9 +++++++++ .../rustc-std-workspace-alloc/src/lib.rs | 0 .../rustc-std-workspace-core/Cargo.toml | 10 ++++++++++ .../rustc-std-workspace-core/src/lib.rs | 0 .../rustc-std-workspace-std/Cargo.toml | 10 ++++++++++ .../rustc-std-workspace-std/src/lib.rs | 1 + 7 files changed, 34 insertions(+) create mode 100644 src/rustc-std-workspace/README.md create mode 100644 src/rustc-std-workspace/rustc-std-workspace-alloc/Cargo.toml create mode 100644 src/rustc-std-workspace/rustc-std-workspace-alloc/src/lib.rs create mode 100644 src/rustc-std-workspace/rustc-std-workspace-core/Cargo.toml create mode 100644 src/rustc-std-workspace/rustc-std-workspace-core/src/lib.rs create mode 100644 src/rustc-std-workspace/rustc-std-workspace-std/Cargo.toml create mode 100644 src/rustc-std-workspace/rustc-std-workspace-std/src/lib.rs diff --git a/src/rustc-std-workspace/README.md b/src/rustc-std-workspace/README.md new file mode 100644 index 00000000000..996fe0d3ba1 --- /dev/null +++ b/src/rustc-std-workspace/README.md @@ -0,0 +1,4 @@ +See `library/rustc-std-workspace-core/README.md` for context. + +These are the crates.io versions of these crates, as opposed to the versions +in `library` which are the ones used inside the rustc workspace. diff --git a/src/rustc-std-workspace/rustc-std-workspace-alloc/Cargo.toml b/src/rustc-std-workspace/rustc-std-workspace-alloc/Cargo.toml new file mode 100644 index 00000000000..777d57d2011 --- /dev/null +++ b/src/rustc-std-workspace/rustc-std-workspace-alloc/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "rustc-std-workspace-alloc" +version = "1.0.0" +authors = ["Alex Crichton "] +edition = "2018" +license = 'MIT/Apache-2.0' +description = 'workspace hack' + +[dependencies] diff --git a/src/rustc-std-workspace/rustc-std-workspace-alloc/src/lib.rs b/src/rustc-std-workspace/rustc-std-workspace-alloc/src/lib.rs new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/rustc-std-workspace/rustc-std-workspace-core/Cargo.toml b/src/rustc-std-workspace/rustc-std-workspace-core/Cargo.toml new file mode 100644 index 00000000000..9f99308bf68 --- /dev/null +++ b/src/rustc-std-workspace/rustc-std-workspace-core/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "rustc-std-workspace-core" +version = "1.0.0" +authors = ["Alex Crichton "] +license = "MIT/Apache-2.0" +description = """ +Explicitly empty crate for rust-lang/rust integration +""" + +[dependencies] diff --git a/src/rustc-std-workspace/rustc-std-workspace-core/src/lib.rs b/src/rustc-std-workspace/rustc-std-workspace-core/src/lib.rs new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/rustc-std-workspace/rustc-std-workspace-std/Cargo.toml b/src/rustc-std-workspace/rustc-std-workspace-std/Cargo.toml new file mode 100644 index 00000000000..d5bf3133e2c --- /dev/null +++ b/src/rustc-std-workspace/rustc-std-workspace-std/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "rustc-std-workspace-std" +version = "1.0.1" +authors = ["Alex Crichton "] +license = "MIT/Apache-2.0" +description = "Workaround for rustbuild" + +[lib] +name = "std" + diff --git a/src/rustc-std-workspace/rustc-std-workspace-std/src/lib.rs b/src/rustc-std-workspace/rustc-std-workspace-std/src/lib.rs new file mode 100644 index 00000000000..f40d09cafbb --- /dev/null +++ b/src/rustc-std-workspace/rustc-std-workspace-std/src/lib.rs @@ -0,0 +1 @@ +pub use std::*;