use-percent 0.1.0

Percent-encoding and decoding helpers for RustUse
Documentation
  • Coverage
  • 7.69%
    1 out of 13 items documented1 out of 9 items with examples
  • Size
  • Source code size: 7.63 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 346.05 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-encoding
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-percent

Percent-encoding and decoding helpers for common text components.

Warning: versions below 0.3.0 are experimental and may change as the crate surface is refined.

Example Usage

use use_percent::{percent_decode_component, percent_encode_component};

let encoded = percent_encode_component("hello world");
let decoded = percent_decode_component(&encoded);

let _ = (encoded, decoded);

Scope

  • encoding and decoding practical percent-escaped text
  • detecting valid, invalid, and present percent escape sequences
  • small helpers for URL component style workflows without a full URL parser

Non-Goals

  • full WHATWG URL processing
  • charset conversion
  • replacing mature URL parser libraries

License

Licensed under either of the following, at your option:

  • MIT License
  • Apache License, Version 2.0