2016-01-21 17:19:23 -06:00
|
|
|
[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" }
|
2017-09-08 14:08:01 -05:00
|
|
|
bitflags = "1.0"
|
2016-01-21 17:19:23 -06:00
|
|
|
fmt_macros = { path = "../libfmt_macros" }
|
|
|
|
graphviz = { path = "../libgraphviz" }
|
2017-06-15 09:08:18 -05:00
|
|
|
jobserver = "0.1"
|
2017-02-15 09:57:59 -06:00
|
|
|
log = "0.3"
|
2017-04-26 16:22:45 -05:00
|
|
|
owning_ref = "0.3.3"
|
2016-01-21 17:19:23 -06:00
|
|
|
rustc_back = { path = "../librustc_back" }
|
2016-03-15 06:33:13 -05:00
|
|
|
rustc_const_math = { path = "../librustc_const_math" }
|
2016-01-21 17:19:23 -06:00
|
|
|
rustc_data_structures = { path = "../librustc_data_structures" }
|
2016-06-21 17:08:13 -05:00
|
|
|
rustc_errors = { path = "../librustc_errors" }
|
2016-01-21 17:19:23 -06:00
|
|
|
serialize = { path = "../libserialize" }
|
|
|
|
syntax = { path = "../libsyntax" }
|
2016-06-27 12:45:33 -05:00
|
|
|
syntax_pos = { path = "../libsyntax_pos" }
|
2017-06-08 16:10:36 -05:00
|
|
|
|
|
|
|
# Note that these dependencies are a lie, they're just here to get linkage to
|
|
|
|
# work.
|
|
|
|
#
|
|
|
|
# We're creating a bunch of dylibs for the compiler but we're also compiling a
|
|
|
|
# bunch of crates.io crates. Everything in the compiler is compiled as an
|
|
|
|
# rlib/dylib pair but all crates.io crates tend to just be rlibs. This means
|
|
|
|
# we've got a problem for dependency graphs that look like:
|
|
|
|
#
|
|
|
|
# foo - rustc_trans
|
|
|
|
# / \
|
|
|
|
# rustc ---- rustc_driver
|
|
|
|
# \ /
|
|
|
|
# foo - rustc_metadata
|
|
|
|
#
|
|
|
|
# Here the crate `foo` is linked into the `rustc_trans` and the
|
|
|
|
# `rustc_metadata` dylibs, meaning we've got duplicate copies! When we then
|
|
|
|
# go to link `rustc_driver` the compiler notices this and gives us a compiler
|
|
|
|
# error.
|
|
|
|
#
|
|
|
|
# To work around this problem we just add these crates.io dependencies to the
|
|
|
|
# `rustc` crate which is a shared dependency above. That way the crate `foo`
|
|
|
|
# shows up in the dylib for the `rustc` crate, deduplicating it and allowing
|
|
|
|
# crates like `rustc_trans` to use `foo` *through* the `rustc` crate.
|
|
|
|
#
|
|
|
|
# tl;dr; this is not needed to get `rustc` to compile, but if you remove it then
|
|
|
|
# later crate stop compiling. If you can remove this and everything
|
|
|
|
# compiles, then please feel free to do so!
|
|
|
|
flate2 = "0.2"
|