mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Document feature flags using crate document-features (#1725)
This commit is contained in:
@@ -28,11 +28,14 @@ all-features = true
|
||||
|
||||
|
||||
[features]
|
||||
# Make it easy to create bindings for winit.
|
||||
## Enable [`winit`](https://docs.rs/winit) integration.
|
||||
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",
|
||||
] }
|
||||
@@ -42,6 +45,6 @@ tracing = "0.1"
|
||||
type-map = "0.5.0"
|
||||
wgpu = { version = "0.12", features = ["webgl"] }
|
||||
|
||||
# Optional:
|
||||
#! ### Optional dependencies
|
||||
pollster = { version = "0.2", optional = true }
|
||||
winit = { version = "0.26", optional = true }
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
//! 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!()]
|
||||
//!
|
||||
|
||||
#![allow(unsafe_code)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user