aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml2
-rw-r--r--README.md11
-rw-r--r--src/authority.rs14
-rw-r--r--src/lib.rs8
-rw-r--r--src/uri.rs22
5 files changed, 26 insertions, 31 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c4df3f0..c0ac751 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "rhymuri"
+name = "uris"
version = "1.3.1"
description = "Implementation of IETF RFC 3986, Uniform Resource Identifier (URI)"
authors = ["Richard Walters <rwalters@digitalstirling.com>"]
diff --git a/README.md b/README.md
index b8c38a5..be85a0b 100644
--- a/README.md
+++ b/README.md
@@ -1,16 +1,11 @@
-# Uri (rhymuri)
+# Uri
This is a library which implements [IETF RFC
3986](https://tools.ietf.org/html/rfc3986), "Uniform Resource Identifier (URI):
Generic Syntax".
-[![Crates.io](https://img.shields.io/crates/v/rhymuri.svg)](https://crates.io/crates/rhymuri)
-[![Documentation](https://docs.rs/rhymuri/badge.svg)][dox]
-
-More information about the Rust implementation of this library can be found in
-the [crate documentation][dox].
-
-[dox]: https://docs.rs/rhymuri
+More information about this library can be found in
+the [crate documentation](https://docs.rs/uris).
A URI is a compact sequence of characters that identifies an abstract or
physical resource. One common form of URI is the Uniform Resource Locator
diff --git a/src/authority.rs b/src/authority.rs
index f7505f8..a4a9790 100644
--- a/src/authority.rs
+++ b/src/authority.rs
@@ -22,10 +22,10 @@ use super::{
/// ## Parsing an Authority into its components
///
/// ```rust
-/// # extern crate rhymuri;
-/// use rhymuri::Authority;
+/// # extern crate uris;
+/// use uris::Authority;
///
-/// # fn main() -> Result<(), rhymuri::Error> {
+/// # fn main() -> Result<(), uris::Error> {
/// let authority = Authority::parse("nobody@www.example.com:8080")?;
/// assert_eq!(Some("nobody".as_bytes()), authority.userinfo());
/// assert_eq!("www.example.com".as_bytes(), authority.host());
@@ -37,10 +37,10 @@ use super::{
/// ## Generating a URI from its components
///
/// ```rust
-/// # extern crate rhymuri;
-/// use rhymuri::Authority;
+/// # extern crate uris;
+/// use uris::Authority;
///
-/// # fn main() -> Result<(), rhymuri::Error> {
+/// # fn main() -> Result<(), uris::Error> {
/// let mut authority = Authority::default();
/// authority.set_userinfo(Some("nobody").map(Into::into));
/// authority.set_host("www.example.com");
@@ -162,7 +162,7 @@ impl std::fmt::Display for Authority {
if validate_ipv6_address(&host_to_string).is_ok() =>
{
write!(f, "[{}]", host_to_string.to_ascii_lowercase())?;
- }
+ },
_ => {
write!(
f,
diff --git a/src/lib.rs b/src/lib.rs
index 7819bad..8e0a8b9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -22,8 +22,8 @@
//! ## Parsing a URI into its components
//!
//! ```rust
-//! # extern crate rhymuri;
-//! use rhymuri::Uri;
+//! # extern crate uris;
+//! use uris::Uri;
//!
//! let uri = Uri::parse("http://www.example.com/foo?bar#baz").unwrap();
//! let authority = uri.authority().unwrap();
@@ -40,8 +40,8 @@
//! ## Generating a URI from its components
//!
//! ```rust
-//! # extern crate rhymuri;
-//! use rhymuri::{
+//! # extern crate uris;
+//! use uris::{
//! Authority,
//! Uri,
//! };
diff --git a/src/uri.rs b/src/uri.rs
index 25027af..12009c6 100644
--- a/src/uri.rs
+++ b/src/uri.rs
@@ -44,10 +44,10 @@ use super::{
/// ## Parsing a URI into its components
///
/// ```rust
-/// # extern crate rhymuri;
-/// use rhymuri::Uri;
+/// # extern crate uris;
+/// use uris::Uri;
///
-/// # fn main() -> Result<(), rhymuri::Error> {
+/// # fn main() -> Result<(), uris::Error> {
/// let uri = Uri::parse("http://www.example.com/foo?bar#baz")?;
/// let authority = uri.authority().unwrap();
/// assert_eq!("www.example.com".as_bytes(), authority.host());
@@ -66,8 +66,8 @@ use super::{
/// ## Generating a URI from its components
///
/// ```rust
-/// # extern crate rhymuri;
-/// use rhymuri::{
+/// # extern crate uris;
+/// use uris::{
/// Authority,
/// Uri,
/// };
@@ -244,10 +244,10 @@ impl Uri {
/// # Examples
///
/// ```rust
- /// # extern crate rhymuri;
- /// use rhymuri::Uri;
+ /// # extern crate uris;
+ /// use uris::Uri;
///
- /// # fn main() -> Result<(), rhymuri::Error> {
+ /// # fn main() -> Result<(), uris::Error> {
/// let mut uri = Uri::parse("/a/b/c/./../../g")?;
/// uri.normalize();
/// assert_eq!("/a/g", uri.path_to_string()?);
@@ -502,10 +502,10 @@ impl Uri {
/// # Examples
///
/// ```rust
- /// # extern crate rhymuri;
- /// use rhymuri::Uri;
+ /// # extern crate uris;
+ /// use uris::Uri;
///
- /// # fn main() -> Result<(), rhymuri::Error> {
+ /// # fn main() -> Result<(), uris::Error> {
/// let base = Uri::parse("http://a/b/c/d;p?q")?;
/// let relative_reference = Uri::parse("g;x?y#s")?;
/// let resolved = base.resolve(&relative_reference);