Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the status of fuse3? #1

Open
happybeing opened this issue Aug 2, 2020 · 8 comments
Open

What is the status of fuse3? #1

happybeing opened this issue Aug 2, 2020 · 8 comments

Comments

@happybeing
Copy link

I'm looking at Rust fuse libs for a distributed FS and wonder what is the status of fuse3?

cargo build in ./examples succeeds (with a handful of warnings) but am not sure how to run them?

cargo build in ./ fails with an error:

error[E0277]: the trait bound `(): std::future::Future` is not satisfied
  --> src/spawn.rs:16:38
   |
16 | pub fn spawn_blocking<F, T>(f: F) -> impl Future<Output = T>
   |                                      ^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `()`
   |
   = note: the return type of a function must have a statically known size

error: aborting due to previous error; 35 warnings emitted

For more information about this error, try `rustc --explain E0277`.
error: could not compile `fuse3`.

I'm still new to Rust so maybe missing something obvious. Thanks.

@Sherlock-Holo
Copy link
Owner

Sherlock-Holo commented Aug 2, 2020

this is a rust lib with some features, if you want to use it, you must enable the feature tokio-runtime or async-std-runtime.

in examples it enables feature async-std-runtime by default so cargo build will succeed

@happybeing
Copy link
Author

Thanks. How do I run the examples?

@Sherlock-Holo
Copy link
Owner

sorry for the late reply @happybeing .
cd into the example directory and run cargo run

@jason-ni
Copy link

jason-ni commented Mar 9, 2021

Hi @Sherlock-Holo

I tried to compile examples today and found an issue about RawFd:

the trait `std::os::unix::io::AsRawFd` is not implemented for `i32`

It's because I was using rust stable 1.47 version which lacks the fix of RawFd implementation: rust-lang/rust#76969. And after upgrade to 1.50, it can be compiled.

So I suggest you add a requirement of the rust toolchain version to avoid this pitfall.

And thank you for this great project I have been looking forward for a long time!

@Sherlock-Holo
Copy link
Owner

@jason-ni i always use the nightly version toolchains so never found this problem, thanks for your advice

@Sherlock-Holo
Copy link
Owner

the minimum rust version is added into the README @jason-ni

@jason-ni
Copy link

jason-ni commented Apr 5, 2021

Thank you!
Sorry for the late response. I saw that change days ago but missed the notification however.

@Sherlock-Holo
Copy link
Owner

Thank you!
Sorry for the late response. I saw that change days ago but missed the notification however.

I push some beta version for the new version, you can have a try for this and give me some advise if you found some api can be better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants