Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 06a2a8a

Browse files
author
James Lee
committed
Rust update: libextra is deleted. extra::url has moved out to a separate library
1 parent 076e13a commit 06a2a8a

File tree

9 files changed

+6
-14
lines changed

9 files changed

+6
-14
lines changed

src/examples/server/apache_fake/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
55
#[crate_id = "apache_fake"];
66

7-
extern crate extra;
87
extern crate time;
98
extern crate http;
109

src/examples/server/hello_world/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
#[crate_id = "hello_world"];
44

5-
extern crate extra;
65
extern crate time;
76
extern crate http;
87

src/examples/server/info/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
44
#[crate_id = "info"];
55

6-
extern crate extra;
76
extern crate time;
87
extern crate http;
98

src/examples/server/request_uri/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
77
#[crate_id = "request_uri"];
88

9-
extern crate extra;
109
extern crate time;
1110
extern crate http;
1211

src/http/client/request.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ let response = match request.read_response() {
3535
```
3636
3737
*/
38-
39-
use extra::url::Url;
40-
use extra::url;
38+
use url;
39+
use url::Url;
4140
use method::Method;
4241
use std::io::{IoError, IoResult};
4342
use std::io::net::get_host_addresses;

src/http/headers/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
//! known HTTP headers are type checked, rather than being dealt with as strings all the time. Only
55
//! unknown headers are stored in a map in the traditional way.
66
7+
use url::Url;
78
use std::io::IoResult;
89
use time::{Tm, strptime};
9-
use extra::url::Url;
1010
use rfc2616::{is_token_item, is_separator, CR, LF, SP, HT, COLON};
1111
use method::Method;
1212

@@ -872,7 +872,6 @@ macro_rules! headers_mod {
872872
873873
#[allow(unused_imports)];
874874
use std::io::IoResult;
875-
use extra;
876875
use time;
877876
use collections::treemap::{TreeMap, Entries};
878877
use headers;
@@ -1078,7 +1077,7 @@ headers_mod! {
10781077
10, "Accept-Ranges", "Accept-Ranges", AcceptRanges, accept_ranges, headers::accept_ranges::AcceptableRanges;
10791078
11, "Age", "Age", Age, age, ~str;
10801079
12, "ETag", "Etag", ETag, etag, headers::etag::EntityTag;
1081-
13, "Location", "Location", Location, location, extra::url::Url;
1080+
13, "Location", "Location", Location, location, ::url::Url;
10821081
14, "Proxy-Authenticate", "Proxy-Authenticate", ProxyAuthenticate, proxy_authenticate, ~str;
10831082
15, "Retry-After", "Retry-After", RetryAfter, retry_after, ~str;
10841083
16, "Server", "Server", Server, server, ~str;

src/http/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#[feature(macro_rules)];
1414
#[macro_escape];
1515

16-
extern crate extra;
16+
extern crate url;
1717
extern crate time;
1818
extern crate collections;
1919

src/http/server/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate extra;
2-
31
use std::io::{Listener, Acceptor};
42
use std::io::net::ip::SocketAddr;
53
use time::precise_time_ns;

src/http/server/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use extra::url::Url;
1+
use url::Url;
22
use method::{Method, Options};
33
use status;
44
use std::from_str::FromStr;

0 commit comments

Comments
 (0)