[package]
name = "molt-framework"
version = "1.1.0"
edition = "2024"
rust-version = "1.85"
authors = ["Michel Anderson Lutz Teixeira <michel@micheltlutz.me>"]
description = "Fast, type-safe HTML DSL and static site generation engine in Rust and WebAssembly"
documentation = "https://docs.rs/molt-framework"
repository = "https://github.com/micheltlutz/molt"
homepage = "https://github.com/micheltlutz/molt"
license = "MIT"
readme = "README.md"
keywords = ["html", "dsl", "wasm", "static-site", "templating"]
categories = ["web-programming", "template-engine", "wasm"]
exclude = [
"/.claude",
"/AGENTS.md",
"/CLAUDE.md",
"/clippy.toml",
"/codecov.yml",
"/deny.toml",
"/rust-toolchain.toml",
"/rustfmt.toml",
"/.github",
"/scripts",
"/examples/web",
"/examples/node",
"/fuzz",
"/docs/plans",
"/docs/history",
"molt-logo.png",
"*.code-workspace",
]
[lib]
name = "molt"
crate-type = ["cdylib", "rlib"]
[features]
default = ["ssg"]
ssg = []
wasm = ["dep:wasm-bindgen"]
parallel = ["ssg", "dep:rayon"]
[dependencies]
wasm-bindgen = { version = "0.2", optional = true }
rayon = { version = "1.10", optional = true }
[dev-dependencies]
wasm-bindgen-test = "0.3"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
criterion = "0.7"
stats_alloc = "0.1"
[[bench]]
name = "render"
harness = false
[[example]]
name = "static_site"
required-features = ["ssg"]
[[example]]
name = "marketing_page"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
overflow-checks = true
[profile.bench]
opt-level = 3
[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
module_name_repetitions = "allow"
must_use_candidate = "allow"
unwrap_used = "deny"
expect_used = "deny"