[package]
name = "epaint"
version = "0.19.0"
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
description = "Minimal 2D graphics library for GUI work"
edition = "2021"
rust-version = "1.61"
homepage = "https://github.com/emilk/egui/tree/master/crates/epaint"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/emilk/egui/tree/master/crates/epaint"
categories = ["graphics", "gui"]
keywords = ["graphics", "gui", "egui"]
include = [
"../LICENSE-APACHE",
"../LICENSE-MIT",
"**/*.rs",
"Cargo.toml",
"fonts/*.ttf",
"fonts/*.txt",
]
[package.metadata.docs.rs]
all-features = true
[lib]
[features]
default = ["default_fonts"]
bytemuck = ["dep:bytemuck", "emath/bytemuck"]
deadlock_detection = ["dep:backtrace"]
default_fonts = []
extra_debug_asserts = ["emath/extra_debug_asserts"]
extra_asserts = ["emath/extra_asserts"]
mint = ["emath/mint"]
serde = ["dep:serde", "ahash/serde", "emath/serde"]
[dependencies]
emath = { version = "0.19.0", path = "../emath" }
ab_glyph = "0.2.11"
ahash = "0.8"
nohash-hasher = "0.2"
bytemuck = { version = "1.7.2", optional = true, features = ["derive"] }
cint = { version = "0.3.1", optional = true }
color-hex = { version = "0.2.0", optional = true }
document-features = { version = "0.2", optional = true }
serde = { version = "1", optional = true, features = ["derive", "rc"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
backtrace = { version = "0.3", optional = true }
parking_lot = "0.12"
[target.'cfg(target_arch = "wasm32")'.dependencies]
atomic_refcell = "0.1"
[dev-dependencies]
criterion = { version = "0.3", default-features = false }
[[bench]]
name = "benchmark"
harness = false