2021-01-10 14:42:46 +00:00
[ package ]
name = "epaint"
2021-10-24 14:08:44 +00:00
version = "0.15.0"
2021-01-10 14:42:46 +00:00
authors = [ "Emil Ernerfeldt <emil.ernerfeldt@gmail.com>" ]
description = "Minimal 2D graphics library for GUI work"
edition = "2018"
2021-09-03 19:12:44 +00:00
homepage = "https://github.com/emilk/egui/tree/master/epaint"
2021-01-10 14:42:46 +00:00
license = "MIT OR Apache-2.0"
readme = "README.md"
2021-09-03 19:12:44 +00:00
repository = "https://github.com/emilk/egui/tree/master/epaint"
2021-01-17 14:16:00 +00:00
categories = [ "graphics" , "gui" ]
keywords = [ "graphics" , "gui" , "egui" ]
2021-01-10 14:42:46 +00:00
include = [
2021-03-09 17:34:14 +00:00
"../LICENSE-APACHE" ,
"../LICENSE-MIT" ,
2021-01-10 14:42:46 +00:00
"**/*.rs" ,
"Cargo.toml" ,
"fonts/*.ttf" ,
2021-03-09 17:34:14 +00:00
"fonts/*.txt" ,
2021-01-10 14:42:46 +00:00
]
2021-09-03 19:04:43 +00:00
[ package . metadata . docs . rs ]
all-features = true
2021-01-10 14:42:46 +00:00
[ lib ]
[ dependencies ]
2021-10-24 14:08:44 +00:00
emath = { version = "0.15.0" , path = "../emath" }
2021-01-10 14:42:46 +00:00
2021-06-24 10:13:57 +00:00
ab_glyph = "0.2.11"
2021-02-07 14:46:35 +00:00
ahash = { version = "0.7" , features = [ "std" ] , default-features = false }
2021-01-10 14:42:46 +00:00
atomic_refcell = { version = "0.1" , optional = true } # Used instead of parking_lot when you are always using epaint in a single thread. About as fast as parking_lot. Panics on multi-threaded use.
2021-10-10 13:35:13 +00:00
bytemuck = { version = "1.7.2" , features = [ "derive" ] , optional = true }
2021-06-23 07:16:39 +00:00
cint = { version = "^0.2.2" , optional = true }
2021-09-04 08:19:58 +00:00
nohash-hasher = "0.2"
2021-01-10 14:42:46 +00:00
parking_lot = { version = "0.11" , optional = true } # Using parking_lot over std::sync::Mutex gives 50% speedups in some real-world scenarios.
serde = { version = "1" , features = [ "derive" ] , optional = true }
[ features ]
2021-09-28 15:33:28 +00:00
default = [ "default_fonts" , "multi_threaded" ]
2021-01-10 14:42:46 +00:00
2021-10-09 12:15:45 +00:00
# implement bytemuck on most types.
convert_bytemuck = [ "bytemuck" , "emath/bytemuck" ]
2021-01-10 14:42:46 +00:00
# If set, epaint will use `include_bytes!` to bundle some fonts.
# If you plan on specifying your own fonts you may disable this feature.
default_fonts = [ ]
2021-05-17 20:34:29 +00:00
# Enable additional checks if debug assertions are enabled (debug builds).
extra_debug_asserts = [ "emath/extra_debug_asserts" ]
# Always enable additional checks.
extra_asserts = [ "emath/extra_asserts" ]
# Add compatability with https://github.com/kvark/mint
mint = [ "emath/mint" ]
2021-09-29 06:45:13 +00:00
# implement serde on most types.
2021-10-09 12:15:45 +00:00
serialize = [ "serde" , "ahash/serde" , "emath/serde" ]
2021-10-07 20:30:15 +00:00
2021-01-10 14:42:46 +00:00
single_threaded = [ "atomic_refcell" ]
# Only needed if you plan to use the same fonts from multiple threads.
2021-09-28 15:33:28 +00:00
# It comes with a minor performance impact.
2021-01-10 14:42:46 +00:00
multi_threaded = [ "parking_lot" ]