Declare the 12 makepad crate deps once in root [workspace.dependencies] pointing at the gitdab fork rev 4a166606c (which now also carries [workspace.dependencies] into the android wrapper manifest). Member crates switch to workspace = true; 5 non-member workspaces get an inline rev bump. Fix 9 nigig-app script_mod indent errors surfaced by the newer upstream macro parser. The fork rev includes: NIGIG test-mode forwarding, custom AndroidManifest hook, ortho camera support, and the wrapper workspace-deps fix.
37 lines
1.9 KiB
TOML
37 lines
1.9 KiB
TOML
|
|
[package]
|
|
name = "theming"
|
|
version = "0.3.0"
|
|
edition = "2024"
|
|
license = "MIT"
|
|
description = "Runtime theme swapping demo for Makepad 2.0 — consumes nigig-core for persistence."
|
|
|
|
[dependencies]
|
|
# ── Internal shared library ──────────────────────────────────────────────
|
|
# Provides:
|
|
# - persistence::json::{save_json_to, load_json_from, load_json_from_or_default}
|
|
# - state::{ThemeState, LanguageState} (data + load/save, no Makepad dep)
|
|
# - error::PersistenceError
|
|
#
|
|
# Adjust the path if nigig-core lives elsewhere in your workspace.
|
|
nigig-core = { path = "../../nigig-core" }
|
|
|
|
# ── Makepad 2.0 ──────────────────────────────────────────────────────────
|
|
# Use the same makepad-widgets source as nigig-core so the ScriptVm ABI
|
|
# matches. If nigig-core uses a path dep, match it here. If it uses git,
|
|
# match that.
|
|
# makepad-widgets = { git = "https://github.com/makepad/makepad.git", branch = "dev" }
|
|
makepad-widgets = { git = "https://gitdab.com/andodeki/makepad", rev = "4a166606c08867de216125ae34909bc0a1115251"}
|
|
|
|
# ── Robius integration ───────────────────────────────────────────────────
|
|
# robius-use-makepad sets up the right Makepad feature flags for
|
|
# mobile/desktop. robius-directories resolves the app data dir on
|
|
# platforms where std `directories` doesn't work (Android).
|
|
robius-use-makepad = "0.1.1"
|
|
robius-directories = { git = "https://github.com/project-robius/robius", rev = "b766e62b0600f5d2ee21cc6995648346fc277bd8" }
|
|
# serde is re-exported transitively via nigig-core, but we list it
|
|
# explicitly so the theming app can derive Serialize/Deserialize on its
|
|
# own types if needed.
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
|