From 909004356513c3fe6893ffce7ac32c237d34c446 Mon Sep 17 00:00:00 2001 From: Erik Hedvall Date: Sun, 16 Feb 2014 14:48:44 +0100 Subject: [PATCH 1/2] Changed `extern mod` to `extern crate` --- doc/client-plan.rst | 2 +- src/examples/client/main.rs | 2 +- src/examples/server/apache_fake/main.rs | 4 ++-- src/examples/server/hello_world/main.rs | 4 ++-- src/examples/server/info/main.rs | 4 ++-- src/examples/server/request_uri/main.rs | 4 ++-- src/http/lib.rs | 4 ++-- src/http/server/mod.rs | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/doc/client-plan.rst b/doc/client-plan.rst index be7c424..5d9fbcd 100644 --- a/doc/client-plan.rst +++ b/doc/client-plan.rst @@ -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; diff --git a/src/examples/client/main.rs b/src/examples/client/main.rs index d4bc24a..6b58a3d 100644 --- a/src/examples/client/main.rs +++ b/src/examples/client/main.rs @@ -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; diff --git a/src/examples/server/apache_fake/main.rs b/src/examples/server/apache_fake/main.rs index 90000c6..72a87e4 100644 --- a/src/examples/server/apache_fake/main.rs +++ b/src/examples/server/apache_fake/main.rs @@ -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; diff --git a/src/examples/server/hello_world/main.rs b/src/examples/server/hello_world/main.rs index 88167d5..b32bf02 100644 --- a/src/examples/server/hello_world/main.rs +++ b/src/examples/server/hello_world/main.rs @@ -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; diff --git a/src/examples/server/info/main.rs b/src/examples/server/info/main.rs index e695c9e..252aa10 100644 --- a/src/examples/server/info/main.rs +++ b/src/examples/server/info/main.rs @@ -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; diff --git a/src/examples/server/request_uri/main.rs b/src/examples/server/request_uri/main.rs index 0252143..9cceb2b 100644 --- a/src/examples/server/request_uri/main.rs +++ b/src/examples/server/request_uri/main.rs @@ -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; diff --git a/src/http/lib.rs b/src/http/lib.rs index d946794..cde3705 100644 --- a/src/http/lib.rs +++ b/src/http/lib.rs @@ -11,8 +11,8 @@ #[feature(macro_rules)]; #[macro_escape]; -extern mod extra; -extern mod collections; +extern crate extra; +extern crate collections; pub mod buffer; pub mod client; diff --git a/src/http/server/mod.rs b/src/http/server/mod.rs index 43af8e9..8ddd05b 100644 --- a/src/http/server/mod.rs +++ b/src/http/server/mod.rs @@ -1,4 +1,4 @@ -extern mod extra; +extern crate extra; use std::comm::Chan; use std::io::{Listener, Acceptor}; From 9278c61393174691e2271054a6bae0951840b493 Mon Sep 17 00:00:00 2001 From: Erik Hedvall Date: Sun, 16 Feb 2014 15:20:42 +0100 Subject: [PATCH 2/2] Made the library announce the location of its documentation --- src/http/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http/lib.rs b/src/http/lib.rs index cde3705..e44f7f0 100644 --- a/src/http/lib.rs +++ b/src/http/lib.rs @@ -5,6 +5,8 @@ #[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)];