tauri-plugin-indexer 0.1.1

a custom indexer (if the version is 1.0.0 then the plugin is ready)
Documentation
use std::fs::File;
use std::io::{BufRead};
use anyhow::Result;
use std::time::Instant;
use std::io;

pub fn read_doc_words(file_path: &str, line_to_read: usize) -> Result<Option<String>> {
    let file = File::open(file_path)?;
    let reader = io::BufReader::new(file);
    let start = Instant::now();
    // Iterate through each line and keep a counter
    for (current_line, line) in reader.lines().enumerate() {
        let line = line?;  // This will give us the actual line content
        // Skip empty lines
        if line.trim().is_empty() {
            continue;
        }
        if current_line == line_to_read {
            let duration = start.elapsed();
            println!("the  : found in : {:?}", duration);
            return Ok(Some(line.trim().to_string()));
        }
    }

    // If the line wasn't found, return None
    Ok(None)
}