rusync
rusync copied to clipboard
Failed to build for wasm32-wasi target
Here is the error I am getting:
Compiling rusync v0.7.2
error[E0308]: mismatched types
--> /home/kdas/.cargo/registry/src/github.com-1ecc6299db9ec823/rusync-0.7.2/src/fsops.rs:86:42
|
86 | if dest_target != src_target {
| __________________________________________^
87 | | fs::remove_file(dest.path()).with_context(|| {
88 | | format!(
89 | | "Could not remove {} while updating link",
... |
93 | | outcome = SyncOutcome::SymlinkUpdated;
94 | | } else {
| |_____________^ expected enum `Result`, found `()`
|
= note: expected enum `Result<SyncOutcome, anyhow::Error>`
found unit type `()`
error[E0308]: mismatched types
--> /home/kdas/.cargo/registry/src/github.com-1ecc6299db9ec823/rusync-0.7.2/src/fsops.rs:105:17
|
105 | None => {
| _________________^
106 | | // OK, dest does not exist
107 | | outcome = SyncOutcome::SymlinkCreated;
108 | | }
| |_________^ expected enum `Result`, found `()`
|
= note: expected enum `Result<SyncOutcome, anyhow::Error>`
found unit type `()`
For more information about this error, try `rustc --explain E0308`.
error: could not compile `rusync` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Sorry I have to ask - is there a specific reason you want to compile rusync with wasm32-wasi?
It's only goal in life is to make syscalls, so targetting wasm may not be the best idea ...