mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Make document-features an opt-in dependency
This commit is contained in:
@@ -53,9 +53,6 @@ mint = ["emath/mint"]
|
||||
serde = ["dep:serde", "ahash/serde", "emath/serde"]
|
||||
|
||||
[dependencies]
|
||||
# Needed when generating the docs, but unfortunately also needed by `cargo check`
|
||||
document-features = "0.2"
|
||||
|
||||
emath = { version = "0.18.0", path = "../emath" }
|
||||
|
||||
ab_glyph = "0.2.11"
|
||||
@@ -71,6 +68,9 @@ cint = { version = "0.3.1", optional = true }
|
||||
## Enable the [`hex_color`] macro.
|
||||
color-hex = { version = "0.2.0", optional = true }
|
||||
|
||||
## Enable this when generating docs.
|
||||
document-features = { version = "0.2", optional = true }
|
||||
|
||||
## Allow serialization using [`serde`](https://docs.rs/serde) .
|
||||
serde = { version = "1", optional = true, features = ["derive", "rc"] }
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
//! that you can then paint using some graphics API of your choice (e.g. OpenGL).
|
||||
//!
|
||||
//! ## 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