From bd7c27ef1822048fd1f1f0850244a9c063f671f3 Mon Sep 17 00:00:00 2001 From: Richard Walters Date: Tue, 13 Oct 2020 14:57:53 -0700 Subject: Fix issues using library * Don't pull in all of the uri module as public. * To expose types publically, use "pub use" at crate level. --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0f3f55f..808b5fa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,4 +13,7 @@ mod parse_host_port; mod percent_encoded_character_decoder; mod validate_ipv4_address; mod validate_ipv6_address; -pub mod uri; +mod uri; + +pub use crate::authority::Authority; +pub use crate::uri::Uri; -- cgit v1.2.3