mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-13 09:12:19 +00:00
36 lines
1.1 KiB
TOML
36 lines
1.1 KiB
TOML
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
[package]
|
|
name = "printerdemo"
|
|
version = "1.0.0"
|
|
authors = ["Slint Developers <info@slint-ui.com>"]
|
|
edition = "2021"
|
|
build = "build.rs"
|
|
publish = false
|
|
license = "GPL-3.0-only OR LicenseRef-Slint-commercial"
|
|
|
|
[[bin]]
|
|
path = "main.rs"
|
|
name = "printerdemo"
|
|
|
|
[dependencies]
|
|
slint = { path = "../../../api/rs/slint" }
|
|
|
|
chrono = { version = "0.4", default-features = false, features = ["clock", "std"]}
|
|
|
|
[build-dependencies]
|
|
slint-build = { path = "../../../api/rs/build" }
|
|
|
|
# Remove the `#wasm#` to uncomment the wasm build.
|
|
# This is commented out by default because we don't want to build it as a library by default
|
|
# The CI has a script that does sed "s/#wasm# //" to generate the wasm build.
|
|
|
|
#wasm# [lib]
|
|
#wasm# path = "main.rs"
|
|
#wasm# crate-type = ["cdylib"]
|
|
|
|
#wasm# [target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
#wasm# wasm-bindgen = { version = "0.2" }
|
|
#wasm# web-sys = { version = "0.3", features=["console"] }
|
|
#wasm# console_error_panic_hook = "0.1.5"
|