small_bin/
lib.rs

1//! Small
2
3#![forbid(unsafe_code)]
4
5//! Crate docs
6#![deny(
7    // missing_docs,
8    unstable_features,
9    missing_debug_implementations,
10    missing_copy_implementations,
11    trivial_casts,
12    trivial_numeric_casts,
13    unused_import_braces,
14    unused_qualifications
15)]
16#![allow(unused_imports, dead_code)]
17
18
19//
20// Public modules:
21//
22
23/// Configuration part of the app
24pub mod config;
25
26/// Sqlite db API
27pub mod database;
28/// MacOS Notifications
29pub mod notification;
30/// SFTP sync operations
31pub mod sftp;
32/// Utilities
33pub mod utils;
34/// Screenshot file watcher
35pub mod watcher;
36/// The local Web API
37pub mod webapi;
38
39/// Make the TEMP_PATTERN a lazy static
40use lazy_static::lazy_static;
41use regex::Regex;
42lazy_static! {
43    static ref TEMP_PATTERN: Regex = Regex::new(r".*-[a-zA-Z0-9]{4,}$").unwrap();
44}
45
46pub use tracing::{debug, error, info, instrument, trace, warn};
47pub use utils::*;
48
49//
50// Private modules:
51//
52
53#[cfg(test)]
54mod tests;