diff options
author | Katharina Fey <kookie@spacekookie.de> | 2018-06-09 13:05:59 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2018-06-09 13:05:59 +0200 |
commit | 7ca8460f324387a28b991342cdae1ab1a3b70050 (patch) | |
tree | 681e2cf5868bdf8c71939b6862870b6237159db3 /lockchain-server/src/main.rs | |
parent | a7a4df2dc1a8df878db19abe9c6ee894a3342532 (diff) |
Tweaking the lockchain-http API, adding some constraints on vault traits
Diffstat (limited to '')
-rw-r--r-- | lockchain-server/src/main.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lockchain-server/src/main.rs b/lockchain-server/src/main.rs index 00fc430..748fcc0 100644 --- a/lockchain-server/src/main.rs +++ b/lockchain-server/src/main.rs @@ -4,7 +4,18 @@ extern crate lockchain_http as http; extern crate clap; +use files::*; +use http::*; +use lockchain::traits::*; +use lockchain::EncryptedBody; + +fn foo() -> DataVault<EncryptedBody> { + DataVault::new("name", "location") +} fn main() { - println!("Hello, world!"); + let server = create_server(foo()); + server.run(); + + println!("After the server died!"); } |