cberner / fuser

Filesystem in Userspace (FUSE) for Rust
MIT License
836 stars 114 forks source link

Enum API with newtypes #138

Closed wmanley closed 1 year ago

wmanley commented 3 years ago

This is a tracking issue for the work I've been doing on enum based API.

The goal is to have an easier to use, more decoupled, more typesafe, more extensible and better documented API than is possible in languages with less powerful type-systems. I believe by exploiting Rust's type-system we can create a much nicer API than is possible in C (libfuse) or golang. This means using enums, newtypes, the the typestate pattern, ? based error handling, etc.

TODO

cberner commented 1 year ago

Closing due to inactivity, but feel free to re-open if you're still working on this.