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

#68 in Windows APIs

Download history 1916/week @ 2024-06-14 1462/week @ 2024-06-21 864/week @ 2024-06-28 2033/week @ 2024-07-05 854/week @ 2024-07-12 1807/week @ 2024-07-19 3307/week @ 2024-07-26 2614/week @ 2024-08-02 2455/week @ 2024-08-09 2073/week @ 2024-08-16 1988/week @ 2024-08-23 2469/week @ 2024-08-30 2593/week @ 2024-09-06 1975/week @ 2024-09-13 2109/week @ 2024-09-20 1778/week @ 2024-09-27

8,800 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

~79–330KB