mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
* CI: Fix working directory for material components specific jobs * material: use docsnapper from within the repo * material: unify cargo workspaces * material: Fix formatting of rust code * material: Remove duplicated taplo and cargo config This comes from the root of the git repo. * material: Fix warnings about use of layout reserved padding properties These were used as API, but in the absence of being able to override pre-declared properties, these are now renamed with a prefix - they're internal API AFAICS. * material: use the same pnpm version as in the rest of the repo * material: Fix working directory for screenshot generation * material: fix artifact download step for the apk and the wasm gallery Upload and download need to use the same action versions. * Material: Fix path the apk * Material: run wrangler from the material directory --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
47 lines
1.3 KiB
TOML
47 lines
1.3 KiB
TOML
# Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
[package]
|
|
name = "material-gallery"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
publish = false
|
|
license.workspace = true
|
|
|
|
[lib]
|
|
crate-type = ["lib", "cdylib"]
|
|
path = "src/lib.rs"
|
|
name = "gallery_lib"
|
|
|
|
[[bin]]
|
|
path = "src/main.rs"
|
|
name = "material_gallery"
|
|
|
|
[dependencies]
|
|
slint = { path = "../../../../api/rs/slint", features = ["backend-android-activity-06"] }
|
|
# chrono is used to display data on the DatePicker
|
|
chrono = { version = "0.4", default-features = false, features = ["std", "alloc"] }
|
|
serde = { version = "1.0.163", default-features = false, features = ["derive"] }
|
|
serde_json = { version = "1.0" }
|
|
css-color-parser2 = "1.0.1"
|
|
|
|
[target.'cfg(target_family = "wasm")'.dependencies]
|
|
wasm-bindgen = { version = "0.2" }
|
|
console_error_panic_hook = "0.1.5"
|
|
|
|
[target.'cfg(not(target_family = "wasm"))'.dependencies]
|
|
slint = { path = "../../../../api/rs/slint", features = ["renderer-skia"] }
|
|
|
|
[build-dependencies]
|
|
slint-build = { path = "../../../../api/rs/build" }
|
|
|
|
[package.metadata.android]
|
|
package = "com.slint.material"
|
|
apk_name = "slint_material"
|
|
|
|
[package.metadata.android.application]
|
|
label = "Slint Material"
|
|
|
|
[package.metadata.packager]
|
|
before-packaging-command = "cargo build --release"
|