1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -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

@@ -7,9 +7,21 @@ edition = "2021"
rust-version = "1.56"
publish = false
[package.metadata.docs.rs]
all-features = true
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["persistence"]
http = ["egui_demo_lib/http"]
persistence = ["eframe/persistence", "egui_demo_lib/persistence"]
screen_reader = ["eframe/screen_reader"] # experimental
syntax_highlighting = ["egui_demo_lib/syntax_highlighting"]
[dependencies]
eframe = { version = "0.16.0", path = "../eframe" }
@@ -18,10 +30,3 @@ eframe = { version = "0.16.0", path = "../eframe" }
egui_demo_lib = { version = "0.16.0", path = "../egui_demo_lib", features = ["extra_debug_asserts"] }
tracing-subscriber = "0.3"
[features]
default = ["persistence"]
http = ["egui_demo_lib/http"]
persistence = ["eframe/persistence", "egui_demo_lib/persistence"]
screen_reader = ["eframe/screen_reader"] # experimental
syntax_highlighting = ["egui_demo_lib/syntax_highlighting"]