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"
|
rand = "0.8.5"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["all"]
|
|
||||||
all = ["sqlx", "wasm"]
|
all = ["sqlx", "wasm"]
|
||||||
sqlx = ["dep:sqlx"]
|
sqlx = ["dep:sqlx"]
|
||||||
wasm = ["uuid/js"]
|
wasm = ["uuid/js"]
|
|
@ -1,5 +1,6 @@
|
||||||
use std::{fmt::Display, str::FromStr};
|
use std::{fmt::Display, str::FromStr};
|
||||||
|
|
||||||
|
#[cfg(feature = "sqlx")]
|
||||||
use sqlx::{Postgres, postgres::{PgArgumentBuffer, PgValueRef, PgTypeInfo}, encode::IsNull, error::BoxDynError};
|
use sqlx::{Postgres, postgres::{PgArgumentBuffer, PgValueRef, PgTypeInfo}, encode::IsNull, error::BoxDynError};
|
||||||
|
|
||||||
use crate::domain::error::FromStrError;
|
use crate::domain::error::FromStrError;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
use std::{fmt::Display, str::FromStr};
|
use std::{fmt::Display, str::FromStr};
|
||||||
|
|
||||||
|
#[cfg(feature = "sqlx")]
|
||||||
use sqlx::{Postgres, postgres::{PgArgumentBuffer, PgValueRef, PgTypeInfo}, encode::IsNull, error::BoxDynError};
|
use sqlx::{Postgres, postgres::{PgArgumentBuffer, PgValueRef, PgTypeInfo}, encode::IsNull, error::BoxDynError};
|
||||||
|
|
||||||
use crate::domain::error::FromStrError;
|
use crate::domain::error::FromStrError;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
use std::{fmt::Display, str::FromStr};
|
use std::{fmt::Display, str::FromStr};
|
||||||
|
|
||||||
|
#[cfg(feature = "sqlx")]
|
||||||
use sqlx::{
|
use sqlx::{
|
||||||
encode::IsNull,
|
encode::IsNull,
|
||||||
error::BoxDynError,
|
error::BoxDynError,
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
pub mod impls;
|
pub mod impls;
|
||||||
pub mod readable;
|
pub mod readable;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue