fix: add a couple missing cfgs for the migrate feature

This commit is contained in:
Ryan Leckey 2020-07-12 04:15:37 -07:00
parent 993352e9d4
commit ff4dd4c7e7
3 changed files with 7 additions and 3 deletions

View File

@ -13,7 +13,7 @@ authors = [
]
[features]
default = [ "runtime-async-std" ]
default = [ "runtime-async-std", "migrate" ]
migrate = [ "sha2", "crc" ]
# databases

View File

@ -6,7 +6,6 @@ mod connection;
mod database;
mod error;
mod io;
mod migrate;
mod options;
mod protocol;
mod row;
@ -15,6 +14,9 @@ mod type_info;
pub mod types;
mod value;
#[cfg(feature = "migrate")]
mod migrate;
pub use arguments::MySqlArguments;
pub use column::MySqlColumn;
pub use connection::MySqlConnection;

View File

@ -8,7 +8,6 @@ mod error;
mod io;
mod listener;
mod message;
mod migrate;
mod options;
mod row;
mod transaction;
@ -16,6 +15,9 @@ mod type_info;
pub mod types;
mod value;
#[cfg(feature = "migrate")]
mod migrate;
pub use arguments::{PgArgumentBuffer, PgArguments};
pub use column::PgColumn;
pub use connection::PgConnection;