# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

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

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

[lib]
name = "klyff_msdf"
path = "src/lib.rs"

[[test]]
name = "compare_to_previous"
path = "tests/compare_to_previous.rs"

[[test]]
name = "gpu_compare_to_previous"
path = "tests/gpu_compare_to_previous.rs"

[[bench]]
name = "msdf_generation"
path = "benches/msdf_generation.rs"
harness = false
required-features = [
    "skrifa",
    "wgpu",
]

[dependencies.bytemuck]
version = "1.25.0"
optional = true

[dependencies.glam]
version = "0.31.0"
features = ["bytemuck"]

[dependencies.profiling]
version = "1.0"
default-features = false

[dependencies.skrifa]
version = "0.40.0"
features = ["std"]
optional = true
default-features = false

[dependencies.wgpu]
version = "27.0.1"
features = [
    "std",
    "wgsl",
]
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.image]
version = "0.25.9"

[dev-dependencies.pollster]
version = "0.3"

[dev-dependencies.proptest]
version = "1.10.0"

[dev-dependencies.proptest-derive]
version = "0.8.0"

[dev-dependencies.skrifa]
version = "0.40.0"
features = ["std"]
default-features = false

[dev-dependencies.wgpu]
version = "27.0.1"
features = [
    "std",
    "wgsl",
    "dx12",
    "vulkan",
    "metal",
    "gles",
]
default-features = false
