This seems to be generally considered the preferred, idiomatic solution now. This is in the standard library behind a feature flag (apparently now called `std::sync::LazyLock`).
26 lines
704 B
TOML
26 lines
704 B
TOML
[package]
|
|
name = "todos"
|
|
version = "0.1.0"
|
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[dependencies]
|
|
iced = { path = "../..", features = ["async-std", "debug"] }
|
|
once_cell = "1.15.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
async-std = "1.0"
|
|
directories-next = "2.0"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
web-sys = { version = "0.3", features = ["Window", "Storage"] }
|
|
wasm-timer = "0.2"
|
|
|
|
[package.metadata.deb]
|
|
assets = [
|
|
["target/release-opt/todos", "usr/bin/iced-todos", "755"],
|
|
["iced-todos.desktop", "usr/share/applications/", "644"],
|
|
]
|