1
#[doc = include_str!(env!("NOMISYNC_DOC"))]
2
#[macro_use]
3
extern crate rust_i18n;
4

            
5
i18n!("locales", fallback = "en");
6

            
7
pub mod account;
8
pub mod commodity;
9
pub mod error;
10
#[cfg(test)]
11
mod error_tests;
12
pub mod price;
13
pub mod split;
14
pub mod tag;
15
pub mod transaction;
16
#[cfg(test)]
17
mod transaction_tests;
18

            
19
#[cfg(test)]
20
pub static MIGRATOR: sqlx::migrate::Migrator = sqlx::migrate!("../migrations");
21

            
22
#[cfg(all(test, feature = "testlog"))]
23
mod test_logging {
24
27
    pub(crate) fn init() {
25
27
        let _ = tracing_subscriber::fmt()
26
27
            .with_test_writer()
27
27
            .with_max_level(tracing::Level::TRACE)
28
27
            .try_init();
29
27
    }
30
}