Skip to content

Commit e22a310

Browse files
committed
Switch to extern crate syntax
1 parent adec4dd commit e22a310

5 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ exposes a high level interface in the vein of JDBC or Go's `database/sql`
44
package.
55
66
```rust
7-
extern mod postgres;
8-
extern mod extra;
7+
extern crate postgres;
8+
extern crate extra;
99
1010
use extra::time;
1111
use extra::time::Timespec;
@@ -64,15 +64,15 @@ fn main() {
6464

6565
#[feature(macro_rules, struct_variant, globs, phase)];
6666

67-
extern mod collections;
68-
extern mod extra;
69-
extern mod openssl;
70-
extern mod serialize;
71-
extern mod sync;
67+
extern crate collections;
68+
extern crate extra;
69+
extern crate openssl;
70+
extern crate serialize;
71+
extern crate sync;
7272
#[phase(syntax)]
73-
extern mod phf_mac;
74-
extern mod phf;
75-
extern mod uuid;
73+
extern crate phf_mac;
74+
extern crate phf;
75+
extern crate uuid;
7676

7777
use collections::{Deque, RingBuf};
7878
use extra::url::{UserInfo, Url};

src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Traits dealing with Postgres data types
22
#[macro_escape];
33

4-
extern mod extra;
4+
extern crate extra;
55

66
use extra::time::Timespec;
77
use extra::json;

src/types/range.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//! #[feature(phase)];
1515
//!
1616
//! #[phase(syntax, link)]
17-
//! extern mod postgres;
17+
//! extern crate postgres;
1818
//!
1919
//! use postgres::types::range::{Range, RangeBound, Inclusive, Exclusive};
2020
//!
@@ -42,7 +42,7 @@
4242
//! }
4343
#[macro_escape];
4444

45-
extern mod extra;
45+
extern crate extra;
4646

4747
use std::cmp;
4848
use std::i32;

submodules/rust-openssl

Submodule rust-openssl updated from 5f5b55f to 05eab1f

submodules/rust-phf

Submodule rust-phf updated from 58d537a to b59b392

0 commit comments

Comments
 (0)