use-uri 0.0.1

Small URI utility primitives for RustUse
Documentation
  • Coverage
  • 100%
    15 out of 15 items documented1 out of 10 items with examples
  • Size
  • Source code size: 9.08 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 353.93 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 17s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-web
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-uri

Small URI utility primitives for RustUse.

Experimental

use-uri is experimental while the use-web workspace remains below 0.3.0. Expect API adjustments as the first wave settles.

Example

use use_uri::{extract_query, parse_uri_basic};

let parts = parse_uri_basic("https://example.com/docs?page=2#intro");

assert_eq!(parts.scheme.as_deref(), Some("https"));
assert_eq!(parts.authority.as_deref(), Some("example.com"));
assert_eq!(extract_query("https://example.com/docs?page=2#intro").as_deref(), Some("page=2"));

Scope

  • Small helpers for URI inspection and string-based splitting.
  • Basic extraction for schemes, authorities, queries, and fragments.
  • Predictable behavior for malformed or partial input.

Non-goals

  • Full RFC URI parsing.
  • URL normalization.
  • IDNA handling.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license