Switch to extern crate syntax
This commit is contained in:
parent
adec4dd5ed
commit
e22a310aad
20
src/lib.rs
20
src/lib.rs
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user