]> git.proxmox.com Git - cargo.git/commit
Auto merge of #2420 - alexcrichton:different-metadata, r=brson
authorbors <bors@rust-lang.org>
Wed, 9 Mar 2016 21:05:23 +0000 (13:05 -0800)
committerbors <bors@rust-lang.org>
Wed, 9 Mar 2016 21:05:23 +0000 (13:05 -0800)
commit9b9e89309c04d91e2fde7b2fa70f1dcd18c74990
tree73c7ce6ee1af9ea926067a944b5886d8f407900d
parent30df7bba5e573d3656d2ca440d1548c2c3da2e1e
parentbdf18a4fe7b83a8ab91baa78a1d516d64ff826b3
Auto merge of #2420 - alexcrichton:different-metadata, r=brson

Ensure metadata for libs/bins are distinct

It may be the case in the future that the compiler will require that the "salt"
(the `-C metadata` flag) for all crates with the same name are distinct. Right
now a Cargo project with a library and a binary, however, will have the same
salt with the same crate name.

This commit mixes in some extra data to the library's salt to ensure that its
symbols don't clash with the binary's.
src/cargo/util/toml.rs