ladybird/Libraries/LibURL/Rust/src
Shannon Booth 250842d36a LibURL: Use encoding_rs for form URL encoding
Replace the Rust URL form-encoding callback bridge into C++ TextCodec
with a direct encoding_rs encoder.

This keeps percent-encode-after-encoding entirely in Rust and removes
liburl_rust's dependency on LibTextCodec.

It also happens to fix ISO-2022-JP URL encoding of literal U+FFFD.

The LibTextCodec reverse lookup treats generated 0xFFFD table holes as
real JIS0208 mappings, so literal U+FFFD skipped the encoder-error
path. encoding_rs treats U+FFFD as unmappable, so URL encoding emits
the required numeric character reference.
2026-06-20 21:56:43 +02:00
..
ffi LibURL: Replace WTF-8 surrogates before Rust URL parsing 2026-05-30 01:41:34 +02:00
pattern LibURL/Pattern: Avoid eliding default ports in port patterns 2026-06-15 13:45:37 +02:00
url LibURL: Use encoding_rs for form URL encoding 2026-06-20 21:56:43 +02:00
ffi.rs LibURL: Implement URLPattern in Rust 2026-05-28 09:27:41 +02:00
lib.rs LibURL: Implement URLPattern in Rust 2026-05-28 09:27:41 +02:00
textcodec.rs LibURL: Use encoding_rs for form URL encoding 2026-06-20 21:56:43 +02:00