Download and run monero wallet rpc on swap cli startup

If the monero wallet rpc has not already been downloaded we download the monero cli package and extract the wallet rpc. The unneeded files are cleaned up. The monero wallet rpc is started on a random port which is provided to the swap cli.

We added a fork of tokio-tar via a git subtree because we needed a tokio-tar version that was compatible with tokio 1.0. Remove this subtree in favor of a regular cargo dependency when this PR merges: https://github.com/vorot93/tokio-tar/pull/3.
This commit is contained in:
rishflab 2021-02-24 18:08:25 +11:00 committed by Thomas Eizinger
parent 18ba8f49c4
commit 51c16f23d8
No known key found for this signature in database
GPG key ID: 651AC83A6C6C8B96
12 changed files with 354 additions and 52 deletions

View file

@ -777,7 +777,8 @@ impl Header {
#[cfg(windows)]
fn fill_platform_from(&mut self, meta: &Metadata, mode: HeaderMode) {
// There's no concept of a file mode on Windows, so do a best approximation here.
// There's no concept of a file mode on Windows, so do a best approximation
// here.
match mode {
HeaderMode::Complete => {
self.set_uid(0);
@ -1100,7 +1101,8 @@ impl GnuHeader {
truncate(&self.uname)
}
/// Gets the fullname (group:user) in a "lossy" way, used for error reporting ONLY.
/// Gets the fullname (group:user) in a "lossy" way, used for error
/// reporting ONLY.
fn fullname_lossy(&self) -> String {
format!(
"{}:{}",