mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-19 14:01:02 +01:00
Bump craft-ui to craft-libs 1b34eba and add craft-keymap, craft-dialogs, craft-quit, craft-menu (macOS) and craft-window. File dialogs no longer block the event loop. Shortcuts dispatch through craft-keymap and match exactly their modifiers. On macOS, Quit asks about unsaved work and the app quits through the platform. On a Wayland desktop that leaves the frame to the app, the menu bar is the title bar.
48 lines
1.8 KiB
TOML
48 lines
1.8 KiB
TOML
[package]
|
|
name = "materialcraft-ui-egui"
|
|
description = "MaterialCraft's egui shell: docks, graph editor, library, 2D and 3D views, properties"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
materialcraft-engine = { workspace = true }
|
|
materialcraft-render = { workspace = true }
|
|
eframe = { workspace = true, features = ["default_fonts", "wgpu", "persistence"] }
|
|
egui = { workspace = true }
|
|
craft-ui = { workspace = true }
|
|
craft-keymap = { workspace = true, features = ["egui"] }
|
|
egui-phosphor = { version = "0.14", features = ["regular"] }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
log = { workspace = true }
|
|
base64 = "0.22"
|
|
image = { workspace = true }
|
|
zip = { workspace = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
sys-locale = "0.3"
|
|
craft-update = { workspace = true }
|
|
craft-dialogs = { workspace = true }
|
|
craft-quit = { workspace = true, features = ["egui"] }
|
|
craft-window = { workspace = true, features = ["egui"] }
|
|
# Floating panels open as OS windows.
|
|
craft-ui = { workspace = true, features = ["native-windows"] }
|
|
|
|
# Browser file I/O (web_files.rs): async pickers and Blob downloads.
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
rfd = { workspace = true }
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-futures = "0.4"
|
|
js-sys = "0.3"
|
|
web-sys = { version = "0.3", features = ["Window", "Document", "HtmlElement", "HtmlAnchorElement", "Blob", "BlobPropertyBag", "Url", "CssStyleDeclaration", "Navigator"] }
|
|
|
|
# winit needs a window system on Linux, so the crate's own tests build with X11.
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
eframe = { workspace = true, features = ["x11"] }
|
|
# Offscreen renders of the real UI (tests/snapshot.rs).
|
|
egui_kittest = { workspace = true, features = ["wgpu", "snapshot", "eframe"] }
|