sapling/.cargo/config
Mark Thomas 75980fb243 build: vendor in Rust dependencies
Summary:
Rust dependencies are vendored in by downloading a package containing all Rust
dependencies.

The package can be updated using the new `vendorcrates.py` script.

Test Plan: Build using the vendored packages.

Reviewers: quark, #mercurial

Reviewed By: quark

Differential Revision: https://phabricator.intern.facebook.com/D6689642

Tasks: T24908724

Signature: 6689642:1515548647:8051ec3dadd98873f0312bb67978846ba029b558
2018-01-09 17:48:32 -08:00

19 lines
620 B
Plaintext

# Vendor in Rust crates. "build/hg-vendored-crates" is populated by the
# contents of a vendor package downloaded from Dewey with the hash in
# ".hg-vendored-crates".
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "build/hg-vendored-crates"
# On OS X targets, configure the linker to perform dynamic lookup of undefined
# symbols. This allows the library to be used as a Python extension.
[target.i686-apple-darwin]
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]
[target.x86_64-apple-darwin]
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]