jevcrates.git / jev-ui / src / lib.rs
lib.rsannotatedlib.rssource18 lines · 661 B · raw

The look and the page shell shared by the Jev sites (lmjtfy, whiskers): the stylesheet and the scripts that go with it, the head and body, the parts a page is made of, the tags a pasted link unfurls from, and the SVG of the preview card.

Pure: no file, clock or network. It compiles for a Worker (wasm32-unknown-unknown) and natively, and everything it serves is embedded, so a page asks no other site for anything. See the README for what a site writes and what it gets from here.

8#![forbid(unsafe_code)]
10pub mod asset;
11pub mod card;
12pub mod components;
13pub mod flow;
14pub mod preview;
15pub mod shell;
16pub mod wire;
17
18pub use maud;