mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 00:11:14 +01:00
43 lines
1.0 KiB
TOML
43 lines
1.0 KiB
TOML
[package]
|
|
name = "harfbuzz_rust"
|
|
edition = "2021"
|
|
rust-version = "1.87.0"
|
|
|
|
[dependencies]
|
|
harfrust = { version = "0.14.0", optional = true }
|
|
# harfrust = { git = "https://github.com/harfbuzz/harfrust", optional = true }
|
|
read-fonts = { version = "0.45.*", optional = true }
|
|
skrifa = { version = "0.48.*", optional = true, default-features = false, features = ["std"] }
|
|
smallvec = { version = "1.*", optional = true }
|
|
|
|
[lib]
|
|
name = "harfbuzz_rust"
|
|
path = "lib.rs"
|
|
crate-type = ["staticlib"]
|
|
|
|
[features]
|
|
default = ["paint", "draw", "hb-allocator"]
|
|
# Core font functions require only read-fonts.
|
|
font = ["read-fonts"]
|
|
shape = ["dep:harfrust", "dep:smallvec"]
|
|
read-fonts = ["dep:read-fonts"]
|
|
# Skrifa also provides bitmap and COLR extents without drawing or painting.
|
|
skrifa = ["read-fonts", "dep:skrifa"]
|
|
paint = ["skrifa"]
|
|
draw = ["skrifa"]
|
|
hb-allocator = []
|
|
|
|
[profile.release]
|
|
strip = true
|
|
panic = "abort"
|
|
overflow-checks = false
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
|
|
[profile.debugoptimized]
|
|
inherits = "dev"
|
|
panic = "abort"
|
|
overflow-checks = false
|
|
lto = "fat"
|
|
codegen-units = 1
|