feat: add fullstack storage and real-time sync
This commit is contained in:
19
Cargo.toml
19
Cargo.toml
@@ -1,22 +1,27 @@
|
||||
[package]
|
||||
name = "mflow"
|
||||
version = "0.1.0"
|
||||
authors = ["malxte"]
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
dioxus = { version = "0.7.1", features = [] }
|
||||
# Version an CLI anpassen (0.6 ist stabil für Fullstack)
|
||||
dioxus = { version = "0.7.1", features = ["fullstack"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
getrandom = { version = "0.3", features = ["wasm_js"] }
|
||||
once_cell = "1.19"
|
||||
# Wichtig: "time" und "sync" Features hinzufügen
|
||||
tokio = { version = "1", features = ["sync", "time", "rt"] }
|
||||
gloo-timers = { version = "0.3", features = ["futures"] }
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
gloo-storage = "0.3"
|
||||
getrandom = { version = "0.2", features = ["js"] }
|
||||
|
||||
[features]
|
||||
default = ["desktop"]
|
||||
web = ["dioxus/web"]
|
||||
desktop = ["dioxus/desktop"]
|
||||
web = ["dioxus/web"]
|
||||
mobile = ["dioxus/mobile"]
|
||||
server = ["dioxus/server"]
|
||||
|
||||
Reference in New Issue
Block a user