diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a9d37c5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +target +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..861f132 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "lab_ebml" +version = "0.1.0" +authors = ["Tangent 128 "] + +[dependencies] +futures = "^0.1.7" diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..9194270 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,18 @@ + +extern crate futures; + +#[cfg(test)] +mod tests { + + use futures::future::{ok, Future}; + + #[test] + fn hello_futures() { + let my_future = ok::("Hello".into()) + .map(|hello| hello + ", Futures!"); + + let string_result = my_future.wait().unwrap(); + + assert_eq!(string_result, "Hello, Futures!"); + } +}