rune-url-encode
URL percent-encoding and decoding for byte slices and strings.
What it does
Encodes strings as percent-encoded (%XX) sequences and decodes them back.
Uses the RFC 3986 unreserved character set — all other bytes are escaped.
Decoding also accepts + as a space (application/x-www-form-urlencoded).
Installation
[]
= "0.1"
Usage
use ;
let encoded = encode;
assert_eq!;
let decoded = decode.unwrap;
assert_eq!;
CLI
|
Output
hello%20world
License
MIT