Skip to content

Commit a6a22f0

Browse files
committed
Merge pull request chris-morgan#60 from Ogeon/master
Changed to `extern crate` and added documentation URL
2 parents 084d590 + 9278c61 commit a6a22f0

File tree

8 files changed

+15
-13
lines changed

8 files changed

+15
-13
lines changed

doc/client-plan.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ probably be a wrapper about a ``Reader``.
3939
The initial API will be very simple, with ``Request::new(Method, Url)`` and the
4040
use of string typing for headers::
4141

42-
extern mod http;
42+
extern crate http;
4343
use http::client::Request;
4444
use http::method::Get;
4545
use extra::url::Url;

src/examples/client/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[crate_id = "client"];
22

3-
extern mod http;
3+
extern crate http;
44
use http::client::RequestWriter;
55
use http::method::Get;
66
use http::headers::HeaderEnum;

src/examples/server/apache_fake/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
55
#[crate_id = "apache_fake"];
66

7-
extern mod extra;
8-
extern mod http;
7+
extern crate extra;
8+
extern crate http;
99

1010
use std::io::net::ip::{SocketAddr, Ipv4Addr};
1111
use std::io::Writer;

src/examples/server/hello_world/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
33
#[crate_id = "hello_world"];
44

5-
extern mod extra;
6-
extern mod http;
5+
extern crate extra;
6+
extern crate http;
77

88
use std::io::net::ip::{SocketAddr, Ipv4Addr};
99
use std::io::Writer;

src/examples/server/info/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
#[crate_id = "info"];
55

6-
extern mod extra;
7-
extern mod http;
6+
extern crate extra;
7+
extern crate http;
88

99
use std::io::net::ip::{SocketAddr, Ipv4Addr};
1010
use std::io::Writer;

src/examples/server/request_uri/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
77
#[crate_id = "request_uri"];
88

9-
extern mod extra;
10-
extern mod http;
9+
extern crate extra;
10+
extern crate http;
1111

1212
use std::io::net::ip::{SocketAddr, Ipv4Addr};
1313
use std::io::Writer;

src/http/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
#[crate_type = "dylib"];
66
#[crate_type = "rlib"];
77

8+
#[doc(html_root_url = "http://www.rust-ci.org/chris-morgan/rust-http/doc/")];
9+
810
#[deny(non_camel_case_types)];
911
//#[deny(missing_doc)];
1012

1113
#[feature(macro_rules)];
1214
#[macro_escape];
1315

14-
extern mod extra;
15-
extern mod collections;
16+
extern crate extra;
17+
extern crate collections;
1618

1719
pub mod buffer;
1820
pub mod client;

src/http/server/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
extern mod extra;
1+
extern crate extra;
22

33
use std::comm::Chan;
44
use std::io::{Listener, Acceptor};

0 commit comments

Comments
 (0)