Switch to extern crate syntax

This commit is contained in:
Steven Fackler 2014-02-15 15:03:35 -08:00
parent adec4dd5ed
commit e22a310aad
5 changed files with 15 additions and 15 deletions

View File

@ -4,8 +4,8 @@ exposes a high level interface in the vein of JDBC or Go's `database/sql`
package.
```rust
extern mod postgres;
extern mod extra;
extern crate postgres;
extern crate extra;
use extra::time;
use extra::time::Timespec;
@ -64,15 +64,15 @@ fn main() {
#[feature(macro_rules, struct_variant, globs, phase)];
extern mod collections;
extern mod extra;
extern mod openssl;
extern mod serialize;
extern mod sync;
extern crate collections;
extern crate extra;
extern crate openssl;
extern crate serialize;
extern crate sync;
#[phase(syntax)]
extern mod phf_mac;
extern mod phf;
extern mod uuid;
extern crate phf_mac;
extern crate phf;
extern crate uuid;
use collections::{Deque, RingBuf};
use extra::url::{UserInfo, Url};

View File

@ -1,7 +1,7 @@
//! Traits dealing with Postgres data types
#[macro_escape];
extern mod extra;
extern crate extra;
use extra::time::Timespec;
use extra::json;

View File

@ -14,7 +14,7 @@
//! #[feature(phase)];
//!
//! #[phase(syntax, link)]
//! extern mod postgres;
//! extern crate postgres;
//!
//! use postgres::types::range::{Range, RangeBound, Inclusive, Exclusive};
//!
@ -42,7 +42,7 @@
//! }
#[macro_escape];
extern mod extra;
extern crate extra;
use std::cmp;
use std::i32;

@ -1 +1 @@
Subproject commit 5f5b55ff07629f92adba11d00fce160389fa5df7
Subproject commit 05eab1f9239a44934e37957463a87b4d9ee5d890

@ -1 +1 @@
Subproject commit 58d537a121142a47b24c84429542877da1ba548e
Subproject commit b59b392908d885de2e8a6b25f54876ab63c70f36