Files
moli/moli-encoding/src/lib.rs
T
ldm0 b88999b91e fix(modules): decode fetched source as UTF-8
Extract an independently mergeable topic from wpt-misc-fix at
a70a96f9d1.

Apply UTF-8 decoding directly to the baseline module fetch path without including import-map integrity changes.

Source commits:
- bffc90964d

Validation:
- cargo fmt --all
- cargo clippy --workspace --all-targets --all-features -- -D warnings
- cargo nextest run --no-fail-fast
2026-09-10 14:39:04 +08:00

29 lines
851 B
Rust

//! Browser-compatible text, document, form, script, and URL encoding helpers.
mod document;
mod form;
mod labels;
mod legacy_text;
mod percent;
mod query;
mod script;
pub use document::{
HtmlDocumentStreamingDecoder, LegacyEncodingDetector, decode_html_document,
decode_html_document_with_fallback,
};
pub use form::{
encode_text_for_legacy_web, form_output_encoding, form_output_encoding_for_label,
form_submission_encoding, form_urlencoded_serialize_pairs, is_charset_sentinel_name,
};
pub use labels::{
charset_from_content_type, charset_from_headers, encoding_for_label,
encoding_for_response_charset, encoding_from_response_headers,
};
pub use legacy_text::decode_text_for_legacy_web;
pub use query::encode_url_query_for_legacy_web;
pub use script::{decode_classic_script_source, decode_utf8};
#[cfg(test)]
mod tests;