From 0f77c9d3d88724dbe5949bfc3c9d8e37c0009bd6 Mon Sep 17 00:00:00 2001 From: mario Date: Wed, 4 May 2016 15:00:48 +0200 Subject: [PATCH] experiment with Store/FileLockEntry --- libimagtodo/Cargo.toml | 1 + libimagtodo/src/lib.rs | 1 + libimagtodo/src/task.rs | 15 +++++++++++---- 3 files changed, 13 insertions(+), 4 deletions(-) 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 : { + } + } + } } +