feat: use rusty-tesseract as another backend

Also use OnceLock & LazyLock
This commit is contained in:
2024-01-05 20:18:54 +07:00
parent 950118aeb8
commit 0ada9f6e46
11 changed files with 259 additions and 85 deletions

View File

@ -1,3 +1,4 @@
#![feature(lazy_cell)]
pub use log;
pub use tracing::{debug, error, info, trace, warn};
use tracing_subscriber::{self, fmt, EnvFilter};
@ -10,6 +11,7 @@ pub fn setup_logger(level: &str) -> Result<(), fern::InitError> {
.with_level(true)
.with_target(true)
.with_thread_ids(false)
.with_line_number(true)
.with_thread_names(false);
let filter = EnvFilter::builder()
.from_env()