1 unstable release

0.1.0 Dec 18, 2024

#1137 in Database interfaces

Download history 145/week @ 2024-12-18 7/week @ 2025-01-08

152 downloads per month
Used in 2 crates (via ahtml)

MIT/Apache

1MB
23K SLoC

HTML metainfo database

This provides metainformation about HTML elements for correctness checking, and is used by the ahtml crate.

The database about the HTML elements is linked as static structs into the binary, from includes/static_meta_db.rs, which was generated from json files copied from the html / html-sys crates, https://github.com/yoshuawuyts/html.

Static database rebuild

These json files are currently in the ahtml crate (but in the same Git repository as this crate), in the resources/merged/elements/ directory.

If you need to regenerate the static_meta_db.rs file, currently this hacky way is how it's done (due to be replaced with something sane): from the Git repository root:

WRITE_STATIC_META_DB_RS_PATH=libs/ahtml_html/includes/static_meta_db.rs HTML_READ_META_DB_FROM_JSON_DIR=libs/ahtml/resources/merged/elements/ HTML_META_DEBUG=true SESSIONID_HASHER_SECRET=1234 cargo run --bin website

then ctl-c and commit.

Dependencies

~0.8–1.7MB
~37K SLoC