[package]
name = "klyff_msdf"
version = "0.1.2"
edition = "2024"
description = "MSDF generation library with optional GPU acceleration."
license = "MIT"
repository = "https://codeberg.org/SnailBionicLab/klyff"
documentation = "https://docs.rs/klyff_msdf"
keywords = ["text", "gamedev", "rendering", "msdf", "wgpu"]
categories = ["rendering", "graphics"]
exclude = [
    "tests/ref/*", 
    "proptest-regressions"
]

[features]
default = ["skrifa"]
skrifa = ["dep:skrifa"]
wgpu = ["dep:wgpu", "dep:bytemuck"]

[dependencies]
skrifa = { workspace = true, optional = true }
wgpu = { workspace = true, optional = true }
bytemuck = { workspace = true, optional = true }
glam.workspace = true
profiling = { workspace = true }

[dev-dependencies]
proptest.workspace = true
proptest-derive.workspace = true
image.workspace = true
skrifa.workspace = true
criterion = "0.5"
pollster.workspace = true
wgpu = { workspace = true, features = ["dx12", "vulkan", "metal", "gles"] }

[[bench]]
name = "msdf_generation"
harness = false
required-features = ["skrifa", "wgpu"]
