mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Make document-features an opt-in dependency
This commit is contained in:
@@ -55,16 +55,17 @@ persistence = ["serde", "epaint/serde", "ron"]
|
||||
serde = ["dep:serde", "epaint/serde"]
|
||||
|
||||
[dependencies]
|
||||
# Needed when generating the docs, but unfortunately also needed by `cargo check`
|
||||
document-features = "0.2"
|
||||
|
||||
epaint = { version = "0.18.1", path = "../epaint", default-features = false }
|
||||
|
||||
ahash = "0.7"
|
||||
nohash-hasher = "0.2"
|
||||
|
||||
#! ### Optional dependencies
|
||||
## Enable this when generating docs.
|
||||
document-features = { version = "0.2", optional = true }
|
||||
|
||||
ron = { version = "0.7", optional = true }
|
||||
serde = { version = "1", optional = true, features = ["derive", "rc"] }
|
||||
# egui doesn't log much, but when it does, it uses `tracing`
|
||||
|
||||
# egui doesn't log much, but when it does, it uses [`tracing`](https://docs.rs/tracing).
|
||||
tracing = { version = "0.1", optional = true }
|
||||
|
||||
@@ -293,7 +293,7 @@
|
||||
//! ```
|
||||
//!
|
||||
//! ## Feature flags
|
||||
#![doc = document_features::document_features!()]
|
||||
#![cfg_attr(feature = "document-features", doc = document_features::document_features!())]
|
||||
//!
|
||||
|
||||
#![allow(clippy::float_cmp)]
|
||||
|
||||
Reference in New Issue
Block a user