mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
<!-- Please read the "Making a PR" section of [`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/main/CONTRIBUTING.md) before opening a Pull Request! * Keep your PR:s small and focused. * The PR title is what ends up in the changelog, so make it descriptive! * If applicable, add a screenshot or gif. * If it is a non-trivial addition, consider adding a demo for it to `egui_demo_lib`, or a new example. * Do NOT open PR:s from your `master` branch, as that makes it hard for maintainers to test and add commits to your PR. * Remember to run `cargo fmt` and `cargo clippy`. * Open the PR as a draft until you have self-reviewed it and run `./scripts/check.sh`. * When you have addressed a PR comment, mark it as resolved. Please be patient! I will review your PR, but my time is limited! --> * [x] I have followed the instructions in the PR template A number of separate commits to possibly easily revert some of them. General idea: selectively update dependencies to remove transitive dependencies and multiple versions etc. As well as updating "major" (the one that `cargo update` doesn't update) version for some in Cargo.toml. Rendering pipelines in `vello_cpu` wasn't obvious. Now both are used.
68 lines
2.3 KiB
TOML
68 lines
2.3 KiB
TOML
[package]
|
|
name = "egui_kittest"
|
|
version.workspace = true
|
|
authors = ["Lucas Meurer <hi@lucasmerlin.me>", "Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
|
|
description = "Testing library for egui based on kittest and AccessKit"
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
homepage = "https://github.com/emilk/egui"
|
|
license.workspace = true
|
|
readme = "./README.md"
|
|
repository = "https://github.com/emilk/egui"
|
|
categories = ["gui", "development-tools::testing", "accessibility"]
|
|
keywords = ["gui", "immediate", "egui", "testing", "accesskit"]
|
|
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
|
|
|
|
# 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]
|
|
## Adds a wgpu-based test renderer.
|
|
wgpu = ["dep:egui-wgpu", "dep:pollster", "dep:image", "dep:wgpu", "eframe?/wgpu"]
|
|
|
|
## Adds a dify-based image snapshot utility.
|
|
snapshot = ["dep:dify", "dep:image", "dep:open", "dep:tempfile", "image/png"]
|
|
|
|
## Allows testing eframe::App
|
|
eframe = ["dep:eframe", "eframe/accesskit"]
|
|
|
|
# This is just so it compiles with `--all-features` on Linux
|
|
x11 = ["eframe?/x11"]
|
|
|
|
|
|
[dependencies]
|
|
egui.workspace = true
|
|
eframe = { workspace = true, optional = true }
|
|
kittest.workspace = true
|
|
serde.workspace = true
|
|
toml = {workspace = true, features = ["parse", "serde"] }
|
|
|
|
# wgpu dependencies
|
|
egui-wgpu = { workspace = true, optional = true }
|
|
pollster = { workspace = true, optional = true }
|
|
image = { workspace = true, optional = true }
|
|
# Enable DX12 because it always comes with a software rasterizer.
|
|
wgpu = { workspace = true, features = ["metal", "dx12", "vulkan", "gles"], optional = true }
|
|
|
|
# snapshot dependencies
|
|
dify = { workspace = true, optional = true }
|
|
|
|
# Enable this when generating docs.
|
|
document-features = { workspace = true, optional = true }
|
|
|
|
# Native dependencies:
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
open = { workspace = true, optional = true }
|
|
tempfile = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
egui = { workspace = true, features = ["default_fonts"] }
|
|
image = { workspace = true, features = ["png"] }
|
|
egui_extras = { workspace = true, features = ["image", "http"] }
|
|
|
|
[lints]
|
|
workspace = true
|