[package]
edition = "2024"
rust-version = "1.89.0"
name = "leptos-classes"
version = "0.1.2"
authors = ["Lukas Potthast <privat@lukas-potthast.de>"]
build = false
exclude = [
"/.cargo/**",
"/.github/**",
"/.idea/**",
"/AGENTS.md",
"/CLAUDE.md",
"/Justfile",
"/testing/**",
"/tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Prop-drillable, reactive class container for Leptos."
homepage = "https://github.com/lpotthast/leptos-classes"
documentation = "https://docs.rs/leptos-classes"
readme = "README.md"
keywords = [
"leptos",
"class",
"classes",
"reactive",
"props",
]
categories = [
"web-programming",
"gui",
"wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lpotthast/leptos-classes"
[package.metadata.docs.rs]
targets = [
"x86_64-unknown-linux-gnu",
"wasm32-unknown-unknown",
]
[features]
default = []
nightly = ["leptos/nightly"]
[lib]
name = "leptos_classes"
path = "src/lib.rs"
[dependencies.leptos]
version = "0.8.19"
default-features = false
[dependencies.smallvec]
version = "1"
[dependencies.thiserror]
version = "2"
[dev-dependencies.assertr]
version = "0.6.0"
features = ["std"]
default-features = false
[dev-dependencies.leptos]
version = "0.8.19"
features = [
"csr",
"hydrate",
]
[dev-dependencies.tracing]
version = "0.1.44"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.browser-test]
version = "0.2.1"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.leptos-browser-test]
version = "0.2.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1.52.3"
features = [
"macros",
"rt",
"rt-multi-thread",
"time",
]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tracing-subscriber]
version = "0.3.23"
features = [
"ansi",
"fmt",
"registry",
]
default-features = false
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.doc_markdown]
level = "allow"
priority = 1
[lints.clippy.float_cmp]
level = "allow"
priority = 1
[lints.clippy.missing_errors_doc]
level = "allow"
priority = 1
[lints.clippy.missing_panics_doc]
level = "allow"
priority = 1
[lints.clippy.module_name_repetitions]
level = "allow"
priority = 1
[lints.clippy.must_use_candidate]
level = "allow"
priority = 1
[lints.clippy.needless_pass_by_value]
level = "allow"
priority = 1
[lints.clippy.option_if_let_else]
level = "allow"
priority = 1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.clippy.similar_names]
level = "allow"
priority = 1
[lints.clippy.too_many_lines]
level = "allow"
priority = 1
[lints.clippy.used_underscore_binding]
level = "allow"
priority = 1
[lints.clippy.wildcard_imports]
level = "allow"
priority = 1
[lints.rust]
missing_docs = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(web_sys_unstable_apis)"]