slint/examples/speedometer/rust/Cargo.toml
David Faure 29e289fbdf Move the workspace to rust edition 2024
Motivation: the git pre-commit hook is confused by the mix of 2021 and
2024 in the same workspace...

The only problem this raises is the std::env::set_var("LANGUAGE", lang) in
demos/printerdemo/rust/lib.rs, pre-existing but now explicitly marked as unsafe
because it actually is. Added a TODO there.
2025-12-09 12:11:04 +01:00

31 lines
639 B
TOML

# Copyright © SixtyFPS GmbH <info@slint.dev>
# SPDX-License-Identifier: MIT
[package]
name = "speedometer"
version = "1.15.0"
authors = ["Slint Developers <info@slint.dev>"]
edition.workspace = true
publish = false
license = "MIT"
[[bin]]
path = "main.rs"
name = "speedometer"
[lib]
crate-type = ["lib", "cdylib"]
path = "lib.rs"
name = "speedometer_lib"
[dependencies]
slint = { path = "../../../api/rs/slint" }
chrono = "0.4"
[features]
sw-renderer = []
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2" }
web-sys = { version = "0.3", features = ["console"] }
console_error_panic_hook = "0.1.5"