[package]
edition = "2024"
rust-version = "1.85"
name = "molt-framework"
version = "1.1.0"
authors = ["Michel Anderson Lutz Teixeira <michel@micheltlutz.me>"]
build = false
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",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast, type-safe HTML DSL and static site generation engine in Rust and WebAssembly"
homepage = "https://github.com/micheltlutz/molt"
documentation = "https://docs.rs/molt-framework"
readme = "README.md"
keywords = [
"html",
"dsl",
"wasm",
"static-site",
"templating",
]
categories = [
"web-programming",
"template-engine",
"wasm",
]
license = "MIT"
repository = "https://github.com/micheltlutz/molt"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["ssg"]
parallel = [
"ssg",
"dep:rayon",
]
ssg = []
wasm = ["dep:wasm-bindgen"]
[lib]
name = "molt"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[example]]
name = "marketing_page"
path = "examples/marketing_page.rs"
[[example]]
name = "static_site"
path = "examples/static_site.rs"
required-features = ["ssg"]
[[test]]
name = "allocations"
path = "tests/allocations.rs"
[[test]]
name = "golden"
path = "tests/golden.rs"
[[test]]
name = "invariants"
path = "tests/invariants.rs"
[[test]]
name = "performance"
path = "tests/performance.rs"
[[test]]
name = "wasm"
path = "tests/wasm.rs"
[[bench]]
name = "render"
path = "benches/render.rs"
harness = false
[dependencies.rayon]
version = "1.10"
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.7"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.stats_alloc]
version = "0.1"
[lints.clippy]
expect_used = "deny"
module_name_repetitions = "allow"
must_use_candidate = "allow"
unwrap_used = "deny"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"
[profile.bench]
opt-level = 3
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
overflow-checks = true