mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
<!--
Please read the "Making a PR" section of
[`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/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 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!
-->
Inspired by:
44d65f41ac/Cargo.toml (L65)
I took the liberty of removing that comment since I *think* that I got
all "relevant" ones (showing up more than once, sort of).
70 lines
1.7 KiB
TOML
70 lines
1.7 KiB
TOML
[package]
|
|
name = "egui-wgpu"
|
|
version.workspace = true
|
|
description = "Bindings for using egui natively using the wgpu library"
|
|
authors = [
|
|
"Nils Hasenbanck <nils@hasenbanck.de>",
|
|
"embotech <opensource@embotech.com>",
|
|
"Emil Ernerfeldt <emil.ernerfeldt@gmail.com>",
|
|
]
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
homepage = "https://github.com/emilk/egui/tree/master/crates/egui-wgpu"
|
|
license.workspace = true
|
|
readme = "README.md"
|
|
repository = "https://github.com/emilk/egui/tree/master/crates/egui-wgpu"
|
|
categories = ["gui", "game-development"]
|
|
keywords = ["wgpu", "egui", "gui", "gamedev"]
|
|
include = [
|
|
"../LICENSE-APACHE",
|
|
"../LICENSE-MIT",
|
|
"**/*.rs",
|
|
"**/*.wgsl",
|
|
"Cargo.toml",
|
|
]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
|
|
[features]
|
|
default = []
|
|
|
|
## Enable profiling with the [`puffin`](https://docs.rs/puffin) crate.
|
|
puffin = ["dep:puffin"]
|
|
|
|
## Enable [`winit`](https://docs.rs/winit) integration. On Linux, requires either `wayland` or `x11`
|
|
winit = ["dep:winit"]
|
|
|
|
## Enables Wayland support for winit.
|
|
wayland = ["winit?/wayland"]
|
|
|
|
## Enables x11 support for winit.
|
|
x11 = ["winit?/x11"]
|
|
|
|
|
|
[dependencies]
|
|
egui = { workspace = true, default-features = false }
|
|
epaint = { workspace = true, default-features = false, features = ["bytemuck"] }
|
|
|
|
bytemuck.workspace = true
|
|
document-features.workspace = true
|
|
log.workspace = true
|
|
thiserror.workspace = true
|
|
type-map = "0.5.0"
|
|
web-time.workspace = true
|
|
wgpu = { workspace = true, features = ["wgsl"] }
|
|
|
|
# Optional dependencies:
|
|
|
|
winit = { workspace = true, optional = true, default-features = false, features = [
|
|
"rwh_06",
|
|
] }
|
|
|
|
# Native:
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
puffin = { workspace = true, optional = true }
|