bootstrap: Add a bunch of Cargo.toml files

These describe the structure of all our crate dependencies.
This commit is contained in:
Alex Crichton 2016-01-21 15:19:23 -08:00
parent 7cbd2457ad
commit 2581b14147
41 changed files with 642 additions and 0 deletions

14
src/liballoc/Cargo.toml Normal file
View File

@ -0,0 +1,14 @@
[package]
authors = ["The Rust Project Developers"]
name = "alloc"
version = "0.0.0"
[lib]
name = "alloc"
path = "lib.rs"
test = false
[dependencies]
core = { path = "../libcore" }
libc = { path = "../rustc/libc_shim" }
alloc_system = { path = "../liballoc_system" }

View File

@ -0,0 +1,22 @@
[package]
authors = ["The Rust Project Developers"]
name = "alloc_jemalloc"
version = "0.0.0"
build = "build.rs"
links = "jemalloc"
[lib]
name = "alloc_jemalloc"
path = "lib.rs"
test = false
[dependencies]
core = { path = "../libcore" }
libc = { path = "../rustc/libc_shim" }
[build-dependencies]
build_helper = { path = "../build_helper" }
gcc = "0.3.17"
[features]
debug = []

View File

@ -0,0 +1,13 @@
[package]
authors = ["The Rust Project Developers"]
name = "alloc_system"
version = "0.0.0"
[lib]
name = "alloc_system"
path = "lib.rs"
test = false
[dependencies]
core = { path = "../libcore" }
libc = { path = "../rustc/libc_shim" }

9
src/libarena/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
authors = ["The Rust Project Developers"]
name = "arena"
version = "0.0.0"
[lib]
name = "arena"
path = "lib.rs"
crate-type = ["dylib"]

View File

@ -0,0 +1,14 @@
[package]
authors = ["The Rust Project Developers"]
name = "collections"
version = "0.0.0"
[lib]
name = "collections"
path = "lib.rs"
test = false
[dependencies]
alloc = { path = "../liballoc" }
core = { path = "../libcore" }
rustc_unicode = { path = "../librustc_unicode" }

9
src/libcore/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
authors = ["The Rust Project Developers"]
name = "core"
version = "0.0.0"
[lib]
name = "core"
path = "lib.rs"
test = false

14
src/libflate/Cargo.toml Normal file
View File

@ -0,0 +1,14 @@
[package]
authors = ["The Rust Project Developers"]
name = "flate"
version = "0.0.0"
build = "build.rs"
[lib]
name = "flate"
path = "lib.rs"
crate-type = ["dylib"]
[build-dependencies]
build_helper = { path = "../build_helper" }
gcc = "0.3"

View File

@ -0,0 +1,9 @@
[package]
authors = ["The Rust Project Developers"]
name = "fmt_macros"
version = "0.0.0"
[lib]
name = "fmt_macros"
path = "lib.rs"
crate-type = ["dylib"]

View File

@ -0,0 +1,9 @@
[package]
authors = ["The Rust Project Developers"]
name = "getopts"
version = "0.0.0"
[lib]
name = "getopts"
path = "lib.rs"
crate-type = ["dylib", "rlib"]

View File

@ -0,0 +1,9 @@
[package]
authors = ["The Rust Project Developers"]
name = "graphviz"
version = "0.0.0"
[lib]
name = "graphviz"
path = "lib.rs"
crate-type = ["dylib"]

9
src/liblog/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
authors = ["The Rust Project Developers"]
name = "log"
version = "0.0.0"
[lib]
name = "log"
path = "lib.rs"
crate-type = ["dylib", "rlib"]

12
src/librand/Cargo.toml Normal file
View File

@ -0,0 +1,12 @@
[package]
authors = ["The Rust Project Developers"]
name = "rand"
version = "0.0.0"
[lib]
name = "rand"
path = "lib.rs"
test = false
[dependencies]
core = { path = "../libcore" }

13
src/librbml/Cargo.toml Normal file
View File

@ -0,0 +1,13 @@
[package]
authors = ["The Rust Project Developers"]
name = "rbml"
version = "0.0.0"
[lib]
name = "rbml"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
log = { path = "../liblog" }
serialize = { path = "../libserialize" }

24
src/librustc/Cargo.toml Normal file
View File

@ -0,0 +1,24 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc"
version = "0.0.0"
[lib]
name = "rustc"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
arena = { path = "../libarena" }
flate = { path = "../libflate" }
fmt_macros = { path = "../libfmt_macros" }
getopts = { path = "../libgetopts" }
graphviz = { path = "../libgraphviz" }
log = { path = "../liblog" }
rbml = { path = "../librbml" }
rustc_back = { path = "../librustc_back" }
rustc_data_structures = { path = "../librustc_data_structures" }
rustc_front = { path = "../librustc_front" }
rustc_llvm = { path = "../librustc_llvm" }
serialize = { path = "../libserialize" }
syntax = { path = "../libsyntax" }

View File

@ -0,0 +1,19 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_back"
version = "0.0.0"
[lib]
name = "rustc_back"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
syntax = { path = "../libsyntax" }
serialize = { path = "../libserialize" }
rustc_llvm = { path = "../librustc_llvm" }
rustc_front = { path = "../librustc_front" }
log = { path = "../liblog" }
[features]
jemalloc = []

View File

@ -0,0 +1,12 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_bitflags"
version = "0.0.0"
[lib]
name = "rustc_bitflags"
path = "lib.rs"
test = false
[dependencies]
core = { path = "../libcore" }

View File

@ -0,0 +1,16 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_borrowck"
version = "0.0.0"
[lib]
name = "rustc_borrowck"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
log = { path = "../liblog" }
syntax = { path = "../libsyntax" }
graphviz = { path = "../libgraphviz" }
rustc = { path = "../librustc" }
rustc_front = { path = "../librustc_front" }

View File

@ -0,0 +1,13 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_data_structures"
version = "0.0.0"
[lib]
name = "rustc_data_structures"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
log = { path = "../liblog" }
serialize = { path = "../libserialize" }

View File

@ -0,0 +1,33 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_driver"
version = "0.0.0"
[lib]
name = "rustc_driver"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
arena = { path = "../libarena" }
flate = { path = "../libflate" }
getopts = { path = "../libgetopts" }
graphviz = { path = "../libgraphviz" }
log = { path = "../liblog" }
rustc = { path = "../librustc" }
rustc_back = { path = "../librustc_back" }
rustc_borrowck = { path = "../librustc_borrowck" }
rustc_front = { path = "../librustc_front" }
rustc_lint = { path = "../librustc_lint" }
rustc_llvm = { path = "../librustc_llvm" }
rustc_mir = { path = "../librustc_mir" }
rustc_plugin = { path = "../librustc_plugin" }
rustc_passes = { path = "../librustc_passes" }
rustc_privacy = { path = "../librustc_privacy" }
rustc_resolve = { path = "../librustc_resolve" }
rustc_trans = { path = "../librustc_trans" }
rustc_typeck = { path = "../librustc_typeck" }
rustc_metadata = { path = "../librustc_metadata" }
serialize = { path = "../libserialize" }
syntax = { path = "../libsyntax" }
syntax_ext = { path = "../libsyntax_ext" }

View File

@ -0,0 +1,14 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_front"
version = "0.0.0"
[lib]
name = "rustc_front"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
log = { path = "../liblog" }
syntax = { path = "../libsyntax" }
serialize = { path = "../libserialize" }

View File

@ -0,0 +1,16 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_lint"
version = "0.0.0"
[lib]
name = "rustc_lint"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
log = { path = "../liblog" }
rustc = { path = "../librustc" }
rustc_back = { path = "../librustc_back" }
rustc_front = { path = "../librustc_front" }
syntax = { path = "../libsyntax" }

View File

@ -0,0 +1,17 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_llvm"
version = "0.0.0"
build = "build.rs"
[lib]
name = "rustc_llvm"
path = "lib.rs"
crate-type = ["dylib"]
[features]
static-libstdcpp = []
[build-dependencies]
build_helper = { path = "../build_helper" }
gcc = "0.3"

View File

@ -0,0 +1,20 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_metadata"
version = "0.0.0"
[lib]
name = "rustc_metadata"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
flate = { path = "../libflate" }
log = { path = "../liblog" }
rbml = { path = "../librbml" }
rustc = { path = "../librustc" }
rustc_back = { path = "../librustc_back" }
rustc_front = { path = "../librustc_front" }
rustc_llvm = { path = "../librustc_llvm" }
serialize = { path = "../libserialize" }
syntax = { path = "../libsyntax" }

View File

@ -0,0 +1,18 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_mir"
version = "0.0.0"
[lib]
name = "rustc_mir"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
graphviz = { path = "../libgraphviz" }
log = { path = "../liblog" }
rustc = { path = "../librustc" }
rustc_back = { path = "../librustc_back" }
rustc_data_structures = { path = "../librustc_data_structures" }
rustc_front = { path = "../librustc_front" }
syntax = { path = "../libsyntax" }

View File

@ -0,0 +1,15 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_passes"
version = "0.0.0"
[lib]
name = "rustc_passes"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
log = { path = "../liblog" }
rustc = { path = "../librustc" }
rustc_front = { path = "../librustc_front" }
syntax = { path = "../libsyntax" }

View File

@ -0,0 +1,13 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_platform_intrinsics"
version = "0.0.0"
[lib]
name = "rustc_platform_intrinsics"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
rustc_llvm = { path = "../librustc_llvm" }
rustc = { path = "../librustc" }

View File

@ -0,0 +1,17 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_plugin"
version = "0.0.0"
[lib]
name = "rustc_plugin"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
log = { path = "../liblog" }
rustc = { path = "../librustc" }
rustc_front = { path = "../librustc_front" }
rustc_metadata = { path = "../librustc_metadata" }
rustc_mir = { path = "../librustc_mir" }
syntax = { path = "../libsyntax" }

View File

@ -0,0 +1,15 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_privacy"
version = "0.0.0"
[lib]
name = "rustc_privacy"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
log = { path = "../liblog" }
rustc = { path = "../librustc" }
rustc_front = { path = "../librustc_front" }
syntax = { path = "../libsyntax" }

View File

@ -0,0 +1,16 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_resolve"
version = "0.0.0"
[lib]
name = "rustc_resolve"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
log = { path = "../liblog" }
syntax = { path = "../libsyntax" }
rustc = { path = "../librustc" }
rustc_front = { path = "../librustc_front" }
arena = { path = "../libarena" }

View File

@ -0,0 +1,25 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_trans"
version = "0.0.0"
[lib]
name = "rustc_trans"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
arena = { path = "../libarena" }
flate = { path = "../libflate" }
getopts = { path = "../libgetopts" }
graphviz = { path = "../libgraphviz" }
log = { path = "../liblog" }
rustc = { path = "../librustc" }
rustc_back = { path = "../librustc_back" }
rustc_data_structures = { path = "../librustc_data_structures" }
rustc_front = { path = "../librustc_front" }
rustc_llvm = { path = "../librustc_llvm" }
rustc_mir = { path = "../librustc_mir" }
rustc_platform_intrinsics = { path = "../librustc_platform_intrinsics" }
serialize = { path = "../libserialize" }
syntax = { path = "../libsyntax" }

View File

@ -0,0 +1,19 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_typeck"
version = "0.0.0"
[lib]
name = "rustc_typeck"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
log = { path = "../liblog" }
syntax = { path = "../libsyntax" }
arena = { path = "../libarena" }
fmt_macros = { path = "../libfmt_macros" }
rustc = { path = "../librustc" }
rustc_back = { path = "../librustc_back" }
rustc_front = { path = "../librustc_front" }
rustc_platform_intrinsics = { path = "../librustc_platform_intrinsics" }

View File

@ -0,0 +1,12 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustc_unicode"
version = "0.0.0"
[lib]
name = "rustc_unicode"
path = "lib.rs"
test = false
[dependencies]
core = { path = "../libcore" }

30
src/librustdoc/Cargo.toml Normal file
View File

@ -0,0 +1,30 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustdoc"
version = "0.0.0"
build = "build.rs"
[lib]
name = "rustdoc"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
arena = { path = "../libarena" }
getopts = { path = "../libgetopts" }
rustc = { path = "../librustc" }
rustc_back = { path = "../librustc_back" }
rustc_driver = { path = "../librustc_driver" }
rustc_front = { path = "../librustc_front" }
rustc_lint = { path = "../librustc_lint" }
rustc_metadata = { path = "../librustc_metadata" }
rustc_resolve = { path = "../librustc_resolve" }
rustc_trans = { path = "../librustc_trans" }
serialize = { path = "../libserialize" }
syntax = { path = "../libsyntax" }
test = { path = "../libtest" }
log = { path = "../liblog" }
[build-dependencies]
build_helper = { path = "../build_helper" }
gcc = "0.3"

View File

@ -0,0 +1,12 @@
[package]
authors = ["The Rust Project Developers"]
name = "serialize"
version = "0.0.0"
[lib]
name = "serialize"
path = "lib.rs"
crate-type = ["dylib", "rlib"]
[dependencies]
log = { path = "../liblog" }

30
src/libstd/Cargo.toml Normal file
View File

@ -0,0 +1,30 @@
[package]
authors = ["The Rust Project Developers"]
name = "std"
version = "0.0.0"
build = "build.rs"
[lib]
name = "std"
path = "lib.rs"
crate-type = ["dylib", "rlib"]
test = false
[dependencies]
alloc = { path = "../liballoc" }
alloc_jemalloc = { path = "../liballoc_jemalloc", optional = true }
alloc_system = { path = "../liballoc_system" }
collections = { path = "../libcollections" }
core = { path = "../libcore" }
libc = { path = "../rustc/libc_shim" }
rand = { path = "../librand" }
rustc_bitflags = { path = "../librustc_bitflags" }
rustc_unicode = { path = "../librustc_unicode" }
[build-dependencies]
build_helper = { path = "../build_helper" }
gcc = "0.3"
[features]
jemalloc = ["alloc_jemalloc"]
debug-jemalloc = ["alloc_jemalloc/debug"]

16
src/libsyntax/Cargo.toml Normal file
View File

@ -0,0 +1,16 @@
[package]
authors = ["The Rust Project Developers"]
name = "syntax"
version = "0.0.0"
[lib]
name = "syntax"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
arena = { path = "../libarena" }
fmt_macros = { path = "../libfmt_macros" }
serialize = { path = "../libserialize" }
term = { path = "../libterm" }
log = { path = "../liblog" }

View File

@ -0,0 +1,13 @@
[package]
authors = ["The Rust Project Developers"]
name = "syntax_ext"
version = "0.0.0"
[lib]
name = "syntax_ext"
path = "lib.rs"
crate-type = ["dylib"]
[dependencies]
fmt_macros = { path = "../libfmt_macros" }
syntax = { path = "../libsyntax" }

12
src/libterm/Cargo.toml Normal file
View File

@ -0,0 +1,12 @@
[package]
authors = ["The Rust Project Developers"]
name = "term"
version = "0.0.0"
[lib]
name = "term"
path = "lib.rs"
crate-type = ["dylib", "rlib"]
[dependencies]
log = { path = "../liblog" }

14
src/libtest/Cargo.toml Normal file
View File

@ -0,0 +1,14 @@
[package]
authors = ["The Rust Project Developers"]
name = "test"
version = "0.0.0"
[lib]
name = "test"
path = "lib.rs"
crate-type = ["dylib", "rlib"]
[dependencies]
getopts = { path = "../libgetopts" }
term = { path = "../libterm" }
serialize = { path = "../libserialize" }

13
src/rustbook/Cargo.toml Normal file
View File

@ -0,0 +1,13 @@
[package]
authors = ["The Rust Project Developers"]
name = "rustbook"
version = "0.0.0"
[lib]
name = "rustbook"
path = "main.rs"
crate-type = ["dylib"]
[dependencies]
rustc_back = { path = "../librustc_back" }
rustdoc = { path = "../librustdoc" }

12
src/rustc/Cargo.lock generated
View File

@ -140,6 +140,7 @@ dependencies = [
"rustc_llvm 0.0.0",
"rustc_metadata 0.0.0",
"rustc_mir 0.0.0",
"rustc_passes 0.0.0",
"rustc_plugin 0.0.0",
"rustc_privacy 0.0.0",
"rustc_resolve 0.0.0",
@ -206,6 +207,16 @@ dependencies = [
"syntax 0.0.0",
]
[[package]]
name = "rustc_passes"
version = "0.0.0"
dependencies = [
"log 0.0.0",
"rustc 0.0.0",
"rustc_front 0.0.0",
"syntax 0.0.0",
]
[[package]]
name = "rustc_platform_intrinsics"
version = "0.0.0"
@ -222,6 +233,7 @@ dependencies = [
"rustc 0.0.0",
"rustc_front 0.0.0",
"rustc_metadata 0.0.0",
"rustc_mir 0.0.0",
"syntax 0.0.0",
]