# 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.3.0"
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"]

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

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

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

[[bench]]
name = "atlas"
path = "benches/atlas.rs"
harness = false
required-features = ["atlas"]

[[bench]]
name = "glyph"
path = "benches/glyph.rs"
harness = false

[dependencies.glam]
version = "0.32"

[dependencies.kurbo]
version = "0.13"

[dependencies.linesweeper]
version = "0.3"

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

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

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

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[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"

[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1
