8 releases

0.2.4 Jun 29, 2021
0.2.3 Jun 9, 2021
0.2.2 May 31, 2021
0.2.1 Apr 21, 2021
0.1.2 Jun 15, 2019

#70 in Windows APIs

Download history 2650/week @ 2024-08-04 2102/week @ 2024-08-11 2327/week @ 2024-08-18 2147/week @ 2024-08-25 2426/week @ 2024-09-01 2639/week @ 2024-09-08 1657/week @ 2024-09-15 2564/week @ 2024-09-22 1130/week @ 2024-09-29 1961/week @ 2024-10-06 2109/week @ 2024-10-13 1544/week @ 2024-10-20 1037/week @ 2024-10-27 2478/week @ 2024-11-03 1458/week @ 2024-11-10 955/week @ 2024-11-17

6,051 downloads per month
Used in 9 crates (2 directly)

MIT license

125KB
2.5K SLoC

Windows permissions

Safe Rust bindings to Windows permissions APIs.

Crates.io Docs.rs

Overview

This crate provides safe Rust wrappers over several Windows permissions concepts, including:

  • SID (Security Identifier)
  • ACL (Access Control List)
  • ACE (Access Control Entry)
  • SD (Security Descriptor)

There are two kinds of abstractions:

  • The primary Windows data structures are available and can be used directly.
  • In the wrappers crate, there are safe versions of the Windows API functions. Any Windows API function not implemented should be reported as an issue.

Contributing

PRs are happily accepted! In general, unsafe code should be confined to the wrappers module -- the rest of this crate should be implemented safely based on that code.

Help wanted:

  • Make wrappers more complete with additional Windows API functions
  • Add new data structures that cover more of the permissions APIs

Dependencies

~80–330KB