From 3c19d7c3e4b237d255b670741e400b4d29852d58 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Thu, 6 Oct 2022 23:45:09 +0800 Subject: [PATCH] Exclude test_cfg module from SeaORM (#1077) --- Cargo.toml | 3 ++- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f119bc75..e7215b0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,7 +53,7 @@ actix-rt = { version = "2.2.0" } maplit = { version = "^1" } rust_decimal_macros = { version = "^1" } tracing-subscriber = { version = "0.3", features = ["env-filter"] } -sea-orm = { path = ".", features = ["mock", "debug-print"] } +sea-orm = { path = ".", features = ["mock", "debug-print", "tests-cfg"] } pretty_assertions = { version = "^0.7" } time = { version = "^0.3", features = ["macros"] } @@ -94,3 +94,4 @@ runtime-actix-rustls = ["sqlx/runtime-actix-rustls", "runtime-actix"] runtime-tokio = [] runtime-tokio-native-tls = ["sqlx/runtime-tokio-native-tls", "runtime-tokio"] runtime-tokio-rustls = ["sqlx/runtime-tokio-rustls", "runtime-tokio"] +tests-cfg = [] diff --git a/src/lib.rs b/src/lib.rs index 2162fcc5..9c93b9d6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -323,7 +323,7 @@ pub mod query; /// Holds types that defines the schemas of an Entity pub mod schema; #[doc(hidden)] -#[cfg(feature = "macros")] +#[cfg(all(feature = "macros", feature = "tests-cfg"))] pub mod tests_cfg; mod util;