Debian Codegraph @

third_party/rust/winapi-util/README.md

raw
1 winapi-util
2 ===========
3 This crate provides a smattering of safe wrappers around various parts of the
4 [winapi](https://crates.io/crates/winapi) crate.
5
6 [![Build status](https://github.com/BurntSushi/winapi-util/workflows/ci/badge.svg)](https://github.com/BurntSushi/winapi-util/actions)
7 [![](http://meritbadge.herokuapp.com/winapi-util)](https://crates.io/crates/winapi-util)
8
9 Dual-licensed under MIT or the [UNLICENSE](http://unlicense.org).
10
11
12 ### Documentation
13
14 https://docs.rs/winapi-util
15
16
17 ### Usage
18
19 Add this to your `Cargo.toml`:
20
21 ```toml
22 [dependencies]
23 winapi-util = "0.1"
24 ```
25
26
27 ### Notes
28
29 This crate was born out of frustration with having to write lots of little
30 ffi utility bindings in a variety of crates in order to get Windows support.
31 Eventually, I started needing to copy & paste a lot of those utility routines.
32 Since they are utility routines, they often don't make sense to expose directly
33 in the crate in which they are defined. Instead of continuing this process,
34 I decided to make a crate instead.
35
36 Normally, I'm not a huge fan of "utility" crates like this that don't have a
37 well defined scope, but this is primarily a practical endeavor to make it
38 easier to isolate Windows specific ffi code.
39
40 While I don't have a long term vision for this crate, I will welcome additional
41 PRs that add more high level routines/types on an as-needed basis.
42
43 **WARNING:** I am not a Windows developer, so extra review to make sure I've
44 got things right is most appreciated.
45
46
47 ### Minimum Rust version policy
48
49 This crate's minimum supported `rustc` version is `1.34.0`.
50
51 The current policy is that the minimum Rust version required to use this crate
52 can be increased in non-breaking version updates. For example, if `crate 1.0`
53 requires Rust 1.20.0, then `crate 1.0.z` for all values of `z` will also
54 require Rust 1.20.0 or newer. However, `crate 1.y` for `y > 0` may require a
55 newer minimum version of Rust.
56
57 In general, this crate will be conservative with respect to the minimum
58 supported version of Rust.