1111//! Types/fns concerning URLs (see RFC 3986)
1212
1313#![ crate_name = "url" ]
14- #![ experimental ]
14+ #![ deprecated= "This is being removed. Use rust-url instead. http://servo.github.io/rust-url/" ]
1515#![ crate_type = "rlib" ]
1616#![ crate_type = "dylib" ]
1717#![ license = "MIT/ASL2" ]
@@ -35,6 +35,7 @@ use std::path::BytesContainer;
3535/// # Example
3636///
3737/// ```rust
38+ /// # #![allow(deprecated)]
3839/// use url::Url;
3940///
4041/// let raw = "https://username@example.com:8080/foo/bar?baz=qux#quz";
@@ -214,6 +215,7 @@ fn encode_inner<T: BytesContainer>(c: T, full_url: bool) -> String {
214215/// # Example
215216///
216217/// ```rust
218+ /// # #![allow(deprecated)]
217219/// use url::encode;
218220///
219221/// let url = encode("https://example.com/Rust (programming language)");
@@ -241,6 +243,7 @@ pub type DecodeResult<T> = Result<T, String>;
241243/// # Example
242244///
243245/// ```rust
246+ /// # #![allow(deprecated)]
244247/// use url::decode;
245248///
246249/// let url = decode("https://example.com/Rust%20(programming%20language)");
@@ -428,6 +431,7 @@ fn query_from_str(rawquery: &str) -> DecodeResult<Query> {
428431/// # Example
429432///
430433/// ```rust
434+ /// # #![allow(deprecated)]
431435/// let query = vec![("title".to_string(), "The Village".to_string()),
432436/// ("north".to_string(), "52.91".to_string()),
433437/// ("west".to_string(), "4.10".to_string())];
@@ -453,6 +457,7 @@ pub fn query_to_str(query: &Query) -> String {
453457/// # Example
454458///
455459/// ```rust
460+ /// # #![allow(deprecated)]
456461/// use url::get_scheme;
457462///
458463/// let scheme = match get_scheme("https://example.com/") {
0 commit comments