3 releases (breaking)

0.4.0 Feb 17, 2025
0.3.0 Aug 9, 2024
0.2.0 Mar 18, 2024

#182 in Windows APIs

Download history 252/week @ 2024-10-31 175/week @ 2024-11-07 112/week @ 2024-11-14 121/week @ 2024-11-21 119/week @ 2024-11-28 124/week @ 2024-12-05 154/week @ 2024-12-12 132/week @ 2024-12-19 58/week @ 2024-12-26 90/week @ 2025-01-02 120/week @ 2025-01-09 161/week @ 2025-01-16 95/week @ 2025-01-23 83/week @ 2025-01-30 175/week @ 2025-02-06 208/week @ 2025-02-13

570 downloads per month

MIT license

3KB

Winfsp Wrapper Rust

actions status

Requirements

WinFSP must be installed:

choco install winfsp

Run example

cargo run -p memfs my-mountpoint

Testing

Download winfsp-tests: https://github.com/winfsp/winfsp/releases/

winfsp-tests itself depends on WinFSP's DLL, hence the easiest way to avoid troubles is to put the winfsp-tests executable in the C:/Program Files (x86)/WinFsp/bin/ install folder (the alternative being to copy C:/Program Files (x86)/WinFsp/bin/winfsp-x64.dll in the directory where winfsp-tests executable resides).

Re-generate WinFSP bindgen code

(This is only needed when WinFSP headers change)

Rust bindgen CLI must be installed

cargo install bindgen-cli

On top of that, Clang is needed by rust-bindgen for parsing WinFSP C++ API headers.

To install Clang (also see rust-bindgen doc):

winget install LLVM.LLVM
set LIBCLANG_PATH="C:\Program Files\LLVM\bin"

Then to re-generate:

python scripts/generate_bindgen.py  winfsp_wrs_sys/src/gen.rs

No runtime deps