-
Notifications
You must be signed in to change notification settings - Fork 128
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
Public constructors for Request
and Reply
types
#116
Comments
So much this. Trying to use rust-fuse as a library crate is all but impossible atm. Would this be a better suited task for implementing a high-level API? New to the library, and to Rust, and would really love to use rust-fuse in a project. Happy to contribute where I can. Many thanks in advance. |
Back then when rust-fuse was created, we intentionally chose to have no public constructors to ensure that implementations comply with what the kernel protocol requires. Nowadays the interface on the Rust side still works the same but looks a bit unusual. There's ongoing effort (e.g. in #90 and the |
I've been working on a new approach to testing crates that use rust-fuse. I'm using |
common::fs::Fs has unit tests for empty reads, but it's currently impossible to unit test fuse::fs because of zargony/fuse-rs#116 Reported-by: fsx
It would be nice to be able to unit test my filesystem's FUSE interface. Right now the only way to test it is to mount an actual filesystem and use the command line. But if rust-fuse did the following, then I would be able to write tests that hook into my filesystem's rust-fuse interface and exercise the whole API. This would require:
Default
forRequest
)Reply
types.Reply
types, for example to see the data stored byReplyData::data
.The text was updated successfully, but these errors were encountered: