rucksack-db 0.8.0

The rucksack encrypted database
Documentation
1
2
3
4
5
6
7
8
9
10
use std::io::Cursor;

use anyhow::{Error, Result};

use rucksack_lib::util;

pub fn from_path(path: String) -> Result<csv::Reader<Cursor<Vec<u8>>>, Error> {
    let bytes = util::read_file(path)?;
    Ok(csv::Reader::from_reader(Cursor::new(bytes)))
}