[package]
edition = "2024"
name = "egelm"
version = "0.3.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple message-driven framework for building GUI applications in Rust using egui."
readme = "README.md"
license = "MIT"
repository = "https://codeberg.org/Land/egelm"
[package.metadata.release]
pre-release-hook = [
"git",
"cliff",
"-o",
"CHANGELOG.md",
"--tag",
"{{version}}",
]
[[package.metadata.release.pre-release-replacements]]
file = "README.md"
search = "egelm = .*"
replace = '{{crate_name}} = "{{version}}"'
[features]
android = [
"egui-winit/android-native-activity",
"wgpu",
]
ctrlc = ["dep:ctrlc"]
default = [
"ctrlc",
"emoji",
]
emoji = ["dep:emojis"]
glow = [
"dep:egui_glow",
"dep:glutin",
"dep:glutin-winit",
]
wayland = [
"egui_glow?/wayland",
"egui-wgpu?/wayland",
"egui-winit/wayland",
"glutin?/wayland",
"glutin-winit?/wayland",
"glutin?/egl",
"glutin-winit?/egl",
]
wgpu = [
"dep:egui-wgpu",
"dep:pollster",
]
windows = [
"glutin?/wgl",
"glutin-winit?/wgl",
]
x11 = [
"egui-winit/x11",
"glutin-winit?/x11",
"glutin?/x11",
"glutin?/glx",
"glutin-winit?/glx",
]
[lib]
name = "egelm"
path = "src/lib.rs"
[[example]]
name = "about_dialog"
path = "examples/about_dialog.rs"
[[example]]
name = "async_task"
path = "examples/async_task.rs"
[[example]]
name = "error_dialog"
path = "examples/error_dialog.rs"
[[example]]
name = "hiding"
path = "examples/hiding.rs"
[[example]]
name = "leaf_widget"
path = "examples/leaf_widget.rs"
[[example]]
name = "multiple_children"
path = "examples/multiple_children.rs"
[[example]]
name = "simple"
path = "examples/simple.rs"
[dependencies.crossbeam-channel]
version = "0.5.16"
[dependencies.egelm-macros]
version = "=0.3.2"
[dependencies.egui]
version = "0.35.0"
[dependencies.egui-wgpu]
version = "0.35.0"
features = ["winit"]
optional = true
[dependencies.egui-winit]
version = "0.35.0"
features = [
"clipboard",
"links",
]
default-features = false
[dependencies.emojis]
version = "0.9.0"
optional = true
[dependencies.pollster]
version = "0.4.0"
optional = true
[dependencies.thiserror]
version = "2.0.19"
[dependencies.tokio]
version = "1.53.1"
features = ["rt"]
[dependencies.tracing]
version = "0.1.44"
[dev-dependencies.tokio]
version = "1.53.1"
features = [
"rt",
"macros",
"rt-multi-thread",
"time",
]
[target.'cfg(not(target_os = "android"))'.dependencies.ctrlc]
version = "3.5.2"
optional = true
[target.'cfg(not(target_os = "android"))'.dependencies.egui_glow]
version = "0.35.0"
features = ["winit"]
optional = true
[target.'cfg(not(target_os = "android"))'.dependencies.glutin]
version = "0.32.3"
optional = true
default-features = false
[target.'cfg(not(target_os = "android"))'.dependencies.glutin-winit]
version = "0.5.0"
optional = true
default-features = false
[lints.clippy]
tabs_in_doc_comments = "allow"
[lints.rust]
missing_docs = "warn"