mv std libs to library/

This commit is contained in:
mark 2020-06-11 21:31:49 -05:00
parent 9be8ffcb02
commit 2c31b45ae8
875 changed files with 1255 additions and 1223 deletions

4
.gitmodules vendored
View file

@ -25,8 +25,8 @@
[submodule "src/doc/rust-by-example"] [submodule "src/doc/rust-by-example"]
path = src/doc/rust-by-example path = src/doc/rust-by-example
url = https://github.com/rust-lang/rust-by-example.git url = https://github.com/rust-lang/rust-by-example.git
[submodule "src/stdarch"] [submodule "library/stdarch"]
path = src/stdarch path = library/stdarch
url = https://github.com/rust-lang/stdarch.git url = https://github.com/rust-lang/stdarch.git
[submodule "src/doc/rustc-dev-guide"] [submodule "src/doc/rustc-dev-guide"]
path = src/doc/rustc-dev-guide path = src/doc/rustc-dev-guide

View file

@ -2,9 +2,9 @@
members = [ members = [
"src/bootstrap", "src/bootstrap",
"src/rustc", "src/rustc",
"src/libstd",
"src/libtest",
"src/librustc_codegen_llvm", "src/librustc_codegen_llvm",
"library/std",
"library/test",
"src/tools/cargotest", "src/tools/cargotest",
"src/tools/clippy", "src/tools/clippy",
"src/tools/compiletest", "src/tools/compiletest",
@ -74,11 +74,11 @@ rustfmt-nightly = { path = "src/tools/rustfmt" }
# here # here
rustc-workspace-hack = { path = 'src/tools/rustc-workspace-hack' } rustc-workspace-hack = { path = 'src/tools/rustc-workspace-hack' }
# See comments in `tools/rustc-std-workspace-core/README.md` for what's going on # See comments in `library/rustc-std-workspace-core/README.md` for what's going on
# here # here
rustc-std-workspace-core = { path = 'src/tools/rustc-std-workspace-core' } rustc-std-workspace-core = { path = 'library/rustc-std-workspace-core' }
rustc-std-workspace-alloc = { path = 'src/tools/rustc-std-workspace-alloc' } rustc-std-workspace-alloc = { path = 'library/rustc-std-workspace-alloc' }
rustc-std-workspace-std = { path = 'src/tools/rustc-std-workspace-std' } rustc-std-workspace-std = { path = 'library/rustc-std-workspace-std' }
[patch."https://github.com/rust-lang/rust-clippy"] [patch."https://github.com/rust-lang/rust-clippy"]
clippy_lints = { path = "src/tools/clippy/clippy_lints" } clippy_lints = { path = "src/tools/clippy/clippy_lints" }

View file

@ -6,12 +6,8 @@ autotests = false
autobenches = false autobenches = false
edition = "2018" edition = "2018"
[lib]
name = "alloc"
path = "lib.rs"
[dependencies] [dependencies]
core = { path = "../libcore" } core = { path = "../core" }
compiler_builtins = { version = "0.1.10", features = ['rustc-dep-of-std'] } compiler_builtins = { version = "0.1.10", features = ['rustc-dep-of-std'] }
[dev-dependencies] [dev-dependencies]
@ -20,16 +16,16 @@ rand_xorshift = "0.2"
[[test]] [[test]]
name = "collectionstests" name = "collectionstests"
path = "../liballoc/tests/lib.rs" path = "tests/lib.rs"
[[bench]] [[bench]]
name = "collectionsbenches" name = "collectionsbenches"
path = "../liballoc/benches/lib.rs" path = "benches/lib.rs"
test = true test = true
[[bench]] [[bench]]
name = "vec_deque_append_bench" name = "vec_deque_append_bench"
path = "../liballoc/benches/vec_deque_append.rs" path = "benches/vec_deque_append.rs"
harness = false harness = false
[features] [features]

View file

@ -7,18 +7,16 @@ autobenches = false
edition = "2018" edition = "2018"
[lib] [lib]
name = "core"
path = "lib.rs"
test = false test = false
bench = false bench = false
[[test]] [[test]]
name = "coretests" name = "coretests"
path = "../libcore/tests/lib.rs" path = "tests/lib.rs"
[[bench]] [[bench]]
name = "corebenches" name = "corebenches"
path = "../libcore/benches/lib.rs" path = "benches/lib.rs"
test = true test = true
[dev-dependencies] [dev-dependencies]

Some files were not shown because too many files have changed in this diff Show more