]> git.lizzy.rs Git - rust.git/blob - src/librustc_cratesio_shim/Cargo.toml
Auto merge of #53830 - davidtwco:issue-53228, r=nikomatsakis
[rust.git] / src / librustc_cratesio_shim / Cargo.toml
1 # This crate exists to allow rustc to link certain crates from crates.io into
2 # the distribution. This doesn't work normally because:
3 #
4 # - Cargo always builds dependencies as rlibs:
5 #   https://github.com/rust-lang/cargo/issues/629
6 # - rustc wants to avoid multiple definitions of the same symbol, so it refuses
7 #   to link multiple dylibs containing the same rlib
8 # - multiple dylibs depend on the same crates.io crates
9 #
10 # This solution works by including all the conflicting rlibs in a single dylib,
11 # which is then linked into all dylibs that depend on these crates.io crates.
12 # The result is that each rlib only appears once, and things work!
13
14 [package]
15 authors = ["The Rust Project Developers"]
16 name = "rustc_cratesio_shim"
17 version = "0.0.0"
18
19 [lib]
20 crate-type = ["dylib"]
21
22 [dependencies]
23 bitflags = "1.0"
24 log = "0.4"
25 unicode-width = "0.1.4"