Closed Hmikihiro closed 2 months ago
Thank you everyone for the contribution! This feature is now available in the latest release. Now is a good time to upgrade! Your participation is what makes us unique; your adoption is what drives us forward. You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.
Changes
[x] I add
#![cfg()]
to the beginning of files that have#[sea_orm_macros::test]
macros.When I run cargo test, Cl makes many warning such as unused_import. Those imports were compiled all time, but test function is compiled when future have "sqlx- ...".
#[sea_orm_macros::test]
attributes is expand to#[cfg(any( feature = "sqlx-mysql", feature = "sqlx-sqlite", feature = "sqlx-postgres" ))]
. So, I think that to reducecargo test
warnings, conditional compilation with the same condition that#[sea_orm_macros::test]
is needed for each file.