#iri

oxiri

Simple and fast implementation of IRI validation and relative IRI resolution

2 releases

0.1.1 Jul 10, 2020
0.1.0 May 1, 2020

#3 in #iri

Download history 115/week @ 2021-07-04 184/week @ 2021-07-11 151/week @ 2021-07-18 178/week @ 2021-07-25 124/week @ 2021-08-01 323/week @ 2021-08-08 468/week @ 2021-08-15 378/week @ 2021-08-22 175/week @ 2021-08-29 174/week @ 2021-09-05 222/week @ 2021-09-12 412/week @ 2021-09-19 325/week @ 2021-09-26 339/week @ 2021-10-03 188/week @ 2021-10-10 404/week @ 2021-10-17

671 downloads per month
Used in 25 crates (7 directly)

MIT/Apache

32KB
762 lines

OxIRI

actions status Latest Version Released API docs

OxIRI is a simple and fast implementation of IRIs based on RFC 3987.

It allows zero stack allocation IRI validation and resolution.

Example:

use oxiri::Iri;

// Parse and validate base IRI
let base_iri = Iri::parse("http://foo.com/bar/baz").unwrap();

// Validate and resolve relative IRI
let iri = base_iri.resolve("bat#foo").unwrap();
assert_eq!("http://foo.com/bar/bat#foo", iri.into_inner());

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Futures by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps

&._