1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Add opt-in puffin feature to egui (#3298)

* Add opt-in `puffin` feature to egui

* fix web build

* Fix web for realz
This commit is contained in:
Emil Ernerfeldt
2023-09-04 15:01:22 +02:00
committed by GitHub
parent 72adf3bde3
commit 9e86bb8d6a
11 changed files with 74 additions and 13 deletions

View File

@@ -54,6 +54,11 @@ mint = ["epaint/mint"]
## Enable persistence of memory (window positions etc).
persistence = ["serde", "epaint/serde", "ron"]
## Enable profiling with the [`puffin`](https://docs.rs/puffin) crate.
##
## Only enabled on native, because of the low resolution (1ms) of clocks in browsers.
puffin = ["dep:puffin"]
## Allow serialization using [`serde`](https://docs.rs/serde).
serde = ["dep:serde", "epaint/serde", "accesskit?/serde"]
@@ -79,5 +84,6 @@ accesskit = { version = "0.11", optional = true }
document-features = { version = "0.2", optional = true }
log = { version = "0.4", optional = true, features = ["std"] }
puffin = { version = "0.16", optional = true }
ron = { version = "0.8", optional = true }
serde = { version = "1", optional = true, features = ["derive", "rc"] }