Hid sqlx behind feature flags
This commit is contained in:
parent
b30072bfe0
commit
4a3517ddeb
|
@ -16,7 +16,6 @@ bincode = "1.3.3"
|
|||
rand = "0.8.5"
|
||||
|
||||
[features]
|
||||
default = ["all"]
|
||||
all = ["sqlx", "wasm"]
|
||||
sqlx = ["dep:sqlx"]
|
||||
wasm = ["uuid/js"]
|
|
@ -1,5 +1,6 @@
|
|||
use std::{fmt::Display, str::FromStr};
|
||||
|
||||
#[cfg(feature = "sqlx")]
|
||||
use sqlx::{Postgres, postgres::{PgArgumentBuffer, PgValueRef, PgTypeInfo}, encode::IsNull, error::BoxDynError};
|
||||
|
||||
use crate::domain::error::FromStrError;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
use std::{fmt::Display, str::FromStr};
|
||||
|
||||
#[cfg(feature = "sqlx")]
|
||||
use sqlx::{Postgres, postgres::{PgArgumentBuffer, PgValueRef, PgTypeInfo}, encode::IsNull, error::BoxDynError};
|
||||
|
||||
use crate::domain::error::FromStrError;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
use std::{fmt::Display, str::FromStr};
|
||||
|
||||
#[cfg(feature = "sqlx")]
|
||||
use sqlx::{
|
||||
encode::IsNull,
|
||||
error::BoxDynError,
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
pub mod impls;
|
||||
pub mod readable;
|
||||
|
||||
|
|
Loading…
Reference in New Issue