servo / rust-url

URL parser for Rust
https://docs.rs/url/
Apache License 2.0
1.27k stars 317 forks source link

Reexport percent_encoding #873

Closed lewiszlw closed 7 months ago

dsheets commented 7 months ago

percent-encoding is already an externally usable crate.

valenting commented 7 months ago

percent-encoding is already an externally usable crate.

Exactly. https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=ef54d980432a386e372b175f491e7124

use percent_encoding;
fn main() {
    println!("{}",percent_encoding::utf8_percent_encode("foo bar?", percent_encoding::NON_ALPHANUMERIC));
}