added uuid crate and type

This commit is contained in:
Mario Krehl 2016-05-08 10:59:21 +02:00
parent 0f77c9d3d8
commit df6f41942b
3 changed files with 4 additions and 0 deletions

View file

@ -6,6 +6,7 @@ authors = ["mario <mario-krehl@gmx.de>"]
[dependencies] [dependencies]
semver = "0.2" semver = "0.2"
task-hookrs = { git = "https://github.com/matthiasbeyer/task-hookrs.git" } task-hookrs = { git = "https://github.com/matthiasbeyer/task-hookrs.git" }
uuid = "0.2.0"
[dependencies.libimagstore] [dependencies.libimagstore]
path = "../libimagstore" path = "../libimagstore"

View file

@ -1,4 +1,5 @@
extern crate semver; extern crate semver;
extern crate uuid;
extern crate task_hookrs; extern crate task_hookrs;
#[macro_use] extern crate libimagstore; #[macro_use] extern crate libimagstore;

View file

@ -1,5 +1,6 @@
use std::ops::Deref; use std::ops::Deref;
use uuid::Uuid;
use task_hookrs::task::Task as TTask; use task_hookrs::task::Task as TTask;
use libimagstore::store::FileLockEntry; use libimagstore::store::FileLockEntry;
@ -7,6 +8,7 @@ use libimagstore::store::FileLockEntry;
#[derive(Debug)] #[derive(Debug)]
pub struct Task<'a> { pub struct Task<'a> {
flentry : FileLockEntry<'a>, flentry : FileLockEntry<'a>,
uuid : Uuid,
} }
impl<'a> From<TTask> for Task<'a> { impl<'a> From<TTask> for Task<'a> {