about summary refs log tree commit diff
path: root/src/libextra
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-02-14 10:10:06 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-14 22:55:21 -0800
commita41b0c25295e06b8eebc4bdcb3021354f766cba0 (patch)
treed1b3262191eb927bc9e0535318676d711e2a655d /src/libextra
parent359ac360a453b31494d18bf838f6620032a663e5 (diff)
downloadrust-a41b0c25295e06b8eebc4bdcb3021354f766cba0.tar.gz
rust-a41b0c25295e06b8eebc4bdcb3021354f766cba0.zip
extern mod => extern crate
This was previously implemented, and it just needed a snapshot to go through
Diffstat (limited to 'src/libextra')
-rw-r--r--src/libextra/json.rs12
-rw-r--r--src/libextra/lib.rs6
-rw-r--r--src/libextra/test.rs4
3 files changed, 11 insertions, 11 deletions
diff --git a/src/libextra/json.rs b/src/libextra/json.rs
index 3938f1a8994..a0ca9eca1bd 100644
--- a/src/libextra/json.rs
+++ b/src/libextra/json.rs
@@ -59,7 +59,7 @@ the code for these traits: `#[deriving(Decodable, Encodable)]`
 To encode using Encodable :
 
 ```rust
-extern mod serialize;
+extern crate serialize;
 use extra::json;
 use std::io;
 use serialize::Encodable;
@@ -98,7 +98,7 @@ A basic `ToJson` example using a TreeMap of attribute name / attribute value:
 
 
 ```rust
-extern mod collections;
+extern crate collections;
 
 use extra::json;
 use extra::json::ToJson;
@@ -128,7 +128,7 @@ fn main() {
 To decode a json string using `Decodable` trait :
 
 ```rust
-extern mod serialize;
+extern crate serialize;
 use serialize::Decodable;
 
 #[deriving(Decodable)]
@@ -154,7 +154,7 @@ Create a struct called TestStruct1 and serialize and deserialize it to and from
 using the serialization API, using the derived serialization code.
 
 ```rust
-extern mod serialize;
+extern crate serialize;
 use extra::json;
 use serialize::{Encodable, Decodable};
 
@@ -186,8 +186,8 @@ This example use the ToJson impl to unserialize the json string.
 Example of `ToJson` trait implementation for TestStruct1.
 
 ```rust
-extern mod serialize;
-extern mod collections;
+extern crate serialize;
+extern crate collections;
 
 use extra::json;
 use extra::json::ToJson;
diff --git a/src/libextra/lib.rs b/src/libextra/lib.rs
index c630ac096f6..be7aa216e30 100644
--- a/src/libextra/lib.rs
+++ b/src/libextra/lib.rs
@@ -34,10 +34,10 @@ Rust extras are part of the standard Rust distribution.
 #[deny(non_camel_case_types)];
 #[deny(missing_doc)];
 
-extern mod sync;
-extern mod serialize;
+extern crate sync;
+extern crate serialize;
 
-extern mod collections;
+extern crate collections;
 
 // Utility modules
 
diff --git a/src/libextra/test.rs b/src/libextra/test.rs
index df13538b4bc..07327227d85 100644
--- a/src/libextra/test.rs
+++ b/src/libextra/test.rs
@@ -15,8 +15,8 @@
 // simplest interface possible for representing and running tests
 // while providing a base that other test frameworks may build off of.
 
-extern mod getopts;
-extern mod term;
+extern crate getopts;
+extern crate term;
 
 use json::ToJson;
 use json;