mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Make document-features an opt-in dependency
This commit is contained in:
@@ -47,9 +47,6 @@ winit = ["egui-winit",]
|
||||
|
||||
|
||||
[dependencies]
|
||||
# Needed when generating the docs, but unfortunately also needed by `cargo check`
|
||||
document-features = "0.2"
|
||||
|
||||
egui = { version = "0.18.0", path = "../egui", default-features = false, features = [
|
||||
"bytemuck",
|
||||
] }
|
||||
@@ -59,6 +56,10 @@ glow = "0.11"
|
||||
memoffset = "0.6"
|
||||
tracing = "0.1"
|
||||
|
||||
#! ### Optional dependencies
|
||||
## Enable this when generating docs.
|
||||
document-features = { version = "0.2", optional = true }
|
||||
|
||||
# Native:
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
egui-winit = { version = "0.18.0", path = "../egui-winit", optional = true, default-features = false }
|
||||
|
||||
Reference in New Issue
Block a user