mrdocument 0.5.3

Automatic PDF transcription and classification via OpenAI
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::error::Result;
use crate::profile_handler::ProfileHandler;
use crate::watcher::WatcherLoop;
use std::path::PathBuf;

pub async fn run_main_loop(path: PathBuf) -> Result<()> {
    log::info!("Watching profiles: {:?}", path);
    let watcher_loop = WatcherLoop::new(path.clone(), ProfileHandler::new(path), false).await?;

    Ok(watcher_loop.wait().await?)
}