mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Hi, I may or may not have used your crate but I'd like to say a quick thank you for it anyway! I'm going down the list of reverse dependencies on `memoffset`. This PR aims to remove the `memoffset` crate from your dependencies. [`core::mem::offset_of`](https://doc.rust-lang.org/core/mem/macro.offset_of.html) was stabilised in rustc 1.77 which I believe is at or below your MSRV. The `memoffset` crate 0.9.1 says that > If you're using a rustc version greater or equal to 1.77, > this crate's offset_of!() macro simply forwards to core::mem::offset_of!(). I consider it very unlikely (see [here](https://github.com/rust-lang/rust/issues/111839)) for any usage of the `offset_of!` macro to break but please check anyway. I hope we can all enjoy the benefits of one less dependency :) --- <!-- 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 *except for `./scripts/check.sh` which doesn't run in my environment* (I'm unwilling to chase it down because I'm firing off a whole bunch of these PRs to various repositories, sorry.) `cargo clippy` gives 1 unrelated warning. Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
76 lines
2.1 KiB
TOML
76 lines
2.1 KiB
TOML
[package]
|
|
name = "egui_glow"
|
|
version.workspace = true
|
|
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
|
|
description = "Bindings for using egui natively using the glow library"
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
homepage = "https://github.com/emilk/egui/tree/main/crates/egui_glow"
|
|
license.workspace = true
|
|
readme = "README.md"
|
|
repository = "https://github.com/emilk/egui/tree/main/crates/egui_glow"
|
|
categories = ["gui", "game-development"]
|
|
keywords = ["glow", "egui", "gui", "gamedev"]
|
|
include = [
|
|
"../../LICENSE-APACHE",
|
|
"../../LICENSE-MIT",
|
|
"**/*.rs",
|
|
"Cargo.toml",
|
|
"src/shader/*.glsl",
|
|
]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--generate-link-to-definition"]
|
|
|
|
[features]
|
|
default = []
|
|
|
|
## For the `winit` integration:
|
|
## enable cut/copy/paste to os clipboard.
|
|
##
|
|
## if disabled a clipboard will be simulated so you can still copy/paste within the egui app.
|
|
clipboard = ["egui-winit?/clipboard"]
|
|
|
|
## For the `winit` integration:
|
|
## enable opening links in a browser when an egui hyperlink is clicked.
|
|
links = ["egui-winit?/links"]
|
|
|
|
## Enable [`winit`](https://docs.rs/winit) integration. On Linux, requires either `wayland` or `x11`
|
|
winit = ["egui-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, features = ["bytemuck"] }
|
|
egui-winit = { workspace = true, optional = true, default-features = false }
|
|
|
|
bytemuck.workspace = true
|
|
glow.workspace = true
|
|
log.workspace = true
|
|
profiling.workspace = true
|
|
|
|
#! ### Optional dependencies
|
|
## Enable this when generating docs.
|
|
document-features = { workspace = true, optional = true }
|
|
|
|
# Native:
|
|
winit = { workspace = true, optional = true, default-features = false, features = ["rwh_06"] }
|
|
|
|
|
|
[dev-dependencies]
|
|
glutin = { workspace = true, default-features = true } # examples/pure_glow
|
|
glutin-winit = { workspace = true, default-features = true }
|
|
|
|
[[example]]
|
|
name = "pure_glow"
|
|
required-features = ["winit", "egui/default_fonts"]
|