Nathan Fisher
641eff3378
Fix some clippy lints
2023-04-18 17:48:40 -04:00
Nathan Fisher
1e7a02e33d
Moved hpk-package all the way back into tree, fixed some clippy lints
2023-04-16 10:36:43 -04:00
Nathan Fisher
c36b3b14ab
Use `try_for_each_with` in `Installer::install` to avoid using a mutex
...
on the Sender.
2023-04-12 11:25:12 -04:00
Nathan Fisher
d3b5d096e5
Use `try_for_each_with` in Creator::create in order to avoid putting
...
Sender in a mutex and return errors rather than passing messages
2023-04-12 11:15:13 -04:00
Nathan Fisher
13dff6bd96
Get basic package installation implemented, with several TODOS left.
2023-04-11 14:05:37 -04:00
Nathan Fisher
ca9c0d7cdb
Skip directories when creating a package from directory; Take an
...
optional directory when creating a package from file list;
2023-04-06 10:41:10 -04:00
Nathan Fisher
082c215b44
Split out hpk-package into separate crate; Implement Repository::build()
2023-04-03 19:02:15 -04:00
Nathan Fisher
9126e1da93
Version - use tuple types instead of structs for less verbosity
2023-04-01 11:02:29 -04:00
Nathan Fisher
eae02ce616
Clean up imports after last commit
2023-03-30 19:07:12 -04:00
Nathan Fisher
71a87a506e
Adjust `Creator` struct to use Vec<PathBuf> instead of Vec<DirEntry>;
...
Add `from_list` method for `Creator`
2023-03-30 18:43:11 -04:00
Nathan Fisher
0a94691685
Small tweak in message passing
2023-03-28 20:41:03 -04:00
Nathan Fisher
3a5174c521
Added `len` method to `Creator`
2023-03-28 17:34:14 -04:00
Nathan Fisher
026e8599a5
Move `cli` into module rather than workspace member
2023-03-28 00:16:12 -04:00
Nathan Fisher
e1f7fbe4fe
Fix bugs in `Creator` so that it works now
2023-03-28 00:09:16 -04:00
Nathan Fisher
3b88759665
Cleaned up imports from previous commit
2023-03-27 03:26:51 -04:00
Nathan Fisher
39b8664c9e
Added package `Creator` struct, with `create` method to process package
...
entries fully multithreaded including compressing into the archive, as
well as passing messages through an mpsc::channel() interface for use in
a background thread in various frontends. Much better suited to task
than previous `create_package` function. Untested.
2023-03-27 03:18:20 -04:00