1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Enable all features for egui_kittest docs (#5711)

- Enable all-features when generating docs
- Add x11 feature so it builds on Linux
- Add double hashes to the feature comments so document-features
includes them in the docs

* Closes <https://github.com/emilk/egui/issues/5709>
* [x] I have followed the instructions in the PR template

(cherry picked from commit 982b2580f4)
This commit is contained in:
YgorSouza
2025-02-12 14:20:15 +01:00
committed by Lucas Meurer
parent 45df656d0e
commit 97cb07ac88

View File

@@ -18,8 +18,12 @@ include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]
[features] [features]
# Adds a wgpu-based test renderer. ## Adds a wgpu-based test renderer.
wgpu = [ wgpu = [
"dep:egui-wgpu", "dep:egui-wgpu",
"dep:pollster", "dep:pollster",
@@ -28,12 +32,15 @@ wgpu = [
"eframe?/wgpu", "eframe?/wgpu",
] ]
# Adds a dify-based image snapshot utility. ## Adds a dify-based image snapshot utility.
snapshot = ["dep:dify", "dep:image", "image/png"] snapshot = ["dep:dify", "dep:image", "image/png"]
# Allows testing eframe::App ## Allows testing eframe::App
eframe = ["dep:eframe", "eframe/accesskit"] eframe = ["dep:eframe", "eframe/accesskit"]
# This is just so it compiles with `--all-features` on Linux
x11 = ["eframe?/x11"]
[dependencies] [dependencies]
kittest.workspace = true kittest.workspace = true
@@ -50,7 +57,7 @@ wgpu = { workspace = true, features = ["metal", "dx12"], optional = true }
# snapshot dependencies # snapshot dependencies
dify = { workspace = true, optional = true } dify = { workspace = true, optional = true }
## Enable this when generating docs. # Enable this when generating docs.
document-features = { workspace = true, optional = true } document-features = { workspace = true, optional = true }
[dev-dependencies] [dev-dependencies]