[package]
edition = "2024"
rust-version = "1.88"
name = "material-ui-rs"
version = "0.5.3"
authors = [
"pml68 <contact@pml68.dev>",
"MoeLeak <i@leak.moe>",
]
build = false
exclude = [
"assets/*",
"web/_headers",
"web/font_assets.test.mjs",
"web/fonts/*",
"web/index.html",
"web/subset_cjk_font.py",
"Cargo.toml.orig",
".cargo/config.toml",
".build.yml",
"rustfmt.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Material3 inspired theme for `iced`"
readme = "README.md"
keywords = [
"gui",
"ui",
"graphics",
"interface",
"widgets",
]
categories = ["gui"]
license = "MIT"
repository = "https://github.com/moeleak/material-ui-rs"
resolver = "2"
[features]
__showcase_web = []
animate = ["dep:iced_anim"]
canvas = []
crisp = ["iced_widget/crisp"]
default = [
"svg",
"animate",
"canvas",
]
dialog = ["dep:iced_dialog"]
markdown = ["iced_widget/markdown"]
qr_code = ["iced_widget/qr_code"]
selection = ["dep:iced_selection"]
serde = ["serde/derive"]
svg = ["iced_widget/svg"]
[lib]
name = "material_ui_rs"
path = "src/lib.rs"
[[bin]]
name = "showcase_web"
path = "web/showcase_web.rs"
required-features = ["__showcase_web"]
[[example]]
name = "quickstart"
path = "examples/quickstart/app.rs"
[[example]]
name = "showcase"
path = "examples/showcase/app.rs"
[dependencies.iced]
version = "0.14"
features = [
"wgpu",
"tiny-skia",
"crisp",
"web-colors",
"thread-pool",
]
default-features = false
[dependencies.iced_anim]
version = "0.3"
features = ["derive"]
optional = true
[dependencies.iced_dialog]
version = "0.14"
optional = true
[dependencies.iced_selection]
version = "0.5"
optional = true
[dependencies.iced_widget]
version = "0.14"
features = ["canvas"]
[dependencies.iced_winit]
version = "0.14"
default-features = false
[dependencies.num-traits]
version = "0.2"
[dependencies.serde]
version = "1.0"
optional = true
[target.'cfg(not(target_os = "android"))'.dependencies.iced]
version = "0.14"
features = [
"linux-theme-detection",
"x11",
"wayland",
]
default-features = false
[target.'cfg(not(target_os = "android"))'.dependencies.iced_winit]
version = "0.14"
features = [
"linux-theme-detection",
"x11",
"wayland",
]
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.22"
[lints.clippy]
default_trait_access = "deny"
filter_map_next = "deny"
from_over_into = "deny"
manual_let_else = "deny"
match-wildcard-for-single-variants = "deny"
needless_borrow = "deny"
new_without_default = "deny"
redundant-closure-for-method-calls = "deny"
semicolon_if_nothing_returned = "deny"
trivially-copy-pass-by-ref = "deny"
type-complexity = "allow"
unused_async = "deny"
useless_conversion = "deny"
[lints.rust]
missing_debug_implementations = "deny"
unsafe_code = "deny"
unused_results = "deny"
[lints.rustdoc]
broken_intra_doc_links = "forbid"
[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true