1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Clean up all Cargo.toml: put features higher, and document them better

This commit is contained in:
Emil Ernerfeldt
2022-02-05 11:11:15 +01:00
parent 32a9b4abcc
commit 0fa4bb9c64
11 changed files with 181 additions and 147 deletions

View File

@@ -23,17 +23,6 @@ all-features = true
[lib]
[dependencies]
epaint = { version = "0.16.0", path = "../epaint", default-features = false }
ahash = "0.7"
nohash-hasher = "0.2"
# Optional:
ron = { version = "0.7", optional = true }
serde = { version = "1", features = ["derive", "rc"], optional = true }
# egui doesn't log much, but when it does, it uses `tracing`
tracing = { version = "0.1", optional = true }
[features]
default = ["default_fonts", "single_threaded"]
@@ -66,3 +55,16 @@ serialize = ["serde", "epaint/serialize"]
# from multiple threads. It comes with a minor performance impact.
single_threaded = ["epaint/single_threaded"]
multi_threaded = ["epaint/multi_threaded"]
[dependencies]
epaint = { version = "0.16.0", path = "../epaint", default-features = false }
ahash = "0.7"
nohash-hasher = "0.2"
# Optional:
ron = { version = "0.7", optional = true }
serde = { version = "1", features = ["derive", "rc"], optional = true }
# egui doesn't log much, but when it does, it uses `tracing`
tracing = { version = "0.1", optional = true }