mirror of
https://github.com/cloud-shuttle/leptos-shadcn-ui.git
synced 2025-12-22 22:00:00 +00:00
50 lines
1.5 KiB
TOML
50 lines
1.5 KiB
TOML
[package]
|
|
name = "shadcn-ui-leptos-book"
|
|
description = "Book examples for shadcn/ui Leptos."
|
|
publish = false
|
|
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
version.workspace = true
|
|
|
|
# Production build profiles with aggressive optimization
|
|
[profile.release]
|
|
opt-level = 3
|
|
codegen-units = 1
|
|
strip = true
|
|
incremental = false
|
|
lto = true
|
|
|
|
[profile.release.package."*"]
|
|
opt-level = 3
|
|
codegen-units = 1
|
|
strip = true
|
|
|
|
# Minimal feature set for essential components only
|
|
[features]
|
|
default = ["essential"]
|
|
essential = ["button", "input", "label", "card", "separator"]
|
|
|
|
# Individual component features
|
|
button = ["dep:shadcn-ui-leptos-button"]
|
|
input = ["dep:shadcn-ui-leptos-input"]
|
|
label = ["dep:shadcn-ui-leptos-label"]
|
|
card = ["dep:shadcn-ui-leptos-card"]
|
|
separator = ["dep:shadcn-ui-leptos-separator"]
|
|
|
|
[dependencies]
|
|
console_error_panic_hook.workspace = true
|
|
console_log.workspace = true
|
|
leptos = { workspace = true, features = ["csr"] }
|
|
leptos_router.workspace = true
|
|
log.workspace = true
|
|
|
|
# Only include essential components
|
|
shadcn-ui-leptos-button = { path = "../../packages/leptos/button", optional = true }
|
|
shadcn-ui-leptos-input = { path = "../../packages/leptos/input", optional = true }
|
|
shadcn-ui-leptos-label = { path = "../../packages/leptos/label", optional = true }
|
|
shadcn-ui-leptos-card = { path = "../../packages/leptos/card", optional = true }
|
|
shadcn-ui-leptos-separator = { path = "../../packages/leptos/separator", optional = true }
|