[package]
name = "epaint"
version.workspace = true
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
description = "Minimal 2D graphics library for GUI work"
edition.workspace = true
rust-version.workspace = true
homepage = "https://github.com/emilk/egui/tree/master/crates/epaint"
license = "(MIT OR Apache-2.0) AND OFL-1.1 AND LicenseRef-UFL-1.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",
"fonts/OFL.txt",
"fonts/UFL.txt",
]
[package.metadata.docs.rs]
all-features = true
[lib]
[features]
default = ["default_fonts"]
bytemuck = ["dep:bytemuck", "emath/bytemuck", "ecolor/bytemuck"]
cint = ["ecolor/cint"]
color-hex = ["ecolor/color-hex"]
deadlock_detection = ["dep:backtrace"]
default_fonts = []
extra_debug_asserts = [
"emath/extra_debug_asserts",
"ecolor/extra_debug_asserts",
]
extra_asserts = ["emath/extra_asserts", "ecolor/extra_asserts"]
log = ["dep:log"]
mint = ["emath/mint"]
serde = ["dep:serde", "ahash/serde", "emath/serde", "ecolor/serde"]
unity = []
[dependencies]
emath = { version = "0.24.1", path = "../emath" }
ecolor = { version = "0.24.1", path = "../ecolor" }
ab_glyph = "0.2.11"
ahash = { version = "0.8.1", default-features = false, features = [
"no-rng",
"std",
] }
nohash-hasher = "0.2"
parking_lot = "0.12"
bytemuck = { version = "1.7.2", optional = true, features = ["derive"] }
document-features = { version = "0.2", optional = true }
log = { version = "0.4", optional = true, features = ["std"] }
serde = { version = "1", optional = true, features = ["derive", "rc"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
backtrace = { version = "0.3", optional = true }
[dev-dependencies]
criterion = { version = "0.4", default-features = false }
[[bench]]
name = "benchmark"
harness = false