about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-01-21 15:19:23 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-02-11 11:12:32 -0800
commit2581b141473f8333728c8dc330a31dc2373dc0e6 (patch)
tree04e9bfc83fac53e81c9ef5df5c263f302a071303 /src
parent7cbd2457adcd2a47f6e716983bb618541ec25633 (diff)
downloadrust-2581b141473f8333728c8dc330a31dc2373dc0e6.tar.gz
rust-2581b141473f8333728c8dc330a31dc2373dc0e6.zip
bootstrap: Add a bunch of Cargo.toml files
These describe the structure of all our crate dependencies.
Diffstat (limited to 'src')
-rw-r--r--src/liballoc/Cargo.toml14
-rw-r--r--src/liballoc_jemalloc/Cargo.toml22
-rw-r--r--src/liballoc_system/Cargo.toml13
-rw-r--r--src/libarena/Cargo.toml9
-rw-r--r--src/libcollections/Cargo.toml14
-rw-r--r--src/libcore/Cargo.toml9
-rw-r--r--src/libflate/Cargo.toml14
-rw-r--r--src/libfmt_macros/Cargo.toml9
-rw-r--r--src/libgetopts/Cargo.toml9
-rw-r--r--src/libgraphviz/Cargo.toml9
-rw-r--r--src/liblog/Cargo.toml9
-rw-r--r--src/librand/Cargo.toml12
-rw-r--r--src/librbml/Cargo.toml13
-rw-r--r--src/librustc/Cargo.toml24
-rw-r--r--src/librustc_back/Cargo.toml19
-rw-r--r--src/librustc_bitflags/Cargo.toml12
-rw-r--r--src/librustc_borrowck/Cargo.toml16
-rw-r--r--src/librustc_data_structures/Cargo.toml13
-rw-r--r--src/librustc_driver/Cargo.toml33
-rw-r--r--src/librustc_front/Cargo.toml14
-rw-r--r--src/librustc_lint/Cargo.toml16
-rw-r--r--src/librustc_llvm/Cargo.toml17
-rw-r--r--src/librustc_metadata/Cargo.toml20
-rw-r--r--src/librustc_mir/Cargo.toml18
-rw-r--r--src/librustc_passes/Cargo.toml15
-rw-r--r--src/librustc_platform_intrinsics/Cargo.toml13
-rw-r--r--src/librustc_plugin/Cargo.toml17
-rw-r--r--src/librustc_privacy/Cargo.toml15
-rw-r--r--src/librustc_resolve/Cargo.toml16
-rw-r--r--src/librustc_trans/Cargo.toml25
-rw-r--r--src/librustc_typeck/Cargo.toml19
-rw-r--r--src/librustc_unicode/Cargo.toml12
-rw-r--r--src/librustdoc/Cargo.toml30
-rw-r--r--src/libserialize/Cargo.toml12
-rw-r--r--src/libstd/Cargo.toml30
-rw-r--r--src/libsyntax/Cargo.toml16
-rw-r--r--src/libsyntax_ext/Cargo.toml13
-rw-r--r--src/libterm/Cargo.toml12
-rw-r--r--src/libtest/Cargo.toml14
-rw-r--r--src/rustbook/Cargo.toml13
-rw-r--r--src/rustc/Cargo.lock12
41 files changed, 642 insertions, 0 deletions
diff --git a/src/liballoc/Cargo.toml b/src/liballoc/Cargo.toml
new file mode 100644
index 00000000000..5af8d9e8e27
--- /dev/null
+++ b/src/liballoc/Cargo.toml
@@ -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" }
diff --git a/src/liballoc_jemalloc/Cargo.toml b/src/liballoc_jemalloc/Cargo.toml
new file mode 100644
index 00000000000..768a0c2c0a5
--- /dev/null
+++ b/src/liballoc_jemalloc/Cargo.toml
@@ -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 = []
diff --git a/src/liballoc_system/Cargo.toml b/src/liballoc_system/Cargo.toml
new file mode 100644
index 00000000000..88e8e2d7adb
--- /dev/null
+++ b/src/liballoc_system/Cargo.toml
@@ -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" }
diff --git a/src/libarena/Cargo.toml b/src/libarena/Cargo.toml
new file mode 100644
index 00000000000..b53c0a2f48b
--- /dev/null
+++ b/src/libarena/Cargo.toml
@@ -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"]
diff --git a/src/libcollections/Cargo.toml b/src/libcollections/Cargo.toml
new file mode 100644
index 00000000000..18e322ff74f
--- /dev/null
+++ b/src/libcollections/Cargo.toml
@@ -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" }
diff --git a/src/libcore/Cargo.toml b/src/libcore/Cargo.toml
new file mode 100644
index 00000000000..24455a1d841
--- /dev/null
+++ b/src/libcore/Cargo.toml
@@ -0,0 +1,9 @@
+[package]
+authors = ["The Rust Project Developers"]
+name = "core"
+version = "0.0.0"
+
+[lib]
+name = "core"
+path = "lib.rs"
+test = false
diff --git a/src/libflate/Cargo.toml b/src/libflate/Cargo.toml
new file mode 100644
index 00000000000..52aa6bb86ef
--- /dev/null
+++ b/src/libflate/Cargo.toml
@@ -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"
diff --git a/src/libfmt_macros/Cargo.toml b/src/libfmt_macros/Cargo.toml
new file mode 100644
index 00000000000..b3f4d2deae2
--- /dev/null
+++ b/src/libfmt_macros/Cargo.toml
@@ -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"]
diff --git a/src/libgetopts/Cargo.toml b/src/libgetopts/Cargo.toml
new file mode 100644
index 00000000000..99e3b892858
--- /dev/null
+++ b/src/libgetopts/Cargo.toml
@@ -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"]
diff --git a/src/libgraphviz/Cargo.toml b/src/libgraphviz/Cargo.toml
new file mode 100644
index 00000000000..76ef3a1d188
--- /dev/null
+++ b/src/libgraphviz/Cargo.toml
@@ -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"]
diff --git a/src/liblog/Cargo.toml b/src/liblog/Cargo.toml
new file mode 100644
index 00000000000..31a862478d0
--- /dev/null
+++ b/src/liblog/Cargo.toml
@@ -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"]
diff --git a/src/librand/Cargo.toml b/src/librand/Cargo.toml
new file mode 100644
index 00000000000..784654c0859
--- /dev/null
+++ b/src/librand/Cargo.toml
@@ -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" }
diff --git a/src/librbml/Cargo.toml b/src/librbml/Cargo.toml
new file mode 100644
index 00000000000..ab89ac2b7a1
--- /dev/null
+++ b/src/librbml/Cargo.toml
@@ -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" }
diff --git a/src/librustc/Cargo.toml b/src/librustc/Cargo.toml
new file mode 100644
index 00000000000..2aefeb5fc2d
--- /dev/null
+++ b/src/librustc/Cargo.toml
@@ -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" }
diff --git a/src/librustc_back/Cargo.toml b/src/librustc_back/Cargo.toml
new file mode 100644
index 00000000000..255ca60e2b8
--- /dev/null
+++ b/src/librustc_back/Cargo.toml
@@ -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 = []
diff --git a/src/librustc_bitflags/Cargo.toml b/src/librustc_bitflags/Cargo.toml
new file mode 100644
index 00000000000..e82c6ec05c8
--- /dev/null
+++ b/src/librustc_bitflags/Cargo.toml
@@ -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" }
diff --git a/src/librustc_borrowck/Cargo.toml b/src/librustc_borrowck/Cargo.toml
new file mode 100644
index 00000000000..f78f6fb86ae
--- /dev/null
+++ b/src/librustc_borrowck/Cargo.toml
@@ -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" }
diff --git a/src/librustc_data_structures/Cargo.toml b/src/librustc_data_structures/Cargo.toml
new file mode 100644
index 00000000000..e2e16059d98
--- /dev/null
+++ b/src/librustc_data_structures/Cargo.toml
@@ -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" }
diff --git a/src/librustc_driver/Cargo.toml b/src/librustc_driver/Cargo.toml
new file mode 100644
index 00000000000..bf86e8f039a
--- /dev/null
+++ b/src/librustc_driver/Cargo.toml
@@ -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" }
diff --git a/src/librustc_front/Cargo.toml b/src/librustc_front/Cargo.toml
new file mode 100644
index 00000000000..eae0b0646a3
--- /dev/null
+++ b/src/librustc_front/Cargo.toml
@@ -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" }
diff --git a/src/librustc_lint/Cargo.toml b/src/librustc_lint/Cargo.toml
new file mode 100644
index 00000000000..33443957d1b
--- /dev/null
+++ b/src/librustc_lint/Cargo.toml
@@ -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" }
diff --git a/src/librustc_llvm/Cargo.toml b/src/librustc_llvm/Cargo.toml
new file mode 100644
index 00000000000..62e1a71d196
--- /dev/null
+++ b/src/librustc_llvm/Cargo.toml
@@ -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"
diff --git a/src/librustc_metadata/Cargo.toml b/src/librustc_metadata/Cargo.toml
new file mode 100644
index 00000000000..3f8249aabf9
--- /dev/null
+++ b/src/librustc_metadata/Cargo.toml
@@ -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" }
diff --git a/src/librustc_mir/Cargo.toml b/src/librustc_mir/Cargo.toml
new file mode 100644
index 00000000000..93817ab0db6
--- /dev/null
+++ b/src/librustc_mir/Cargo.toml
@@ -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" }
diff --git a/src/librustc_passes/Cargo.toml b/src/librustc_passes/Cargo.toml
new file mode 100644
index 00000000000..7cc6510fa1f
--- /dev/null
+++ b/src/librustc_passes/Cargo.toml
@@ -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" }
diff --git a/src/librustc_platform_intrinsics/Cargo.toml b/src/librustc_platform_intrinsics/Cargo.toml
new file mode 100644
index 00000000000..97bf4f854cc
--- /dev/null
+++ b/src/librustc_platform_intrinsics/Cargo.toml
@@ -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" }
diff --git a/src/librustc_plugin/Cargo.toml b/src/librustc_plugin/Cargo.toml
new file mode 100644
index 00000000000..59cfe158624
--- /dev/null
+++ b/src/librustc_plugin/Cargo.toml
@@ -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" }
diff --git a/src/librustc_privacy/Cargo.toml b/src/librustc_privacy/Cargo.toml
new file mode 100644
index 00000000000..56d6ca5543a
--- /dev/null
+++ b/src/librustc_privacy/Cargo.toml
@@ -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" }
diff --git a/src/librustc_resolve/Cargo.toml b/src/librustc_resolve/Cargo.toml
new file mode 100644
index 00000000000..da01a36d762
--- /dev/null
+++ b/src/librustc_resolve/Cargo.toml
@@ -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" }
diff --git a/src/librustc_trans/Cargo.toml b/src/librustc_trans/Cargo.toml
new file mode 100644
index 00000000000..24320c4d563
--- /dev/null
+++ b/src/librustc_trans/Cargo.toml
@@ -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" }
diff --git a/src/librustc_typeck/Cargo.toml b/src/librustc_typeck/Cargo.toml
new file mode 100644
index 00000000000..fd33e9da1f9
--- /dev/null
+++ b/src/librustc_typeck/Cargo.toml
@@ -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" }
diff --git a/src/librustc_unicode/Cargo.toml b/src/librustc_unicode/Cargo.toml
new file mode 100644
index 00000000000..1f4213f0abe
--- /dev/null
+++ b/src/librustc_unicode/Cargo.toml
@@ -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" }
diff --git a/src/librustdoc/Cargo.toml b/src/librustdoc/Cargo.toml
new file mode 100644
index 00000000000..6b0ad30f450
--- /dev/null
+++ b/src/librustdoc/Cargo.toml
@@ -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"
diff --git a/src/libserialize/Cargo.toml b/src/libserialize/Cargo.toml
new file mode 100644
index 00000000000..919cda49c00
--- /dev/null
+++ b/src/libserialize/Cargo.toml
@@ -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" }
diff --git a/src/libstd/Cargo.toml b/src/libstd/Cargo.toml
new file mode 100644
index 00000000000..390c64d7408
--- /dev/null
+++ b/src/libstd/Cargo.toml
@@ -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"]
diff --git a/src/libsyntax/Cargo.toml b/src/libsyntax/Cargo.toml
new file mode 100644
index 00000000000..3a1d18b85b6
--- /dev/null
+++ b/src/libsyntax/Cargo.toml
@@ -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" }
diff --git a/src/libsyntax_ext/Cargo.toml b/src/libsyntax_ext/Cargo.toml
new file mode 100644
index 00000000000..e137815cd32
--- /dev/null
+++ b/src/libsyntax_ext/Cargo.toml
@@ -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" }
diff --git a/src/libterm/Cargo.toml b/src/libterm/Cargo.toml
new file mode 100644
index 00000000000..cdfc957297d
--- /dev/null
+++ b/src/libterm/Cargo.toml
@@ -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" }
diff --git a/src/libtest/Cargo.toml b/src/libtest/Cargo.toml
new file mode 100644
index 00000000000..96a84496b9c
--- /dev/null
+++ b/src/libtest/Cargo.toml
@@ -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" }
diff --git a/src/rustbook/Cargo.toml b/src/rustbook/Cargo.toml
new file mode 100644
index 00000000000..c684c474efa
--- /dev/null
+++ b/src/rustbook/Cargo.toml
@@ -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" }
diff --git a/src/rustc/Cargo.lock b/src/rustc/Cargo.lock
index db1a87679c2..2a7da33bb68 100644
--- a/src/rustc/Cargo.lock
+++ b/src/rustc/Cargo.lock
@@ -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",
@@ -207,6 +208,16 @@ dependencies = [
 ]
 
 [[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"
 dependencies = [
@@ -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",
 ]