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

Commit

Permalink
Merge pull request #60 from Ogeon/master
Browse files Browse the repository at this point in the history
Changed to `extern crate` and added documentation URL
  • Loading branch information
chris-morgan committed Feb 16, 2014
2 parents 084d590 + 9278c61 commit a6a22f0
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion doc/client-plan.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ probably be a wrapper about a ``Reader``.
The initial API will be very simple, with ``Request::new(Method, Url)`` and the
use of string typing for headers::

extern mod http;
extern crate http;
use http::client::Request;
use http::method::Get;
use extra::url::Url;
Expand Down
2 changes: 1 addition & 1 deletion src/examples/client/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[crate_id = "client"];

extern mod http;
extern crate http;
use http::client::RequestWriter;
use http::method::Get;
use http::headers::HeaderEnum;
Expand Down
4 changes: 2 additions & 2 deletions src/examples/server/apache_fake/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#[crate_id = "apache_fake"];

extern mod extra;
extern mod http;
extern crate extra;
extern crate http;

use std::io::net::ip::{SocketAddr, Ipv4Addr};
use std::io::Writer;
Expand Down
4 changes: 2 additions & 2 deletions src/examples/server/hello_world/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#[crate_id = "hello_world"];

extern mod extra;
extern mod http;
extern crate extra;
extern crate http;

use std::io::net::ip::{SocketAddr, Ipv4Addr};
use std::io::Writer;
Expand Down
4 changes: 2 additions & 2 deletions src/examples/server/info/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#[crate_id = "info"];

extern mod extra;
extern mod http;
extern crate extra;
extern crate http;

use std::io::net::ip::{SocketAddr, Ipv4Addr};
use std::io::Writer;
Expand Down
4 changes: 2 additions & 2 deletions src/examples/server/request_uri/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#[crate_id = "request_uri"];

extern mod extra;
extern mod http;
extern crate extra;
extern crate http;

use std::io::net::ip::{SocketAddr, Ipv4Addr};
use std::io::Writer;
Expand Down
6 changes: 4 additions & 2 deletions src/http/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
#[crate_type = "dylib"];
#[crate_type = "rlib"];

#[doc(html_root_url = "http://www.rust-ci.org/chris-morgan/rust-http/doc/")];

#[deny(non_camel_case_types)];
//#[deny(missing_doc)];

#[feature(macro_rules)];
#[macro_escape];

extern mod extra;
extern mod collections;
extern crate extra;
extern crate collections;

pub mod buffer;
pub mod client;
Expand Down
2 changes: 1 addition & 1 deletion src/http/server/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extern mod extra;
extern crate extra;

use std::comm::Chan;
use std::io::{Listener, Acceptor};
Expand Down

0 comments on commit a6a22f0

Please sign in to comment.