]> git.lizzy.rs Git - rust.git/blob - src/librustc_cratesio_shim/Cargo.toml
Rollup merge of #61389 - Zoxc:arena-cleanup, r=eddyb
[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 edition = "2018"
19
20 [lib]
21 crate-type = ["dylib"]
22
23 [dependencies]
24 bitflags = "1.0"
25 log = "0.4"
26 unicode-width = "0.1.4"