Exclude test_cfg module from SeaORM (#1077)

This commit is contained in:
Billy Chan 2022-10-06 23:45:09 +08:00 committed by GitHub
parent 7eaac3843d
commit 3c19d7c3e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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 = []

View File

@ -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;