Repository navigation
v0.1.0
Renamed
- winged-rust is now Molt. The crate is published as
molt-framework(molton
crates.io is an unrelated project) and imported asmolt::. The WebAssembly files are
molt.js/molt_bg.wasm, and the repository moved to
micheltlutz/molt.WINGED_UPDATE_FIXTURESis now
MOLT_UPDATE_FIXTURESandWINGED_WASM_BUDGET_KBisMOLT_WASM_BUDGET_KB. Issue links
below still point to the winged-rust repository, where those issues live.
Removed
- The npm package. The
wasmfeature andscripts/build-wasm.shstay; the build now goes
topkg/{web,node,bundler}and is not published.
Added
- URL policy, checked when the tree is written.
href,src,action,formaction,
poster,cite,background,xlink:hrefanddatarender as#when the value is a
javascript:,vbscript:ordata:text/htmlURL. The check decodes character references
once, soAttribute::raw("href", "javascript:alert(1)")is blocked, while a value
passed throughAttribute::newkeeps its escaped&.Attribute::trusted_url,
Element::trusted_urlandWElement.trustedUrlopt out. An attribute name that contains
a space, quote,=,<,>,/or a control character is not emitted. Element::self_closing(true)closes a non-void tag with>or/>and drops its
children, so a self-closing tag does not have to be built asNode::Raw(which would
skip the URL policy).Document::render_towrites the same bytes asrender_with, one body section at a time.
StaticSiteGenerator::generateuses it, into the existing temporary file.overflow-checksin the release profile,cargo deny, and a libFuzzer script
(scripts/fuzz.sh) that is outside the pull-request gate.unwrapandexpectare
denied in library code.
Changed
- The release workflow verifies (including
cargo publish --dry-run) in a job with no
registry token, then publishes from a fresh build withcargo publish --locked --no-verify, reading theCARGO_REGISTRY_TOKENrepository secret. CI runs the same
dry run on every push.
Install
[dependencies]
molt-framework = "0.1.0"The library is imported as molt: use molt::prelude::*;
What's Changed
- Bump codecov/codecov-action from 6 to 7 by @dependabot[bot] in #1
New Contributors
- @dependabot[bot] made their first contribution in #1
Full Changelog: https://github.com/micheltlutz/molt/commits/v0.1.0