A minimal, zero-dependency, no_std HTML5 library for Rust following the
WHATWG HTML Living Standard.
| Crate | Description |
|---|---|
| html-builder | Core HTML builder with type-safe element construction and XSS protection |
| html-elements | All 110+ HTML5 elements as zero-sized types with content category traits |
| html-attributes | Typed attributes (global + element-specific) with validation |
| html-macro | Proc-macro for ergonomic HTML generation with Rust-like syntax |
| html-parser | HTML5 parser and validator following WHATWG spec |
- Zero dependencies (only uses
alloc) no_stdcompatible, builds to WebAssembly- Type-safe builder pattern with compile-time validation
- Automatic XSS protection via HTML/attribute escaping
- Complete HTML5 element and attribute coverage
See the API documentation.
MIT