blob: 0b1423f740bb891c78ccf5b08b83733b8f647fa4 [file] [log] [blame]
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "./vendor"
[build]
target-dir = "../../out/cargo_target"
# Override the harfbuzz and freetype crates' build scripts, and instead link to our existing
# versions of the native libraries.
# See https://doc.rust-lang.org/cargo/reference/build-scripts.html#overriding-build-scripts.
# Keep in sync with //garnet/.cargo/config.
[target.x86_64-fuchsia.harfbuzz]
rustc-link-lib = ["harfbuzz"]
[target.x86_64-unknown-linux-gnu.harfbuzz]
rustc-link-lib = ["harfbuzz"]
[target.x86_64-apple-darwin.harfbuzz]
rustc-link-lib = ["harfbuzz"]
[target.x86_64-fuchsia.freetype]
rustc-link-lib = ["freetype2"]
[target.x86_64-unknown-linux-gnu.freetype]
rustc-link-lib = ["freetype2"]
[target.x86_64-apple-darwin.freetype]
rustc-link-lib = ["freetype2"]