Debian Codegraph @

third_party/rust/windows-strings/src/lib.rs

raw
1 /*!
2 Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs>
3 */
4
5 #![cfg(windows)]
6 #![allow(non_snake_case)]
7 #![cfg_attr(
8 windows_debugger_visualizer,
9 debugger_visualizer(natvis_file = "../.natvis")
10 )]
11 #![cfg_attr(all(not(feature = "std")), no_std)]
12
13 extern crate alloc;
14 use alloc::string::String;
15
16 pub use windows_result::Result;
17 use windows_result::*;
18
19 mod bstr;
20 pub use bstr::*;
21
22 mod hstring;
23 pub use hstring::*;
24
25 mod hstring_builder;
26 pub use hstring_builder::*;
27
28 mod hstring_header;
29 use hstring_header::*;
30
31 mod bindings;
32
33 mod decode;
34 use decode::*;
35
36 mod ref_count;
37 use ref_count::*;
38
39 mod literals;
40 pub use literals::*;
41
42 mod pcstr;
43 pub use pcstr::*;
44
45 mod pcwstr;
46 pub use pcwstr::*;
47
48 mod pstr;
49 pub use pstr::*;
50
51 mod pwstr;
52 pub use pwstr::*;
53
54 extern "C" {
55 fn strlen(s: PCSTR) -> usize;
56 }