Skip to content

Commit

Permalink
bootstrap: Add a bunch of Cargo.toml files
Browse files Browse the repository at this point in the history
These describe the structure of all our crate dependencies.
  • Loading branch information
alexcrichton committed Feb 11, 2016
1 parent 7cbd245 commit 2581b14
Show file tree
Hide file tree
Showing 41 changed files with 642 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/liballoc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
22 changes: 22 additions & 0 deletions src/liballoc_jemalloc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 = []
13 changes: 13 additions & 0 deletions src/liballoc_system/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions src/libarena/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
14 changes: 14 additions & 0 deletions src/libcollections/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions src/libcore/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 changes: 14 additions & 0 deletions src/libflate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
9 changes: 9 additions & 0 deletions src/libfmt_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
9 changes: 9 additions & 0 deletions src/libgetopts/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
9 changes: 9 additions & 0 deletions src/libgraphviz/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions src/liblog/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 changes: 12 additions & 0 deletions src/librand/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions src/librbml/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 changes: 24 additions & 0 deletions src/librustc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
19 changes: 19 additions & 0 deletions src/librustc_back/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 = []
12 changes: 12 additions & 0 deletions src/librustc_bitflags/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
16 changes: 16 additions & 0 deletions src/librustc_borrowck/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
13 changes: 13 additions & 0 deletions src/librustc_data_structures/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
33 changes: 33 additions & 0 deletions src/librustc_driver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
14 changes: 14 additions & 0 deletions src/librustc_front/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
16 changes: 16 additions & 0 deletions src/librustc_lint/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
17 changes: 17 additions & 0 deletions src/librustc_llvm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
20 changes: 20 additions & 0 deletions src/librustc_metadata/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
18 changes: 18 additions & 0 deletions src/librustc_mir/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
15 changes: 15 additions & 0 deletions src/librustc_passes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
Loading

0 comments on commit 2581b14

Please sign in to comment.