2021-01-10 14:42:46 +00:00
[ package ]
name = "epaint"
2022-12-08 14:11:54 +00:00
version = "0.20.0"
2021-01-10 14:42:46 +00:00
authors = [ "Emil Ernerfeldt <emil.ernerfeldt@gmail.com>" ]
description = "Minimal 2D graphics library for GUI work"
2021-12-25 18:32:25 +00:00
edition = "2021"
2022-11-16 18:08:03 +00:00
rust-version = "1.65"
2022-08-20 13:18:02 +00:00
homepage = "https://github.com/emilk/egui/tree/master/crates/epaint"
2022-11-22 12:44:01 +00:00
license = "(MIT OR Apache-2.0) AND OFL-1.1 AND LicenseRef-UFL-1.0" # OFL and UFL used by default_fonts. See https://github.com/emilk/egui/issues/2321
2021-01-10 14:42:46 +00:00
readme = "README.md"
2022-08-20 13:18:02 +00:00
repository = "https://github.com/emilk/egui/tree/master/crates/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" ,
2022-11-22 12:44:01 +00:00
"fonts/OFL.txt" ,
"fonts/UFL.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 ]
[ features ]
2022-03-21 21:20:37 +00:00
default = [ "default_fonts" ]
2021-01-10 14:42:46 +00:00
2022-06-09 13:27:22 +00:00
## [`bytemuck`](https://docs.rs/bytemuck) enables you to cast [`Vertex`] to `&[u8]`.
2022-12-06 19:42:25 +00:00
bytemuck = [ "dep:bytemuck" , "emath/bytemuck" , "ecolor/bytemuck" ]
## [`cint`](https://docs.rs/cint) enables interopability with other color libraries.
cint = [ "ecolor/cint" ]
## Enable the [`hex_color`] macro.
color-hex = [ "ecolor/color-hex" ]
2021-10-09 12:15:45 +00:00
2022-06-09 13:27:22 +00:00
## This will automatically detect deadlocks due to double-locking on the same thread.
## If your app freezes, you may want to enable this!
## Only affects [`mutex::RwLock`] (which epaint and egui uses a lot).
2022-05-21 12:08:19 +00:00
deadlock_detection = [ "dep:backtrace" ]
2022-06-09 13:27:22 +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.
2021-01-10 14:42:46 +00:00
default_fonts = [ ]
2022-06-09 13:27:22 +00:00
## Enable additional checks if debug assertions are enabled (debug builds).
2022-12-06 19:42:25 +00:00
extra_debug_asserts = [
"emath/extra_debug_asserts" ,
"ecolor/extra_debug_asserts" ,
]
2022-06-09 13:27:22 +00:00
## Always enable additional checks.
2022-12-06 19:42:25 +00:00
extra_asserts = [ "emath/extra_asserts" , "ecolor/extra_asserts" ]
2021-05-17 20:34:29 +00:00
2022-06-09 13:27:22 +00:00
## [`mint`](https://docs.rs/mint) enables interopability with other math libraries such as [`glam`](https://docs.rs/glam) and [`nalgebra`](https://docs.rs/nalgebra).
2021-05-17 20:34:29 +00:00
mint = [ "emath/mint" ]
2022-06-09 13:27:22 +00:00
## Allow serialization using [`serde`](https://docs.rs/serde).
2022-12-06 19:42:25 +00:00
serde = [ "dep:serde" , "ahash/serde" , "emath/serde" , "ecolor/serde" ]
2021-10-07 20:30:15 +00:00
2022-02-05 10:11:15 +00:00
[ dependencies ]
2022-12-08 14:11:54 +00:00
emath = { version = "0.20.0" , path = "../emath" }
ecolor = { version = "0.20.0" , path = "../ecolor" }
2022-02-05 10:11:15 +00:00
ab_glyph = "0.2.11"
2022-11-07 08:23:45 +00:00
ahash = { version = "0.8.1" , default-features = false , features = [
"no-rng" , # we don't need DOS-protection, so we let users opt-in to it instead
"std" ,
] }
2022-04-09 11:54:47 +00:00
nohash-hasher = "0.2"
2022-06-09 13:27:22 +00:00
#! ### Optional dependencies
2022-03-10 13:25:33 +00:00
bytemuck = { version = "1.7.2" , optional = true , features = [ "derive" ] }
2022-06-09 13:27:22 +00:00
2022-06-09 15:41:37 +00:00
## Enable this when generating docs.
document-features = { version = "0.2" , optional = true }
2022-06-09 13:27:22 +00:00
## Allow serialization using [`serde`](https://docs.rs/serde) .
2022-03-10 13:25:33 +00:00
serde = { version = "1" , optional = true , features = [ "derive" , "rc" ] }
2022-02-05 10:11:15 +00:00
2022-03-22 14:34:21 +00:00
# native:
[ target . 'cfg(not(target_arch = "wasm32"))' . dependencies ]
2022-05-21 12:08:19 +00:00
backtrace = { version = "0.3" , optional = true }
2022-11-07 08:23:45 +00:00
parking_lot = "0.12" # Using parking_lot over std::sync::Mutex gives 50% speedups in some real-world scenarios.
2022-03-22 14:34:21 +00:00
# web:
[ target . 'cfg(target_arch = "wasm32")' . dependencies ]
atomic_refcell = "0.1" # Used instead of parking_lot on on wasm. See https://github.com/emilk/egui/issues/1401
2022-01-06 09:44:53 +00:00
[ dev-dependencies ]
2022-10-02 18:33:45 +00:00
criterion = { version = "0.4" , default-features = false }
2022-01-06 09:44:53 +00:00
2022-02-05 10:11:15 +00:00
2022-01-06 09:44:53 +00:00
[ [ bench ] ]
name = "benchmark"
harness = false