Restructure directories for rustpkg
Turns out the src/postgres indirection isn't necessary.
This commit is contained in:
parent
d65d5bcbe2
commit
d567ca8c7a
@ -6,7 +6,5 @@ install:
|
||||
before_script:
|
||||
- ./travis/setup.sh
|
||||
script:
|
||||
- rustc --lib --out-dir . src/postgres/lib.rs
|
||||
- rustc --test --out-dir . -L. --cfg travis src/postgres/test.rs
|
||||
- rustc --test --cfg travis -o test lib.rs
|
||||
- ./test
|
||||
# - rustpkg test postgres
|
||||
|
@ -126,6 +126,9 @@ pub mod pool;
|
||||
mod message;
|
||||
pub mod types;
|
||||
|
||||
#[cfg(test)]
|
||||
mod test;
|
||||
|
||||
/// Trait for types that can handle Postgres notice messages
|
||||
pub trait PostgresNoticeHandler {
|
||||
/// Handle a Postgres notice message
|
@ -1,5 +1,4 @@
|
||||
extern mod extra;
|
||||
extern mod postgres;
|
||||
|
||||
use extra::comm::DuplexStream;
|
||||
use extra::future::Future;
|
||||
@ -11,20 +10,19 @@ use extra::uuid::Uuid;
|
||||
use std::f32;
|
||||
use std::f64;
|
||||
|
||||
use postgres::{PostgresNoticeHandler,
|
||||
PostgresNotification,
|
||||
DbError,
|
||||
DnsError,
|
||||
MissingPassword,
|
||||
Position,
|
||||
PostgresConnection,
|
||||
PostgresDbError,
|
||||
PostgresStatement,
|
||||
ResultDescription};
|
||||
use postgres::error::hack::{SyntaxError, InvalidPassword};
|
||||
use postgres::types::{ToSql, FromSql, PgInt4, PgVarchar};
|
||||
use postgres::pool::PostgresConnectionPool;
|
||||
|
||||
use super::{PostgresNoticeHandler,
|
||||
PostgresNotification,
|
||||
DbError,
|
||||
DnsError,
|
||||
MissingPassword,
|
||||
Position,
|
||||
PostgresConnection,
|
||||
PostgresDbError,
|
||||
PostgresStatement,
|
||||
ResultDescription};
|
||||
use super::error::hack::{SyntaxError, InvalidPassword};
|
||||
use super::types::{ToSql, FromSql, PgInt4, PgVarchar};
|
||||
use super::pool::PostgresConnectionPool;
|
||||
|
||||
#[test]
|
||||
// Make sure we can take both connections at once and can still get one after
|
Loading…
Reference in New Issue
Block a user