Дамјан Георгиевски
803ffc0c99
use futures::sync::mpsc::channel() with 4MB buffer
...
… instead of unbounded() with no limits in buffering
this should implement a back pressure, when the client can't read the
response fast enough, the thread creating the archive would block the
write, instead of filling the memory.
Use Sink::wait() to make a blocking Sender
2018-07-07 23:49:46 +02:00
Дамјан Георгиевски
62a99f8dc3
use just last part of pathname in the tar
...
Previously:
```
$ curl -s http://localhost:8000/target/release/build.tar -o - | tar tf -
target/release/build/rayon-core-b8ae11d289218da3
…
```
Now:
```
$ curl -s http://localhost:8000/target/release/build.tar -o - | tar tf -
build/rayon-core-b8ae11d289218da3
…
```
2018-07-07 23:47:35 +02:00
Дамјан Георгиевски
de0040512b
try to build smaller --release binaries
2018-07-05 18:04:11 +02:00
Дамјан Георгиевски
17a40e188a
forgot the second point
2018-07-05 17:57:12 +02:00
Дамјан Георгиевски
fd46bfb55a
refactor: split code in multiple files
...
… main.rs is now small enough to add cli args
2018-07-05 17:48:40 +02:00
Дамјан Георгиевски
b8f4607dba
fancier dir list template
2018-07-05 10:55:22 +02:00
Дамјан Георгиевски
591587649c
sort directories first, and then alphabetically by filename
2018-07-04 23:41:54 +02:00
Дамјан Георгиевски
a8fef98041
charset=utf-8
2018-07-04 23:31:02 +02:00
Дамјан Георгиевски
95adb78666
double quotes for html attribute values
2018-07-04 23:30:37 +02:00
Дамјан Георгиевски
46ffbeaa6e
implement streaming of a folder as a tar
2018-07-04 23:14:05 +02:00
Дамјан Георгиевски
b5533e1428
implement custom directory listing
2018-07-04 23:13:32 +02:00
Дамјан Георгиевски
27eec3f434
added some new dependencies
2018-07-04 23:11:57 +02:00
Дамјан Георгиевски
7845a4e3d7
first skeleton
2018-07-04 14:03:30 +02:00
Дамјан Георгиевски
7cd907b78d
initial idea commited
2018-07-04 13:57:42 +02:00