1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

[eframe] Make persistence, http and time optional features

Saves on compile times.
This commit is contained in:
Emil Ernerfeldt
2021-01-04 01:44:02 +01:00
parent 00269f96c0
commit 69d31a5e47
30 changed files with 412 additions and 303 deletions

View File

@@ -13,17 +13,32 @@ keywords = ["glium", "egui", "gui", "gamedev"]
include = [ "**/*.rs", "Cargo.toml"]
[dependencies]
chrono = { version = "0.4" }
clipboard = "0.5"
directories-next = "2"
egui = { version = "0.6.0", path = "../egui", features = ["serde"] }
epi = { version = "0.6.0", path = "../epi", features = ["serde", "serde_json"] }
egui = { version = "0.6.0", path = "../egui" }
epi = { version = "0.6.0", path = "../epi" }
glium = "0.29"
serde = "1"
serde_json = "1"
ureq = { version = "1.5", optional = true }
webbrowser = "0.5"
# feature "http":
ureq = { version = "1.5", optional = true }
# feature "persistence":
directories-next = { version = "2", optional = true }
serde = { version = "1", optional = true }
serde_json = { version = "1", optional = true }
# feature "time"
chrono = { version = "0.4", optional = true }
[features]
default = []
http = ["ureq"]
persistence = [
"directories-next",
"egui/serde",
"epi/serde_json",
"epi/serde",
"serde_json",
"serde",
]
time = ["chrono"] # for seconds_since_midnight