# 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 = "msdf_font"
version = "0.2.1"
authors = ["Renato Cunha"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Msdf implementation in Rust"
readme = "README.md"
keywords = [
    "msdf",
    "sdf",
    "distance-field",
    "font-atlas",
]
categories = [
    "graphics",
    "gui",
]
license = "MIT or Apache-2.0"
repository = "https://github.com/Cunha-Renato/msdf_font"

[features]
atlas = ["dep:rayon"]
fix_geometry = [
    "dep:kurbo",
    "dep:linesweeper",
]

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

[[example]]
name = "simple"
path = "examples/simple.rs"

[[example]]
name = "wgpu"
path = "examples/wgpu.rs"

[dependencies.glam]
version = "0.32"

[dependencies.kurbo]
version = "0.13"
optional = true

[dependencies.linesweeper]
version = "0.3"
optional = true

[dependencies.rayon]
version = "1.0"
optional = true

[dependencies.ttf-parser]
version = "0.25"

[dev-dependencies.bytemuck]
version = "1.0"
features = ["derive"]

[dev-dependencies.glam]
version = "0.32"

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

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

[dev-dependencies.wgpu]
version = "28.0"

[dev-dependencies.winit]
version = "0.30"

[lints.clippy]
complexity = "deny"
perf = "deny"
unwrap_used = "deny"
