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.
|
package.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
extern mod postgres;
|
extern crate postgres;
|
||||||
extern mod extra;
|
extern crate extra;
|
||||||
|
|
||||||
use extra::time;
|
use extra::time;
|
||||||
use extra::time::Timespec;
|
use extra::time::Timespec;
|
||||||
@ -64,15 +64,15 @@ fn main() {
|
|||||||
|
|
||||||
#[feature(macro_rules, struct_variant, globs, phase)];
|
#[feature(macro_rules, struct_variant, globs, phase)];
|
||||||
|
|
||||||
extern mod collections;
|
extern crate collections;
|
||||||
extern mod extra;
|
extern crate extra;
|
||||||
extern mod openssl;
|
extern crate openssl;
|
||||||
extern mod serialize;
|
extern crate serialize;
|
||||||
extern mod sync;
|
extern crate sync;
|
||||||
#[phase(syntax)]
|
#[phase(syntax)]
|
||||||
extern mod phf_mac;
|
extern crate phf_mac;
|
||||||
extern mod phf;
|
extern crate phf;
|
||||||
extern mod uuid;
|
extern crate uuid;
|
||||||
|
|
||||||
use collections::{Deque, RingBuf};
|
use collections::{Deque, RingBuf};
|
||||||
use extra::url::{UserInfo, Url};
|
use extra::url::{UserInfo, Url};
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Traits dealing with Postgres data types
|
//! Traits dealing with Postgres data types
|
||||||
#[macro_escape];
|
#[macro_escape];
|
||||||
|
|
||||||
extern mod extra;
|
extern crate extra;
|
||||||
|
|
||||||
use extra::time::Timespec;
|
use extra::time::Timespec;
|
||||||
use extra::json;
|
use extra::json;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
//! #[feature(phase)];
|
//! #[feature(phase)];
|
||||||
//!
|
//!
|
||||||
//! #[phase(syntax, link)]
|
//! #[phase(syntax, link)]
|
||||||
//! extern mod postgres;
|
//! extern crate postgres;
|
||||||
//!
|
//!
|
||||||
//! use postgres::types::range::{Range, RangeBound, Inclusive, Exclusive};
|
//! use postgres::types::range::{Range, RangeBound, Inclusive, Exclusive};
|
||||||
//!
|
//!
|
||||||
@ -42,7 +42,7 @@
|
|||||||
//! }
|
//! }
|
||||||
#[macro_escape];
|
#[macro_escape];
|
||||||
|
|
||||||
extern mod extra;
|
extern crate extra;
|
||||||
|
|
||||||
use std::cmp;
|
use std::cmp;
|
||||||
use std::i32;
|
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