taskwarrior/src/lib.rs
2020-01-05 15:00:08 -05:00

28 lines
547 B
Rust

// TODO: remove this eventually when there's an API
#![allow(dead_code)]
#[macro_use]
extern crate failure;
mod errors;
mod operation;
mod replica;
mod server;
mod task;
mod taskdb;
pub mod taskstorage;
mod tdb2;
pub use operation::Operation;
pub use replica::Replica;
pub use server::Server;
pub use task::Task;
pub use taskdb::DB;
use failure::Fallible;
use std::io::BufRead;
// TODO: remove (artifact of merging projects)
pub fn parse(filename: &str, reader: impl BufRead) -> Fallible<Vec<Task>> {
Ok(tdb2::parse(filename, reader)?)
}