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

#71 in Windows APIs

Download history 1808/week @ 2023-12-11 3850/week @ 2023-12-18 973/week @ 2023-12-25 2900/week @ 2024-01-01 2652/week @ 2024-01-08 3802/week @ 2024-01-15 3564/week @ 2024-01-22 2264/week @ 2024-01-29 1856/week @ 2024-02-05 2974/week @ 2024-02-12 2606/week @ 2024-02-19 3228/week @ 2024-02-26 1788/week @ 2024-03-04 2989/week @ 2024-03-11 2610/week @ 2024-03-18 2229/week @ 2024-03-25

9,717 downloads per month
Used in 8 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

~60–315KB