filelocksmith 0.1.4

Detect what processes are locking a file or folder on Windows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fn main() {
    #[cfg(not(feature = "private-docs-rs"))]
    {
        let mut build = cc::Build::new();
        build.cpp(true);
        build.static_crt(true);
        build.include(r"PowerToys\src\modules\FileLocksmith\FileLocksmithLibInterop");
        build.file(r"PowerToys\src\modules\FileLocksmith\FileLocksmithLibInterop\FileLocksmith.cpp");
        build.file(r"PowerToys\src\modules\FileLocksmith\FileLocksmithLibInterop\NtdllBase.cpp");
        build.file(r"PowerToys\src\modules\FileLocksmith\FileLocksmithLibInterop\NtdllExtensions.cpp");
        build.file(r"src/interop.cpp");
        build.flag_if_supported("/std:c++17");
        build.compile("powertoys_locksmith");

        println!("cargo:rerun-if-changed=src/lib.rs");
        println!("cargo:rerun-if-changed=src/interop.cpp");
    }
}