11
11
//! Types/fns concerning URLs (see RFC 3986)
12
12
13
13
#![ crate_name = "url" ]
14
- #![ experimental ]
14
+ #![ deprecated= "This is being removed. Use rust-url instead. http://servo.github.io/rust-url/" ]
15
15
#![ crate_type = "rlib" ]
16
16
#![ crate_type = "dylib" ]
17
17
#![ license = "MIT/ASL2" ]
@@ -35,6 +35,7 @@ use std::path::BytesContainer;
35
35
/// # Example
36
36
///
37
37
/// ```rust
38
+ /// # #![allow(deprecated)]
38
39
/// use url::Url;
39
40
///
40
41
/// 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 {
214
215
/// # Example
215
216
///
216
217
/// ```rust
218
+ /// # #![allow(deprecated)]
217
219
/// use url::encode;
218
220
///
219
221
/// let url = encode("https://example.com/Rust (programming language)");
@@ -241,6 +243,7 @@ pub type DecodeResult<T> = Result<T, String>;
241
243
/// # Example
242
244
///
243
245
/// ```rust
246
+ /// # #![allow(deprecated)]
244
247
/// use url::decode;
245
248
///
246
249
/// let url = decode("https://example.com/Rust%20(programming%20language)");
@@ -428,6 +431,7 @@ fn query_from_str(rawquery: &str) -> DecodeResult<Query> {
428
431
/// # Example
429
432
///
430
433
/// ```rust
434
+ /// # #![allow(deprecated)]
431
435
/// let query = vec![("title".to_string(), "The Village".to_string()),
432
436
/// ("north".to_string(), "52.91".to_string()),
433
437
/// ("west".to_string(), "4.10".to_string())];
@@ -453,6 +457,7 @@ pub fn query_to_str(query: &Query) -> String {
453
457
/// # Example
454
458
///
455
459
/// ```rust
460
+ /// # #![allow(deprecated)]
456
461
/// use url::get_scheme;
457
462
///
458
463
/// let scheme = match get_scheme("https://example.com/") {
0 commit comments