Zig FUSE daemon library.
Create and mount userspace file systems in Linux with Zig. Learn more about FUSE on the Linux kernel website.
- This library is only targetted at Linux for now but I'm open to contributions for other platforms.
hello.zig - a simple "Hello world" file system with read and write examples.
To run an example, clone this repository and run zig build example-<name> -- <args>
e.g. mkdir /tmp/hello && zig build example-hello -- /tmp/hello
.
- Fetch fuse.zig:
zig fetch --save "git+https://github.com/PondWader/fuse.zig#main"
- Add a
fusez
import in yourbuild.zig
:
const fusez = b.dependency("fusez", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("fusez", fusez.module("fusez"));