[package] name = "egui_router" version = "0.2.0" edition = "2021" authors = ["Lucas Meurer"] description = "A SPA router for egui" keywords = ["egui", "router", "single-page", "gui", "ui"] repository = "https://github.com/lucasmerlin/hello_egui/tree/main/crates/egui_router" homepage = "https://lucasmerlin.github.io/hello_egui/" license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] async = ["egui_suspense/async"] [[example]] name = "async_router" required-features = ["async"] [[example]] name = "router" required-features = ["async"] [dependencies] egui.workspace = true egui_inbox.workspace = true egui_suspense = { workspace = true, optional = true } matchit = "0.8" thiserror = "1" form_urlencoded = "1" [target.'cfg(target_arch = "wasm32")'.dependencies] web-sys = { version = "0.3", features = [ "History", "PopStateEvent", "HtmlCollection", ] } js-sys = "0.3" wasm-bindgen = "0.2" [dev-dependencies] egui_inbox = { workspace = true, features = ["type_inbox"] } eframe = { workspace = true, default-features = true } egui_animation = { workspace = true } tokio = { workspace = true, features = ["full"] } egui_suspense = { workspace = true, features = ["async", "tokio"] } [lints] workspace = true