1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! `tmpshare` is a tool to share files.
//!
//! ## Usage
//!
//! ```text
//! $ echo "Hello World" > hello-world
//!
//! $ tmpshare add hello-world
//! D2A84F4B8B650937EC8F73CD8BE2C74ADD5A911BA64DF27458ED8229DA804A26
//!
//! $ tmpshare list
//! D2A84F4B8B650937EC8F73CD8BE2C74ADD5A911BA64DF27458ED8229DA804A26: hello-world
//!
//! $ tmpshare serve
//! Serving from http://127.0.0.1:8080
//!
//! $ curl http://127.0.0.1:8080/get/D2A84F4B8B650937EC8F73CD8BE2C74ADD5A911BA64DF27458ED8229DA804A26
//! Hello World
//! ```
extern crate rocket;
extern crate chrono;
extern crate serde;
extern crate serde_json;
extern crate serde_derive;
extern crate structopt;
extern crate glob;
extern crate tempfile;
extern crate upspin;
extern crate failure;