mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Make document-features an opt-in dependency
This commit is contained in:
@@ -33,9 +33,6 @@ winit = ["dep:pollster", "dep:winit"]
|
||||
|
||||
|
||||
[dependencies]
|
||||
# Needed when generating the docs, but unfortunately also needed by `cargo check`
|
||||
document-features = "0.2"
|
||||
|
||||
egui = { version = "0.18.1", path = "../egui", default-features = false, features = [
|
||||
"bytemuck",
|
||||
] }
|
||||
@@ -46,5 +43,8 @@ type-map = "0.5.0"
|
||||
wgpu = { version = "0.12", features = ["webgl"] }
|
||||
|
||||
#! ### Optional dependencies
|
||||
## Enable this when generating docs.
|
||||
document-features = { version = "0.2", optional = true }
|
||||
|
||||
pollster = { version = "0.2", optional = true }
|
||||
winit = { version = "0.26", optional = true }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! This crates provides bindings between [`egui`](https://github.com/emilk/egui) and [wgpu](https://crates.io/crates/wgpu).
|
||||
//!
|
||||
//! ## Feature flags
|
||||
#![doc = document_features::document_features!()]
|
||||
#![cfg_attr(feature = "document-features", doc = document_features::document_features!())]
|
||||
//!
|
||||
|
||||
#![allow(unsafe_code)]
|
||||
|
||||
Reference in New Issue
Block a user