Jiahao XU
72983e4113
Use untar
in extract_compressed_from_readable
...
So that we can specify the files we want to extract to avoid io and save
disk usage.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-09 13:26:47 +10:00
Jiahao XU
cc13a23b07
Mark all internal types & fn as pub(crate)
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-09 12:58:39 +10:00
Jiahao XU
c3b5cb11c2
Support for any PkgFmt
in AsyncFileWriter
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-09 01:20:37 +10:00
Jiahao XU
59544e8b55
Use BinstallError
in AsyncFileWriter
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-09 01:01:37 +10:00
Jiahao XU
f211788052
Impl ReadableRx
in mod receiver_as_readable
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-08 23:04:14 +10:00
Jiahao XU
894f9b49f9
Simplify AsyncFileWriter::new
: Ret Self
...
instead of `io::Result<Self>`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-08 22:29:04 +10:00
Jiahao XU
911c52d8e1
Auto remove file in AsyncFileWriter
...
unless done is called.
Also moves creation of the dir/file into the blocking thread to avoid
blocking.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-08 22:27:19 +10:00
Jiahao XU
358bea5c6d
Refactor: Extract AsyncFileWriter
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-08 21:43:09 +10:00