mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
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.
31 lines
639 B
TOML
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"
|