[dependencies.actix-web]
optional = true
version = "4"
[dependencies.axum-core]
optional = true
version = "0.5"
[dependencies.html-escape]
default-features = false
optional = true
version = "0.2"
[dependencies.http]
optional = true
version = "1"
[dependencies.hypertext-macros]
version = "0.7.0"
[dependencies.itoa]
optional = true
version = "1"
[dependencies.poem]
optional = true
version = "3"
[dependencies.ryu]
optional = true
version = "1"
[features]
actix = ["alloc", "dep:actix-web"]
alloc = ["dep:html-escape", "dep:itoa", "dep:ryu"]
axum = ["alloc", "dep:axum-core", "dep:http"]
default = ["alloc"]
htmx = []
poem = ["alloc", "dep:poem"]
[lib]
name = "hypertext"
path = "src/lib.rs"
[lints.clippy]
too_long_first_doc_paragraph = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe_code = "forbid"
[package]
authors = ["Vidhan Bhatt <me@vidhan.io>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["template-engine"]
description = "A blazing fast type-checked HTML macro crate."
documentation = "https://docs.rs/hypertext"
edition = "2024"
homepage = "https://github.com/vidhanio/hypertext"
keywords = ["html", "macro"]
license = "MIT"
name = "hypertext"
readme = "README.md"
repository = "https://github.com/vidhanio/hypertext"
resolver = "2"
version = "0.7.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "main"
path = "tests/main.rs"