diff --git a/libimagtodo/Cargo.toml b/libimagtodo/Cargo.toml index afc6c4f9..07059ac9 100644 --- a/libimagtodo/Cargo.toml +++ b/libimagtodo/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" authors = ["mario "] [dependencies] +semver = "0.2" task-hookrs = { git = "https://github.com/matthiasbeyer/task-hookrs.git" } [dependencies.libimagstore] diff --git a/libimagtodo/src/lib.rs b/libimagtodo/src/lib.rs index 4149a420..fdd29389 100644 --- a/libimagtodo/src/lib.rs +++ b/libimagtodo/src/lib.rs @@ -1,3 +1,4 @@ +extern crate semver; extern crate task_hookrs; #[macro_use] extern crate libimagstore; diff --git a/libimagtodo/src/task.rs b/libimagtodo/src/task.rs index 0dfa9c6f..5ff6bc5b 100644 --- a/libimagtodo/src/task.rs +++ b/libimagtodo/src/task.rs @@ -4,10 +4,17 @@ use task_hookrs::task::Task as TTask; use libimagstore::store::FileLockEntry; -pub struct Task { - uuid : str, +#[derive(Debug)] +pub struct Task<'a> { + flentry : FileLockEntry<'a>, } -impl Deref for Task { - +impl<'a> From for Task<'a> { + fn from(ttask : TTask) -> Task<'a> { + Task { + flentry : { + } + } + } } +