mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -04:00
egui_extras: always depend on log crate (#3336)
* egui_extras: always depend on `log` crate * syntax_highlighting fix: "serde" is always on * Add "serde" flag to egui when using egui_extras
This commit is contained in:
@@ -27,7 +27,7 @@ all-features = true
|
||||
default = ["dep:mime_guess"]
|
||||
|
||||
## Shorthand for enabling the different types of image loaders (`file`, `http`, `image`, `svg`).
|
||||
all-loaders = ["svg", "image", "http", "file"]
|
||||
all-loaders = ["file", "http", "image", "svg"]
|
||||
|
||||
## Enable [`DatePickerButton`] widget.
|
||||
datepicker = ["chrono"]
|
||||
@@ -35,9 +35,6 @@ datepicker = ["chrono"]
|
||||
## Add support for loading images from `file://` URIs.
|
||||
file = ["dep:mime_guess"]
|
||||
|
||||
## Log warnings using [`log`](https://docs.rs/log) crate.
|
||||
log = ["dep:log", "egui/log"]
|
||||
|
||||
## Add support for loading images via HTTP.
|
||||
http = ["dep:ehttp"]
|
||||
|
||||
@@ -54,8 +51,11 @@ syntect = ["dep:syntect"]
|
||||
|
||||
|
||||
[dependencies]
|
||||
egui = { version = "0.22.0", path = "../egui", default-features = false }
|
||||
egui = { version = "0.22.0", path = "../egui", default-features = false, features = [
|
||||
"serde",
|
||||
] }
|
||||
enum-map = { version = "2", features = ["serde"] }
|
||||
log = { version = "0.4", features = ["std"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
|
||||
#! ### Optional dependencies
|
||||
@@ -79,9 +79,6 @@ document-features = { version = "0.2", optional = true }
|
||||
## ```
|
||||
image = { version = "0.24", optional = true, default-features = false }
|
||||
|
||||
# feature "log"
|
||||
log = { version = "0.4", optional = true, features = ["std"] }
|
||||
|
||||
# file feature
|
||||
mime_guess = { version = "2.0.4", optional = true, default-features = false }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user