harfbuzz-sys 0.5.0

Rust bindings to the HarfBuzz text shaping engine
Documentation
[package]
name = "harfbuzz-sys"
version = "0.5.0"

authors = ["The Servo Project Developers"]
license = "MIT"

description = "Rust bindings to the HarfBuzz text shaping engine"
repository = "https://github.com/servo/rust-harfbuzz"
documentation = "https://docs.rs/harfbuzz-sys/"
keywords = ["opentype", "font", "text", "layout", "unicode"]
categories = ["external-ffi-bindings", "internationalization"]

exclude = [
    "harfbuzz/test/subset/data/fonts/*",
    "harfbuzz/test/fuzzing/fonts/*",
    "harfbuzz/test/shaping/data/text-rendering-tests/fonts/*",
    "harfbuzz/test/shaping/data/aots/fonts/*",
    "harfbuzz/test/shaping/data/in-house/fonts/*",
]

links = "harfbuzz"
build = "build.rs"

[build-dependencies]
pkg-config = { version = "0.3", optional = true }
cc = { version = "1", optional = true }

[target.'cfg(target_vendor = "apple")'.dependencies]
core-graphics = "0.22"
core-text = "19"
foreign-types = "0.3"

[target.'cfg(any(target_os = "android", all(unix, not(target_vendor = "apple"))))'.dependencies]
freetype = { version = "0.7", default-features = false }

[features]
default = ["build-native-harfbuzz", "build-native-freetype"]
build-native-harfbuzz = ["cc", "pkg-config"]
build-native-freetype = ["freetype/freetype-sys"]