Skip to content

Commit

Permalink
Exclude test_cfg module from SeaORM (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 authored Oct 6, 2022
1 parent 7eaac38 commit 3c19d7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }

Expand Down Expand Up @@ -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 = []
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3c19d7c

Please sign in to comment.