8 releases (4 breaking)

Uses new Rust 2021

0.5.2+winfsp-1.11 Oct 17, 2022
0.5.1+winfsp-1.11 Sep 26, 2022
0.4.2+winfsp-1.11 Sep 25, 2022
0.3.1+winfsp-1.11 Sep 24, 2022
0.1.1+winfsp-1.11 Sep 22, 2022

#233 in Filesystem

Download history 27/week @ 2022-09-16 161/week @ 2022-09-23 71/week @ 2022-09-30 152/week @ 2022-10-07 27/week @ 2022-10-14 31/week @ 2022-10-21 10/week @ 2022-10-28 15/week @ 2022-11-04 13/week @ 2022-11-11 32/week @ 2022-11-18

85 downloads per month
Used in ntptfs-winfsp-rs

GPL-3.0 license

16K SLoC


Latest Version Docs License

Safe Rust bindings to WinFSP with examples.

⚠️ Use at your own risk ⚠️

A best effort has been made to keep Rust's aliasing rules in mind, and provide a safe and sound wrapper over WinFSP. However, FFI with WinFSP involves a lot of pointers that end up as references and the nature of FFI makes it difficult to test with miri. While ntptfs is used to test the correctness of the bindings and passes winfsp-tests-x64.exe --case-insensitive-cmp -volpath_mount_test, there is still a chance these bindings are unsound.

Please file a bug report if you encounter unsoundness when using the safe APIs of these bindings.


By default, winfsp-rs builds against an included import library. To build against the installed WinFSP libraries, enable the system feature. The path will automatically be determined via the Registry.

version = "0.5"
features = ["system"]


To enable delay-loading of WinFSP, add winfsp to build-dependencies and call winfsp::build::winfsp_link_delayload() in the build script.


winfsp = "0.5"


fn main() { 


Debug output can be enabled with the debug feature. Debug output will be written to standard output, and redirection of output is not configurable at this time.

features = ["debug"]

winfsp-rs is licensed under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.


WinFsp - Windows File System Proxy,

Copyright (C) Bill Zissimopoulos


~3M SLoC