[package]
edition = "2024"
name = "egui-async"
version = "0.3.2"
authors = ["Cody Wyatt Neiman (xangelix) <neiman@cody.to>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple library for running async tasks in egui and binding their results to your UI."
documentation = "https://docs.rs/egui-async"
readme = "README.md"
keywords = [
"egui",
"async",
"future",
"gui",
"ui",
]
categories = [
"gui",
"asynchronous",
"wasm",
"concurrency",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/xangelix/egui-async"
[features]
default = ["egui"]
egui = ["dep:egui"]
[lib]
name = "egui_async"
path = "src/lib.rs"
[[example]]
name = "advanced"
path = "examples/advanced.rs"
[[example]]
name = "periodic"
path = "examples/periodic.rs"
[[example]]
name = "simple"
path = "examples/simple.rs"
[[test]]
name = "bind_abort"
path = "tests/bind_abort.rs"
[[test]]
name = "bind_coverage"
path = "tests/bind_coverage.rs"
[[test]]
name = "bind_state_api"
path = "tests/bind_state_api.rs"
[[test]]
name = "bind_transitions"
path = "tests/bind_transitions.rs"
[[test]]
name = "egui_integration"
path = "tests/egui_integration.rs"
[[test]]
name = "macro_test"
path = "tests/macro_test.rs"
[dependencies.atomic_float]
version = "1"
[dependencies.bitflags]
version = "2"
[dependencies.egui]
version = "0.33"
optional = true
[dependencies.tracing]
version = "0.1"
[dev-dependencies.eframe]
version = "0.33.3"
[dev-dependencies.rand]
version = "0.9.2"
[dev-dependencies.reqwest]
version = "0.13.1"
features = ["json"]
[dev-dependencies.serde_json]
version = "1.0.148"
[dev-dependencies.walkers]
version = "0.51.0"
[target.'cfg(not(target_family = "wasm"))'.dependencies.tokio]
version = "1"
features = [
"sync",
"rt-multi-thread",
]
default-features = false
[target.'cfg(target_family = "wasm")'.dependencies.tokio]
version = "1"
features = ["sync"]
default-features = false
[target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen-futures]
version = "0.4"
[lints.clippy]
panic = "deny"
todo = "deny"
unwrap_used = "deny"