diff --git a/Cargo.toml b/Cargo.toml index 358d491..dc9e631 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,6 @@ bincode = "1.3.3" rand = "0.8.5" [features] -default = ["all"] all = ["sqlx", "wasm"] sqlx = ["dep:sqlx"] wasm = ["uuid/js"] \ No newline at end of file diff --git a/src/domain/arrangement/impls.rs b/src/domain/arrangement/impls.rs index f265cad..72c2e87 100644 --- a/src/domain/arrangement/impls.rs +++ b/src/domain/arrangement/impls.rs @@ -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; diff --git a/src/domain/format/impls.rs b/src/domain/format/impls.rs index 2ba1e67..c8b6f6c 100644 --- a/src/domain/format/impls.rs +++ b/src/domain/format/impls.rs @@ -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; diff --git a/src/domain/thing_pk/impls.rs b/src/domain/thing_pk/impls.rs index f270b70..b360a2c 100644 --- a/src/domain/thing_pk/impls.rs +++ b/src/domain/thing_pk/impls.rs @@ -1,5 +1,6 @@ use std::{fmt::Display, str::FromStr}; +#[cfg(feature = "sqlx")] use sqlx::{ encode::IsNull, error::BoxDynError, diff --git a/src/traits/mod.rs b/src/traits/mod.rs index 8f96c81..7faba30 100644 --- a/src/traits/mod.rs +++ b/src/traits/mod.rs @@ -1,2 +1,3 @@ pub mod impls; pub mod readable; +