commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
962d0a9f19d049a37f704b8ea3c7ab7efd1d95cb
Kenny Kerr
2022-10-18T18:57:52
Simpler non-COM interface code gen (#2103)
diff --git a/crates/libs/bindgen/src/interfaces.rs b/crates/libs/bindgen/src/interfaces.rs index 829ae172b..f3afda697 100644 --- a/crates/libs/bindgen/src/interfaces.rs +++ b/crates/libs/bindgen/src/interfaces.rs @@ -51,18 +51,6 @@ fn gen_win_interface(gen: &Gen, def: TypeDef) -> TokenStream { #features ...
14
52
415
67564c7790aea03e367eaeea65e535b02471e158
kaivol
2022-10-11T13:37:43
Fix new `clippy` warnings (#2090)
diff --git a/crates/libs/metadata/src/reader/mod.rs b/crates/libs/metadata/src/reader/mod.rs index dce4e1969..722f2fec1 100644 --- a/crates/libs/metadata/src/reader/mod.rs +++ b/crates/libs/metadata/src/reader/mod.rs @@ -260,7 +260,7 @@ impl<'a> Reader<'a> { let _this_and_gen_param_count = sig.read_usize(); ...
4
5
4
d3148198e14e9b3bbd5cfe3e6c82bcd116b76fb1
Kenny Kerr
2022-10-05T16:07:48
Suppress fewer warnings (#2085)
diff --git a/crates/libs/bindgen/src/lib.rs b/crates/libs/bindgen/src/lib.rs index 4f54f1fe1..ae593704e 100644 --- a/crates/libs/bindgen/src/lib.rs +++ b/crates/libs/bindgen/src/lib.rs @@ -25,7 +25,7 @@ pub fn namespace(gen: &Gen, tree: &Tree) -> String { if tree.namespace == "Windows" { tokens.combine(...
4
4
3
931a9f670b551cca907190ee569366854e1ec7c7
Kenny Kerr
2022-10-03T14:58:47
Fix D3D12 sample (#2084)
diff --git a/crates/samples/direct3d12/src/main.rs b/crates/samples/direct3d12/src/main.rs index 6618d80ba..9f5cb0e79 100644 --- a/crates/samples/direct3d12/src/main.rs +++ b/crates/samples/direct3d12/src/main.rs @@ -426,17 +426,17 @@ mod d3d12_hello_triangle { let asset_path = exe_path.parent().unwrap(); ...
1
5
5
e067fab9f16ae8cfd9ca7acdc4d0c9a94c8e7fb9
Kenny Kerr
2022-09-29T15:22:32
Improve `windows::core::Error` formatting (#2075)
diff --git a/crates/libs/windows/src/core/error.rs b/crates/libs/windows/src/core/error.rs index 37474934c..5b299b3ad 100644 --- a/crates/libs/windows/src/core/error.rs +++ b/crates/libs/windows/src/core/error.rs @@ -132,13 +132,18 @@ impl std::convert::From<HRESULT> for Error { impl std::fmt::Debug for Error { f...
8
33
7
1071bdbb35bc127d0bfeedfd28c76afcd23e6a3e
Kenny Kerr
2022-09-28T16:31:09
Improve core string type testing (#2074)
diff --git a/crates/libs/windows/src/core/bindings.rs b/crates/libs/windows/src/core/bindings.rs index d1eed5174..513a2f7f8 100644 --- a/crates/libs/windows/src/core/bindings.rs +++ b/crates/libs/windows/src/core/bindings.rs @@ -32,6 +32,7 @@ pub const FORMAT_MESSAGE_FROM_SYSTEM: u32 = 4096; pub const FORMAT_MESSAGE_I...
7
82
0
d0ab3b55d39a525e5b9d16a994d14ec5b46c69ae
Kenny Kerr
2022-09-23T21:36:37
Add `windows-sys` test coverage (#2063)
diff --git a/crates/tests/arch/Cargo.toml b/crates/tests/arch/Cargo.toml index f1b2a8116..e3c7c7c6d 100644 --- a/crates/tests/arch/Cargo.toml +++ b/crates/tests/arch/Cargo.toml @@ -9,3 +9,9 @@ path = "../../libs/windows" features = [ "Win32_System_Diagnostics_Debug", ] + +[dependencies.windows-sys] +path = "../....
19
316
26
a99189b4782f7ba8bb34b58e8a812a3cdedfcab6
Kenny Kerr
2022-09-22T18:13:17
Exclude default `winmd` files from `windows-metadata` crate (#2060)
diff --git a/crates/libs/metadata/Cargo.toml b/crates/libs/metadata/Cargo.toml index 607bf3bcc..c86dcec88 100644 --- a/crates/libs/metadata/Cargo.toml +++ b/crates/libs/metadata/Cargo.toml @@ -6,6 +6,7 @@ edition = "2018" license = "MIT OR Apache-2.0" description = "Code gen support for the windows crate" repository...
1
1
0
b13b328d574d9da95da1496e39dbb01453390063
Chris Denton
2022-09-22T13:24:03
Fix `HSTRING` to conform to Rust's aliasing rules (#2057)
diff --git a/crates/libs/windows/src/core/strings/hstring.rs b/crates/libs/windows/src/core/strings/hstring.rs index 4103ae54a..cc9fee8c5 100644 --- a/crates/libs/windows/src/core/strings/hstring.rs +++ b/crates/libs/windows/src/core/strings/hstring.rs @@ -408,11 +408,11 @@ impl Header { header } - f...
1
2
2
c4a48b3c00e8a7468184a8301628dd222b361d3e
Kenny Kerr
2022-09-19T19:19:55
Harden win32 array support to avoid conflicting metadata (#2035)
diff --git a/crates/libs/bindgen/src/gen.rs b/crates/libs/bindgen/src/gen.rs index c9558ad3d..5f50b97c4 100644 --- a/crates/libs/bindgen/src/gen.rs +++ b/crates/libs/bindgen/src/gen.rs @@ -940,22 +940,20 @@ impl<'a> Gen<'a> { let name = self.param_name(param.def); if let ArrayInfo::Fixed(fix...
3
24
21
9fe618a56da15cf3b9da08c198e90cf25f0d3bcc
Kenny Kerr
2022-09-16T17:05:01
Remove win32metadata workaround (#2021)
diff --git a/crates/libs/bindgen/src/structs.rs b/crates/libs/bindgen/src/structs.rs index a6ae49ef6..9f7910fdf 100644 --- a/crates/libs/bindgen/src/structs.rs +++ b/crates/libs/bindgen/src/structs.rs @@ -16,15 +16,10 @@ fn gen_struct_with_name(gen: &Gen, def: TypeDef, struct_name: &str, cfg: &Cfg) - let name = to...
1
4
9
0fa0290ca59d77955027697bbcf792d1891e95c1
Kenny Kerr
2022-09-12T17:05:03
Remove win32metadata workarounds (#2017)
diff --git a/crates/libs/bindgen/src/implements.rs b/crates/libs/bindgen/src/implements.rs index ca3f61817..59e0b24fe 100644 --- a/crates/libs/bindgen/src/implements.rs +++ b/crates/libs/bindgen/src/implements.rs @@ -5,10 +5,6 @@ pub fn gen(gen: &Gen, def: TypeDef) -> TokenStream { return quote! {}; } -...
10
13
32
61bc313a462d595cf9a1a98e86f3659b4e9c5d98
Kenny Kerr
2022-09-08T13:16:19
Adds `unsafe` helpers to cast from C++ or raw `IUnknown` pointers to Rust `IUnknown` values (#2010)
diff --git a/crates/libs/windows/src/core/interface.rs b/crates/libs/windows/src/core/interface.rs index 01e872518..4c72aa0f4 100644 --- a/crates/libs/windows/src/core/interface.rs +++ b/crates/libs/windows/src/core/interface.rs @@ -33,13 +33,41 @@ pub unsafe trait Interface: Sized { unsafe { self.query(&T::II...
3
110
1
2db98c7d8c7bda617ee6a3c77260623675e6e1fd
Geoffry Song
2022-09-08T12:53:31
Use `$crate` in `s!` and `w!` macros (#2011)
diff --git a/crates/libs/windows/src/core/strings/literals.rs b/crates/libs/windows/src/core/strings/literals.rs index 56458cbe1..08ef211a8 100644 --- a/crates/libs/windows/src/core/strings/literals.rs +++ b/crates/libs/windows/src/core/strings/literals.rs @@ -2,7 +2,7 @@ #[macro_export] macro_rules! s { ($s:lit...
1
6
6
874960a0d38ffcd96351d554654ba95436667e36
Kenny Kerr
2022-09-02T17:21:21
Address nightly clippy warnings (#2000)
diff --git a/crates/tools/gnu/src/main.rs b/crates/tools/gnu/src/main.rs index ca33e8330..632b6774c 100644 --- a/crates/tools/gnu/src/main.rs +++ b/crates/tools/gnu/src/main.rs @@ -71,7 +71,7 @@ EXPORTS drop(def); let mut cmd = std::process::Command::new("dlltool"); - cmd.current_dir(&output); + cmd.c...
2
5
5
ad4060d394c96b52e26530cd0ec19994e7b17d4e
Kenny Kerr
2022-09-02T15:10:14
Fix nightly clippy warning
diff --git a/crates/libs/metadata/src/reader/file.rs b/crates/libs/metadata/src/reader/file.rs index cbbb94912..c31c16f4e 100644 --- a/crates/libs/metadata/src/reader/file.rs +++ b/crates/libs/metadata/src/reader/file.rs @@ -55,7 +55,7 @@ impl File { pub fn new(path: &str) -> Result<Self> { let path = std...
1
1
1
60910cf266584e058fa4fe8a09186986383ed18a
Kenny Kerr
2022-08-31T18:01:38
Remove unused `bindgen` options (#1994)
diff --git a/crates/libs/bindgen/src/classes.rs b/crates/libs/bindgen/src/classes.rs index c78ee6f2c..60f4030f2 100644 --- a/crates/libs/bindgen/src/classes.rs +++ b/crates/libs/bindgen/src/classes.rs @@ -32,10 +32,6 @@ fn gen_class(gen: &Gen, def: TypeDef) -> TokenStream { for interface in &interfaces { ...
5
11
51
9a1c0652ab755be059f352e1e37330b40c461c9d
Kenny Kerr
2022-08-26T15:41:52
Implement `Debug` for `AgileReference` (#1986)
diff --git a/crates/libs/windows/src/core/agile_reference.rs b/crates/libs/windows/src/core/agile_reference.rs index d72ad2e28..c6350390f 100644 --- a/crates/libs/windows/src/core/agile_reference.rs +++ b/crates/libs/windows/src/core/agile_reference.rs @@ -22,3 +22,9 @@ impl<T: Interface> AgileReference<T> { unsafe ...
2
19
2
30f1ee38731e62c6a8ad0dffeb7299e34d918ca8
Kenny Kerr
2022-08-22T18:38:11
Remove unused binding (#1976)
diff --git a/crates/libs/windows/src/core/bindings.rs b/crates/libs/windows/src/core/bindings.rs index 771b24587..ebdc91344 100644 --- a/crates/libs/windows/src/core/bindings.rs +++ b/crates/libs/windows/src/core/bindings.rs @@ -1363,17 +1363,6 @@ unsafe impl ::windows::core::Abi for HINSTANCE { } pub const S_OK: ::w...
2
0
12
4e188c3ce66bbe338c951a1004f82b7512b02bb5
Rafael Rivera
2022-08-05T15:05:17
Remove unnecessary parentheses (#1949)
diff --git a/crates/libs/metadata/src/reader/codes.rs b/crates/libs/metadata/src/reader/codes.rs index a9e498a05..a6cfa4885 100644 --- a/crates/libs/metadata/src/reader/codes.rs +++ b/crates/libs/metadata/src/reader/codes.rs @@ -33,7 +33,7 @@ pub enum HasAttribute { impl HasAttribute { pub fn encode(&self) -> usi...
2
6
6
104ecd6e21716ef3e84c3ae36f6e66e596c7ca70
Kenny Kerr
2022-08-02T11:20:02
remove dead code (#1943)
diff --git a/crates/libs/windows/src/core/heap.rs b/crates/libs/windows/src/core/heap.rs index 791c10f96..5a56717f2 100644 --- a/crates/libs/windows/src/core/heap.rs +++ b/crates/libs/windows/src/core/heap.rs @@ -37,33 +37,3 @@ pub unsafe fn heap_free(ptr: *mut core::ffi::c_void) { HeapFree(heap, HEAP_NONE, pt...
1
0
30
181ee67c24d03ec171e2625f28341339d70b6bda
Kenny Kerr
2022-07-25T17:34:40
Declare `rust-version` for `windows-interface` crate (#1930)
diff --git a/crates/libs/interface/Cargo.toml b/crates/libs/interface/Cargo.toml index 25f5623fc..0acba35fb 100644 --- a/crates/libs/interface/Cargo.toml +++ b/crates/libs/interface/Cargo.toml @@ -6,6 +6,7 @@ authors = ["Microsoft"] license = "MIT OR Apache-2.0" description = "The interface macro for the windows crat...
1
1
0
20b2cdd10391026a95307e2d61c998b05dfd59e7
Kenny Kerr
2022-07-25T08:41:38
consistent (#1931)
diff --git a/crates/libs/implement/Cargo.toml b/crates/libs/implement/Cargo.toml index 8e983c69d..e229d6ece 100644 --- a/crates/libs/implement/Cargo.toml +++ b/crates/libs/implement/Cargo.toml @@ -17,4 +17,5 @@ proc-macro = true [dependencies] syn = { version = "1.0", default-features = false, features = ["parsing"...
2
45
58
a84560c3a295fa24acaa26b79f86e04228826d94
Ben Kuhn
2022-07-22T17:20:28
Adding documentation for factory (#1936)
diff --git a/crates/libs/windows/src/core/factory_cache.rs b/crates/libs/windows/src/core/factory_cache.rs index c0a69955c..5c12a3e69 100644 --- a/crates/libs/windows/src/core/factory_cache.rs +++ b/crates/libs/windows/src/core/factory_cache.rs @@ -47,7 +47,8 @@ impl<C: RuntimeName, I: Interface> FactoryCache<C, I> { ...
2
2
2
bc761e3d6b17fe2d53d020a9f7e622a3b53c9a4d
Arpad Borsos
2022-07-21T16:07:43
Replace unsafe `strlen` usage in metadata library with safe Rust (#1926)
diff --git a/crates/libs/metadata/src/imp.rs b/crates/libs/metadata/src/imp.rs index 4c380fd4d..27a735a45 100644 --- a/crates/libs/metadata/src/imp.rs +++ b/crates/libs/metadata/src/imp.rs @@ -13,10 +13,6 @@ pub struct METADATA_HEADER { pub const METADATA_SIGNATURE: u32 = 0x424A_5342; -extern "C" { - pub fn str...
2
12
8
14a951707c0e8ac6b188cdd9e5572297880415ac
Kenny Kerr
2022-07-18T17:15:38
Fix new nightly warning about unused return value (#1917)
diff --git a/crates/libs/bindgen/src/delegates.rs b/crates/libs/bindgen/src/delegates.rs index ca7ed2855..e0cc71cf9 100644 --- a/crates/libs/bindgen/src/delegates.rs +++ b/crates/libs/bindgen/src/delegates.rs @@ -129,7 +129,7 @@ fn gen_win_delegate(gen: &Gen, def: TypeDef) -> TokenStream { let remainin...
33
73
73
8c093b433cc80bb90156048061589bf05ebf37c2
Ryan Levick
2022-07-13T16:18:26
Add `display` methods for string pointer types (#1904)
diff --git a/crates/libs/windows/src/core/strings/literals.rs b/crates/libs/windows/src/core/strings/literals.rs index 147f6a8da..56458cbe1 100644 --- a/crates/libs/windows/src/core/strings/literals.rs +++ b/crates/libs/windows/src/core/strings/literals.rs @@ -24,7 +24,7 @@ macro_rules! w { let mut...
7
124
18
d734f1d0d1a1f5c73d41e8a2036e1b83be508f6c
Ryan Levick
2022-07-13T15:22:52
Remove dead code (#1905)
diff --git a/crates/libs/metadata/src/reader/mod.rs b/crates/libs/metadata/src/reader/mod.rs index 0159f5076..1c43bbce4 100644 --- a/crates/libs/metadata/src/reader/mod.rs +++ b/crates/libs/metadata/src/reader/mod.rs @@ -1548,12 +1548,6 @@ impl<'a> Reader<'a> { _ => false, } } - pub fn typ...
1
0
12
73e4130d3d29e1d2a145846d34f0cb89659fef27
Ryan Levick
2022-07-13T01:38:04
Small refactor (#1899)
diff --git a/crates/libs/bindgen/src/gen.rs b/crates/libs/bindgen/src/gen.rs index e282649ee..6c513b414 100644 --- a/crates/libs/bindgen/src/gen.rs +++ b/crates/libs/bindgen/src/gen.rs @@ -886,56 +886,48 @@ impl<'a> Gen<'a> { let mut tokens = quote! {}; for (position, param) in params.iter().enumera...
1
28
36
2958457d18f177faf524d7c4832afa30b4fd4b96
Ryan Levick
2022-07-12T22:39:48
Improve string pointer types (#1897)
diff --git a/crates/libs/windows/src/core/delay_load.rs b/crates/libs/windows/src/core/delay_load.rs index ed14c0b34..311d7ea7a 100644 --- a/crates/libs/windows/src/core/delay_load.rs +++ b/crates/libs/windows/src/core/delay_load.rs @@ -8,10 +8,10 @@ use bindings::*; /// # Safety /// /// * Both the library and funct...
30
308
289
ef9b9a3e27d154ef34e9fd7b45f18a81521b4262
Kenny Kerr
2022-07-12T18:01:48
Update samples to use string literal macros (#1894)
diff --git a/crates/libs/windows/src/core/literals.rs b/crates/libs/windows/src/core/literals.rs index a3a1d969c..e690f5730 100644 --- a/crates/libs/windows/src/core/literals.rs +++ b/crates/libs/windows/src/core/literals.rs @@ -48,6 +48,10 @@ macro_rules! w { }}; } +// Ensures that the macros are exported from...
17
50
22
1493e96ded27c931518e5ed89db1f87ac2c7522b
Ryan Levick
2022-07-11T16:22:58
Use prettyplease for development formatting (#1849)
diff --git a/crates/tools/lib/Cargo.toml b/crates/tools/lib/Cargo.toml index ef5e6ba93..6fa814089 100644 --- a/crates/tools/lib/Cargo.toml +++ b/crates/tools/lib/Cargo.toml @@ -6,3 +6,5 @@ publish = false [dependencies] metadata = { package = "windows-metadata", path = "../../libs/metadata" } +prettyplease = "0.1" ...
4
24
8
9a94534ebd4825f0350ab3466ec8fa2c6f138bfa
Kenny Kerr
2022-07-06T16:04:11
Fix merge
diff --git a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs index b3bdb28ba..818c5e177 100644 --- a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs @@ -4985,7 +4985,7 @@ pub const NTE...
1
1
1
cdb5293e84f8751ab84fdb582367f39e961ba883
Kenny Kerr
2022-07-06T14:07:54
Basic field and constant metadata generation (#1871)
diff --git a/crates/libs/metadata/Cargo.toml b/crates/libs/metadata/Cargo.toml index 441910009..b5c4931fa 100644 --- a/crates/libs/metadata/Cargo.toml +++ b/crates/libs/metadata/Cargo.toml @@ -10,11 +10,3 @@ repository = "https://github.com/microsoft/windows-rs" [package.metadata.docs.rs] default-target = "x86_64-pc-...
17
427
55
f6e51fa153dd54b2a262c2875828940d5f74afc2
Marijn Suijten
2022-07-02T14:15:22
Fix new Rust-1.62 lints (#1866)
diff --git a/crates/libs/bindgen/src/gen.rs b/crates/libs/bindgen/src/gen.rs index f4e6e4b3f..47c42b66e 100644 --- a/crates/libs/bindgen/src/gen.rs +++ b/crates/libs/bindgen/src/gen.rs @@ -303,7 +303,7 @@ impl<'a> Gen<'a> { let mut features = cfg_features(cfg, self.namespace); if self.window...
2
4
4
4c7ae6bdc0338e2aee9b578b64306b4696816acf
Kenny Kerr
2022-06-22T20:09:53
Version 0.38.0
diff --git a/crates/libs/metadata/Cargo.toml b/crates/libs/metadata/Cargo.toml index 4b124945c..334d22ba2 100644 --- a/crates/libs/metadata/Cargo.toml +++ b/crates/libs/metadata/Cargo.toml @@ -12,8 +12,7 @@ default-target = "x86_64-pc-windows-msvc" targets = [] [dependencies.windows-sys] -path = "../sys" -version =...
1
1
2
0fafaeda4ddf2067503db7a1e1bbe30aa9b18935
Kenny Kerr
2022-06-22T18:32:54
Add `component` helper function to simplify component development (#1840)
diff --git a/crates/libs/bindgen/src/lib.rs b/crates/libs/bindgen/src/lib.rs index 620e360a4..060c60106 100644 --- a/crates/libs/bindgen/src/lib.rs +++ b/crates/libs/bindgen/src/lib.rs @@ -134,6 +134,17 @@ pub fn namespace_impl(gen: &Gen, tree: &Tree) -> String { tokens.into_string() } +pub fn component(namespa...
4
49
28
d3eee4a51e8c5975f2398c679525a040a61ecb35
Kenny Kerr
2022-06-15T21:56:47
Basic metadata generation (#1820)
diff --git a/crates/libs/bindgen/src/structs.rs b/crates/libs/bindgen/src/structs.rs index d3c65532b..f6bdaa3a8 100644 --- a/crates/libs/bindgen/src/structs.rs +++ b/crates/libs/bindgen/src/structs.rs @@ -54,14 +54,14 @@ fn gen_struct_with_name(gen: &Gen, def: TypeDef, struct_name: &str, cfg: &Cfg) - if gen....
17
379
130
22fc69dfd0e09af4fa428a3b07fdc0760b41e8d1
Kenny Kerr
2022-06-13T14:41:07
Minor improvements to `windows::core::Event` (#1814)
diff --git a/crates/libs/windows/src/core/event.rs b/crates/libs/windows/src/core/event.rs index 0e0b58779..2765e046c 100644 --- a/crates/libs/windows/src/core/event.rs +++ b/crates/libs/windows/src/core/event.rs @@ -23,6 +23,7 @@ impl<T: Interface + Clone> Event<T> { pub fn new() -> Self { Self { delegat...
1
39
28
c7ebc248c2964ad76d87843223ba303441fabbf1
Kenny Kerr
2022-06-10T14:13:13
Avoid string allocations in `Cfg` (#1812)
diff --git a/crates/libs/metadata/src/reader/mod.rs b/crates/libs/metadata/src/reader/mod.rs index d56f9f21f..a6a1942ba 100644 --- a/crates/libs/metadata/src/reader/mod.rs +++ b/crates/libs/metadata/src/reader/mod.rs @@ -132,23 +132,22 @@ pub struct SignatureParam { } #[derive(Default, Clone)] -pub struct Cfg { - ...
1
13
14
11a2db2a161c5bef674573ac4e2121e8c045c708
Kenny Kerr
2022-06-09T15:26:21
rposition (#1810)
diff --git a/crates/libs/metadata/src/reader/mod.rs b/crates/libs/metadata/src/reader/mod.rs index 0c3097d2d..d56f9f21f 100644 --- a/crates/libs/metadata/src/reader/mod.rs +++ b/crates/libs/metadata/src/reader/mod.rs @@ -1206,20 +1206,10 @@ impl<'a> Reader<'a> { SignatureKind::ReturnVoid } fn signatu...
1
2
12
2f9d4b9b531c2453291521fc15bdae0ce5a14057
Kenny Kerr
2022-06-09T14:33:43
Pass error codes directly from `windows::core::Error` to `std::io::Error` (#1809)
diff --git a/crates/libs/windows/src/core/error.rs b/crates/libs/windows/src/core/error.rs index c975030fc..23cab6b78 100644 --- a/crates/libs/windows/src/core/error.rs +++ b/crates/libs/windows/src/core/error.rs @@ -77,7 +77,7 @@ impl core::convert::From<Error> for HRESULT { impl core::convert::From<Error> for std:...
2
35
1
3dd37fa078f1003bbf0be4ba4c2e4654eda9502b
Kenny Kerr
2022-06-08T17:45:34
Make `Type` methods simpler to use (#1806)
diff --git a/crates/libs/bindgen/src/com_methods.rs b/crates/libs/bindgen/src/com_methods.rs index f04fe36f2..7f4820818 100644 --- a/crates/libs/bindgen/src/com_methods.rs +++ b/crates/libs/bindgen/src/com_methods.rs @@ -52,7 +52,7 @@ pub fn gen(gen: &Gen, def: TypeDef, kind: InterfaceKind, method: MethodDef, meth ...
9
179
155
e511e77681e0f956bdd788c9978bf70be0de2d9a
Kenny Kerr
2022-06-08T15:08:14
Remove reverse dependency from `core` module (#1802)
diff --git a/crates/libs/bindgen/src/extensions/win32_error.rs b/crates/libs/bindgen/src/extensions/win32_error.rs index 45bcaadeb..ff86cb483 100644 --- a/crates/libs/bindgen/src/extensions/win32_error.rs +++ b/crates/libs/bindgen/src/extensions/win32_error.rs @@ -16,6 +16,15 @@ pub fn gen() -> TokenStream { ...
6
29
13
c3f13392d10215d803ce7eb9daccd26e5e3d2a66
Kenny Kerr
2022-06-07T19:07:39
Trim error messages (#1804)
diff --git a/crates/libs/windows/src/core/error.rs b/crates/libs/windows/src/core/error.rs index 0aef225ff..771a5bc17 100644 --- a/crates/libs/windows/src/core/error.rs +++ b/crates/libs/windows/src/core/error.rs @@ -54,7 +54,7 @@ impl Error { if self.code == code { let message = if !mes...
9
28
8
acba9c23f0a66d87cc7d492620b01938b7ed74d9
Kenny Kerr
2022-06-07T16:09:23
Test error propagation (#1803)
diff --git a/crates/tests/error/Cargo.toml b/crates/tests/error/Cargo.toml index adcdcf4ea..d74641340 100644 --- a/crates/tests/error/Cargo.toml +++ b/crates/tests/error/Cargo.toml @@ -7,5 +7,7 @@ edition = "2018" [dependencies.windows] path = "../../libs/windows" features = [ + "implement", + "Foundation", ...
2
21
0
f4e3218458cf85df570684ce0dea17845f24d430
Kenny Kerr
2022-06-06T21:13:22
remove comment (#1801)
diff --git a/crates/libs/metadata/src/reader/tree.rs b/crates/libs/metadata/src/reader/tree.rs index 2e6d59fc1..3d576ea41 100644 --- a/crates/libs/metadata/src/reader/tree.rs +++ b/crates/libs/metadata/src/reader/tree.rs @@ -19,7 +19,6 @@ impl<'a> Tree<'a> { } } pub fn flatten(&self) -> Vec<&Self> { ...
1
0
1
04217210a2525810e50b29daffe290b42f5b8551
Kenny Kerr
2022-06-02T15:45:35
Avoid redundant signature calculations (#1793)
diff --git a/crates/libs/bindgen/src/com_methods.rs b/crates/libs/bindgen/src/com_methods.rs index 63472f1b6..f04fe36f2 100644 --- a/crates/libs/bindgen/src/com_methods.rs +++ b/crates/libs/bindgen/src/com_methods.rs @@ -5,7 +5,7 @@ pub fn gen(gen: &Gen, def: TypeDef, kind: InterfaceKind, method: MethodDef, meth l...
8
65
69
35d3f0d96774b8b6f43ab6d1778ac92096291109
Ryan Levick
2022-06-02T15:26:31
Remove need for allocation inside Reader (#1794) * Remove need for allocation inside Reader * Get rid of OptionalIterator. Thanks to @yoshuawuyts for the pointer!
diff --git a/crates/libs/bindgen/src/gen.rs b/crates/libs/bindgen/src/gen.rs index 22941c9b1..8f63528ec 100644 --- a/crates/libs/bindgen/src/gen.rs +++ b/crates/libs/bindgen/src/gen.rs @@ -419,8 +419,8 @@ impl<'a> Gen<'a> { } fn scoped_name(&self, def: TypeDef) -> String { if let Some(enclosing_type)...
4
22
31
c396e5f2e3474990eecc1b3885c03e4288552906
Kenny Kerr
2022-05-26T15:01:28
Remove unused types (#1784)
diff --git a/crates/libs/bindgen/src/gen.rs b/crates/libs/bindgen/src/gen.rs index ffaa5a97c..fb81ba91c 100644 --- a/crates/libs/bindgen/src/gen.rs +++ b/crates/libs/bindgen/src/gen.rs @@ -166,8 +166,6 @@ impl<'a> Gen<'a> { quote! { [#name; #len] } } Type::GenericParam(generic...
2
1
7
f30c1434e83af7b49abef1657e863f365ce3ce22
Bill Avery
2022-05-20T19:32:14
Set `windows-implement` min `rust-version` (#1773)
diff --git a/crates/libs/implement/Cargo.toml b/crates/libs/implement/Cargo.toml index 0560d0ac2..f4b66488b 100644 --- a/crates/libs/implement/Cargo.toml +++ b/crates/libs/implement/Cargo.toml @@ -6,6 +6,7 @@ edition = "2018" license = "MIT OR Apache-2.0" description = "The implement macro for the windows crate" rep...
1
1
0
78b1fefd1ead3b70c40825bbbedb8205b12ab911
Ryan Phelps
2022-05-19T21:35:21
Add WinSock conversion utilities (#1742)
diff --git a/crates/libs/bindgen/src/extensions/in6_addr.rs b/crates/libs/bindgen/src/extensions/in6_addr.rs new file mode 100644 index 000000000..34a75837c --- /dev/null +++ b/crates/libs/bindgen/src/extensions/in6_addr.rs @@ -0,0 +1,17 @@ +use super::*; + +pub fn gen() -> TokenStream { + quote! { + impl ::c...
10
281
2
6c90f4dcd662c66f50d0ccda1714125af0d932d3
Ryan Levick
2022-05-19T21:28:12
Small clean ups to factory caching (#1758)
diff --git a/crates/libs/windows/src/core/delay_load.rs b/crates/libs/windows/src/core/delay_load.rs index 461868023..c99662a46 100644 --- a/crates/libs/windows/src/core/delay_load.rs +++ b/crates/libs/windows/src/core/delay_load.rs @@ -1,15 +1,20 @@ use super::*; use bindings::*; -pub fn delay_load(library: &[u8],...
2
91
43
68576f37df4c02f09bc6e4dd1ed8ed8844c6eb9c
Alexander Shishenko
2022-05-13T09:07:34
Add GUID::to_u128 (#1756) * Add GUID::to_u128 * Add From trait implementation for GUID and u128 * Add test for From<GUID> for u128 * Test both From<GUID> and From<&GUID> * Remove From<&GUID>, as GUID is Copy
diff --git a/crates/libs/windows/src/core/guid.rs b/crates/libs/windows/src/core/guid.rs index eac48bbfe..4f4fb021f 100644 --- a/crates/libs/windows/src/core/guid.rs +++ b/crates/libs/windows/src/core/guid.rs @@ -36,6 +36,11 @@ impl GUID { Self { data1: (uuid >> 96) as u32, data2: (uuid >> 80 & 0xffff) as u16,...
2
25
0
c17821039a071cb648cff09e0b347f11c8fe6cc5
Ryan Levick
2022-05-11T15:37:59
Make `cast` method produced by `implement` macro unsafe (#1753) * Remove broken cast method on types using implement macro * Simplify From impls from implement macro * Free implementation in alloc if querying fails * Add back cast but make it unsafe * Remove alloc
diff --git a/crates/libs/implement/src/lib.rs b/crates/libs/implement/src/lib.rs index 92f801ab6..f97f5713c 100644 --- a/crates/libs/implement/src/lib.rs +++ b/crates/libs/implement/src/lib.rs @@ -54,10 +54,10 @@ pub fn implement(attributes: proc_macro::TokenStream, original_type: proc_macro: impl <#constr...
5
27
27
caecac58fe2f90c1c77d3e4e74be3948b5b83800
Ryan Levick
2022-05-11T09:03:56
Inline HSTRING::clear into the drop impl (#1752)
diff --git a/crates/libs/windows/src/core/hstring.rs b/crates/libs/windows/src/core/hstring.rs index 65c50b51b..611293f33 100644 --- a/crates/libs/windows/src/core/hstring.rs +++ b/crates/libs/windows/src/core/hstring.rs @@ -1,6 +1,6 @@ use super::*; -/// A WinRT string ([HSTRING](https://docs.microsoft.com/en-us/wi...
2
19
28
d0c856b938704070f653ee5fcd18d25a84cd951d
Ryan Levick
2022-05-10T20:20:16
Fix `ToImpl` (#1748)
diff --git a/crates/libs/implement/src/lib.rs b/crates/libs/implement/src/lib.rs index 0e230052d..92f801ab6 100644 --- a/crates/libs/implement/src/lib.rs +++ b/crates/libs/implement/src/lib.rs @@ -60,11 +60,17 @@ pub fn implement(attributes: proc_macro::TokenStream, original_type: proc_macro: unsaf...
6
24
24
7efe6849cac9345f8917158ad89b769d44280eea
Ryan Levick
2022-05-10T15:57:38
Simplify header handling in HSTRING (#1747) * Simplify header handling in HSTRING * Make sure we copy the terminating null character
diff --git a/crates/libs/windows/src/core/hstring.rs b/crates/libs/windows/src/core/hstring.rs index 10b96d777..65c50b51b 100644 --- a/crates/libs/windows/src/core/hstring.rs +++ b/crates/libs/windows/src/core/hstring.rs @@ -66,7 +66,7 @@ impl HSTRING { let header = self.0; debug_assert!((*hea...
1
10
13
fe19c78adb672f8bc19c1bfa84ac4bdc687872d3
Kenny Kerr
2022-05-10T03:30:25
Add `HSTRING` compatibility testing (#1749)
diff --git a/crates/libs/windows/src/core/heap.rs b/crates/libs/windows/src/core/heap.rs index e1a3bc77c..3657423a6 100644 --- a/crates/libs/windows/src/core/heap.rs +++ b/crates/libs/windows/src/core/heap.rs @@ -14,6 +14,13 @@ pub fn heap_alloc(bytes: usize) -> Result<RawPtr> { if ptr.is_null() { Err(E_O...
4
103
24
5c01e69a5d19e92086bde9e7bcf8a14236099333
Ryan Levick
2022-05-05T14:56:18
Shorten IUnknown check (#1735)
diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs index 77c940122..ceb37acbf 100644 --- a/crates/libs/interface/src/lib.rs +++ b/crates/libs/interface/src/lib.rs @@ -284,12 +284,7 @@ impl Interface { } fn parent_is_iunknown(&self) -> bool { - let end = self.parent.segme...
1
1
6
05fd2c335b5673194fc5e0f9e7c38938444af36b
Ryan Levick
2022-05-04T15:56:39
Fix `interface` macro to handle qualified `IUnknown` parent (#1732)
diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs index cc7bb47a8..77c940122 100644 --- a/crates/libs/interface/src/lib.rs +++ b/crates/libs/interface/src/lib.rs @@ -284,7 +284,12 @@ impl Interface { } fn parent_is_iunknown(&self) -> bool { - self.parent.is_ident("IUnkn...
2
7
2
4c0860bf430261b5f37dcf79c7da817f01b63538
Kenny Kerr
2022-04-28T17:02:48
Correct compose offset in implement macro (#1724)
diff --git a/crates/libs/implement/src/lib.rs b/crates/libs/implement/src/lib.rs index 2978393fc..8e435b894 100644 --- a/crates/libs/implement/src/lib.rs +++ b/crates/libs/implement/src/lib.rs @@ -143,7 +143,8 @@ pub fn implement(attributes: proc_macro::TokenStream, original_type: proc_macro: impl <#constraint...
2
11
4
e518d03761e1de7906d302a4382c71182919b8ed
Aron Parker
2022-04-28T08:36:16
Avoid double allocation when passing strings via `IntoParam` (#1713) * Use an iterator instead of double allocation for strings * Add a missing trailing new line * Use `T::default` instead of `Default::default` for clarity * Rename `from_iter` to `string_from_iter` for clarity * Run `cargo fmt` * Make s...
diff --git a/crates/libs/windows/src/core/heap.rs b/crates/libs/windows/src/core/heap.rs index 25b8aa738..e1a3bc77c 100644 --- a/crates/libs/windows/src/core/heap.rs +++ b/crates/libs/windows/src/core/heap.rs @@ -32,20 +32,32 @@ pub unsafe fn heap_free(ptr: RawPtr) { } } -/// Copy a slice of `T` into a freshly ...
3
26
14
7c9c6b74b765e962a71c53d55510d12909252c96
Chris Denton
2022-04-27T21:17:15
Make target crates `no_std` (#1722)
diff --git a/crates/targets/aarch64_msvc/src/lib.rs b/crates/targets/aarch64_msvc/src/lib.rs index 8b1378917..0c9ac1ac8 100644 --- a/crates/targets/aarch64_msvc/src/lib.rs +++ b/crates/targets/aarch64_msvc/src/lib.rs @@ -1 +1 @@ - +#![no_std] diff --git a/crates/targets/i686_gnu/src/lib.rs b/crates/targets/i686_gnu/src...
5
5
5
5f76358dd5ca393ad2bcc971a755c33ead8ecb73
Kenny Kerr
2022-04-19T16:36:18
Add missing features to enum bitwise operators (#1701)
diff --git a/crates/libs/bindgen/src/enums.rs b/crates/libs/bindgen/src/enums.rs index d42f10b18..4e107419f 100644 --- a/crates/libs/bindgen/src/enums.rs +++ b/crates/libs/bindgen/src/enums.rs @@ -133,6 +133,7 @@ pub fn gen(def: &TypeDef, gen: &Gen) -> TokenStream { if def.has_flags() { tokens.c...
2
10
0
88b014c094b279f2c1d567164baba3a26a879835
sanana the skenana
2022-04-15T21:11:46
Make Matrix3x2::identity() and Matrix3x2::translation(f32, f32) const (#1695)
diff --git a/crates/libs/bindgen/src/extensions/matrix3x2.rs b/crates/libs/bindgen/src/extensions/matrix3x2.rs index 3ab23c062..927da1d08 100644 --- a/crates/libs/bindgen/src/extensions/matrix3x2.rs +++ b/crates/libs/bindgen/src/extensions/matrix3x2.rs @@ -3,7 +3,7 @@ use super::*; pub fn gen() -> TokenStream { q...
2
4
4
8041194d36cca54155bdb03438d6cabd7c85141b
kaivol
2022-04-15T14:40:25
Added conversions between HSTRING and OsStr/OsString (#1693)
diff --git a/crates/libs/windows/src/core/hstring.rs b/crates/libs/windows/src/core/hstring.rs index 810b184b6..10b96d777 100644 --- a/crates/libs/windows/src/core/hstring.rs +++ b/crates/libs/windows/src/core/hstring.rs @@ -48,6 +48,11 @@ impl HSTRING { alloc::string::String::from_utf16_lossy(self.as_wide()) ...
2
170
0
14e090215105b8aad6dc51b0f958da7eea437c82
Kenny Kerr
2022-04-08T16:15:24
Ensure that heap functions are private (#1673)
diff --git a/crates/libs/windows/src/core/mod.rs b/crates/libs/windows/src/core/mod.rs index 6bbb68e1b..9d506aa4f 100644 --- a/crates/libs/windows/src/core/mod.rs +++ b/crates/libs/windows/src/core/mod.rs @@ -42,8 +42,7 @@ pub use error::*; #[doc(hidden)] pub use factory_cache::*; pub use guid::*; -#[doc(hidden)] -p...
1
1
2
03f1f40723161faba2779f2149ddff81bc1583af
Ryan Levick
2022-04-08T13:57:26
Document heap functions (#1670)
diff --git a/crates/libs/windows/src/core/heap.rs b/crates/libs/windows/src/core/heap.rs index 198632ac1..25b8aa738 100644 --- a/crates/libs/windows/src/core/heap.rs +++ b/crates/libs/windows/src/core/heap.rs @@ -1,7 +1,13 @@ use super::*; use bindings::*; -// TODO: why not Option<RawPtr> +/// Allocate memory of si...
1
14
1
2e889229f4e89f8ecab3944c71cf2235fe18b363
Ryan Levick
2022-04-08T13:53:10
Remove UB in the heap_string function (#1667)
diff --git a/crates/libs/windows/src/core/heap.rs b/crates/libs/windows/src/core/heap.rs index 4cbfa8121..198632ac1 100644 --- a/crates/libs/windows/src/core/heap.rs +++ b/crates/libs/windows/src/core/heap.rs @@ -19,11 +19,20 @@ pub unsafe fn heap_free(ptr: RawPtr) { } } -pub fn heap_string<T: Copy + Default + ...
1
16
7
d06738c9fe31442ee0dfdeab2d408fcbeceefa7d
Kenny Kerr
2022-04-04T22:37:01
Handle type mismatch with invalid handle values (#1659)
diff --git a/crates/libs/bindgen/src/handles.rs b/crates/libs/bindgen/src/handles.rs index e2eee52dc..6f9c59037 100644 --- a/crates/libs/bindgen/src/handles.rs +++ b/crates/libs/bindgen/src/handles.rs @@ -35,8 +35,13 @@ pub fn gen_win_handle(def: &TypeDef, gen: &Gen) -> TokenStream { if !invalid.is_empty() {...
6
27
5
ea1a99141e58508c6409ad54b41a0600ca9cc86c
Kenny Kerr
2022-04-04T21:18:31
Use `BSTR` allocator as `PCSTR` and `PCWSTR` parameter allocator (#1657)
diff --git a/crates/libs/bindgen/src/replacements/bstr.rs b/crates/libs/bindgen/src/replacements/bstr.rs index 76d17c03d..0babdeb29 100644 --- a/crates/libs/bindgen/src/replacements/bstr.rs +++ b/crates/libs/bindgen/src/replacements/bstr.rs @@ -36,6 +36,14 @@ pub fn gen() -> TokenStream { unsafe { ::...
7
54
7
be54b2b78d2d63ca7b24b85653933da0a35a65d3
Kenny Kerr
2022-03-25T21:38:46
Simpler metadata discovery (#1635)
diff --git a/crates/libs/metadata/src/reader/mod.rs b/crates/libs/metadata/src/reader/mod.rs index 3534ee894..dae5639bd 100644 --- a/crates/libs/metadata/src/reader/mod.rs +++ b/crates/libs/metadata/src/reader/mod.rs @@ -40,4 +40,4 @@ pub use type_kind::*; pub use type_name::*; pub use type_reader::*; pub use type_t...
5
26
68
8956995ef062c0deb33e927f157a62ad45fdb762
Rafael Rivera
2022-03-22T22:45:24
Only emit cfg attr if requested during namespace gen (#1623)
diff --git a/crates/libs/bindgen/src/lib.rs b/crates/libs/bindgen/src/lib.rs index c5a647287..cc745b144 100644 --- a/crates/libs/bindgen/src/lib.rs +++ b/crates/libs/bindgen/src/lib.rs @@ -53,8 +53,14 @@ pub fn gen_namespace(gen: &Gen) -> String { let name = gen_ident(name); let namespace = tree.nam...
1
8
2
a8c1a5a14f567551331ad74ba296edbbc1f89897
Ryan Levick
2022-03-18T16:32:35
Make test checking for conversion to param (#1620)
diff --git a/crates/tests/nightly_interface/tests/com.rs b/crates/tests/nightly_interface/tests/com.rs index 176c3b624..4eeae1006 100644 --- a/crates/tests/nightly_interface/tests/com.rs +++ b/crates/tests/nightly_interface/tests/com.rs @@ -150,6 +150,14 @@ fn test_custom_interface() -> windows::core::Result<()> { ...
1
8
0
a09313e96cbb02ffbc6668ab5249085142f32fed
Ryan Levick
2022-03-18T16:32:12
Make a safer conversion From<IMPL> for INTERFACE (#1619)
diff --git a/crates/libs/implement/src/lib.rs b/crates/libs/implement/src/lib.rs index 0073e6889..2978393fc 100644 --- a/crates/libs/implement/src/lib.rs +++ b/crates/libs/implement/src/lib.rs @@ -43,17 +43,15 @@ pub fn implement(attributes: proc_macro::TokenStream, original_type: proc_macro: let conversions = a...
1
6
8
3314fae6a70778095170f779f255547a4de60d37
Ryan Levick
2022-03-17T17:39:09
Fix bug where the interface feature could not be used without the implement feature (#1612)
diff --git a/crates/libs/windows/src/core/unknown.rs b/crates/libs/windows/src/core/unknown.rs index 9066b4cbf..f117c418f 100644 --- a/crates/libs/windows/src/core/unknown.rs +++ b/crates/libs/windows/src/core/unknown.rs @@ -66,7 +66,7 @@ pub trait IUnknownImpl { fn Release(&mut self) -> u32; } -#[cfg(feature =...
1
1
1
d88dab4cfd3f3bee3f5c07acecbe89f6ff25d6d2
Ryan Levick
2022-03-17T17:38:52
Fix bug where COM interfaces needed to be declared pub (#1611)
diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs index 7caf5a771..e0c5be0e0 100644 --- a/crates/libs/interface/src/lib.rs +++ b/crates/libs/interface/src/lib.rs @@ -155,6 +155,7 @@ impl Interface { /// Generates the vtable for a COM interface fn gen_vtable(&self, vtable_name:...
2
5
4
86e8088f6376796476e720aa66c6988e00fc44ec
Ryan Levick
2022-03-17T16:43:10
Support richer COM interface hierarchies (#1608)
diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs index 490895b55..7caf5a771 100644 --- a/crates/libs/interface/src/lib.rs +++ b/crates/libs/interface/src/lib.rs @@ -54,10 +54,10 @@ macro_rules! expected_token { /// } /// ``` struct Interface { - pub visibility: syn::Visibility, - ...
3
153
82
35157d81af3c32ef93fe840a31c7681d454e8705
Ryan Levick
2022-03-14T17:20:15
Allow for non-HRESULT return types in COM (#1595)
diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs index 7b8d92e76..490895b55 100644 --- a/crates/libs/interface/src/lib.rs +++ b/crates/libs/interface/src/lib.rs @@ -111,8 +111,9 @@ impl Interface { quote! { #pat } }) .col...
2
10
7
1960c00934b8c09ee5dba3ef6ff7d6a352a67687
Ryan Levick
2022-03-14T16:39:46
Fix bug in multi arg COM methods and allow all types in interface methods (#1594)
diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs index 9c3c6943a..7b8d92e76 100644 --- a/crates/libs/interface/src/lib.rs +++ b/crates/libs/interface/src/lib.rs @@ -102,9 +102,6 @@ impl Interface { let vis = &m.visibility; let name = &m.name; - ...
2
40
25
cf645f6f21010a0d007b444a32b2b5ad0f9219fc
Kenny Kerr
2022-03-09T20:16:00
Provide hex output for `Debug` impl of `HRESULT` and `NTSTATUS` (#1590)
diff --git a/crates/libs/bindgen/src/replacements/ntstatus.rs b/crates/libs/bindgen/src/replacements/ntstatus.rs index 4f9b58a20..6f029d53a 100644 --- a/crates/libs/bindgen/src/replacements/ntstatus.rs +++ b/crates/libs/bindgen/src/replacements/ntstatus.rs @@ -55,7 +55,7 @@ pub fn gen() -> TokenStream { impl :...
4
18
3
2765470b2a81ea9409fdc582f53dadedb7f6c6fa
Kenny Kerr
2022-03-09T19:52:38
Remove nightly features that are no longer required (#1591)
diff --git a/crates/libs/windows/src/lib.rs b/crates/libs/windows/src/lib.rs index 3a73fa0b7..0504496a7 100644 --- a/crates/libs/windows/src/lib.rs +++ b/crates/libs/windows/src/lib.rs @@ -2,8 +2,6 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs> */ -#![cfg_attr(feature = "implem...
2
0
4
95dcbedc956597ab948a166fbd354a6dad5ec061
Vincent Thiberville
2022-03-05T16:24:42
Expose `Interface` trait and `Weak` object in documentation (#1576)
diff --git a/crates/libs/windows/src/core/interface.rs b/crates/libs/windows/src/core/interface.rs index 290481c98..862a5dd67 100644 --- a/crates/libs/windows/src/core/interface.rs +++ b/crates/libs/windows/src/core/interface.rs @@ -3,8 +3,9 @@ use bindings::*; /// Provides low-level access to a COM interface. /// ...
2
3
4
8ebbea7dc769ae2cac2f841176a2a71eeda6f22f
Kenny Kerr
2022-03-04T17:33:13
must_use (#1580)
diff --git a/crates/libs/windows/src/core/mod.rs b/crates/libs/windows/src/core/mod.rs index 2a39a74cd..59268afc7 100644 --- a/crates/libs/windows/src/core/mod.rs +++ b/crates/libs/windows/src/core/mod.rs @@ -76,7 +76,6 @@ pub use weak::*; pub use weak_ref_count::*; /// A specialized [`Result`] type that provides W...
1
0
1
031369dde0de1f30857727c06d533fee70c2882e
Kenny Kerr
2022-02-24T18:06:45
Minor doc improvements (#1564)
diff --git a/crates/libs/windows/src/core/error.rs b/crates/libs/windows/src/core/error.rs index 32003a9d5..fcacb2ca5 100644 --- a/crates/libs/windows/src/core/error.rs +++ b/crates/libs/windows/src/core/error.rs @@ -1,7 +1,7 @@ use super::*; use bindings::*; -/// A WinRT error object consists of both an error code...
11
14
9
5c110dcba4fa7b62b42cbefbe1394d5021e99c08
Rafael Rivera
2022-02-21T21:45:43
Restore ability to gen with windows as dep crate (#1551)
diff --git a/crates/libs/bindgen/src/gen.rs b/crates/libs/bindgen/src/gen.rs index ac7db0b82..bb5db9501 100644 --- a/crates/libs/bindgen/src/gen.rs +++ b/crates/libs/bindgen/src/gen.rs @@ -10,6 +10,7 @@ pub struct Gen<'a> { pub min_enum: bool, pub min_inherit: bool, pub min_xaml: bool, + pub windows_e...
1
23
5
2fedd3ec162157f16d8a94d4efd3019674086c5b
Kenny Kerr
2022-02-21T20:42:30
Avoid unnecessary `null_mut` in samples (#1558)
diff --git a/crates/samples/core_app/src/main.rs b/crates/samples/core_app/src/main.rs index c51a85230..ae7b33822 100644 --- a/crates/samples/core_app/src/main.rs +++ b/crates/samples/core_app/src/main.rs @@ -56,7 +56,7 @@ impl IFrameworkView_Impl for CoreAppView { fn main() -> Result<()> { unsafe { - Co...
10
16
16
32c7eea14faabd083f5d3e6f0f03530a38ba2113
Kenny Kerr
2022-02-18T23:17:21
Remove `const` workaround for handles (#1552)
diff --git a/crates/libs/bindgen/src/handles.rs b/crates/libs/bindgen/src/handles.rs index 3c950b87e..8cb113ed5 100644 --- a/crates/libs/bindgen/src/handles.rs +++ b/crates/libs/bindgen/src/handles.rs @@ -80,7 +80,5 @@ pub fn gen_win_handle(def: &TypeDef, gen: &Gen) -> TokenStream { fn gen_signature(def: &TypeDef, g...
6
7
9
0b1dd3bc7c1b98c618a6adff0757566e43d944dc
Kenny Kerr
2022-02-18T04:27:09
`Type::GenericParam` can store a static `str` (#1547)
diff --git a/crates/libs/bindgen/src/names.rs b/crates/libs/bindgen/src/names.rs index 2ef96e5b3..bb3902361 100644 --- a/crates/libs/bindgen/src/names.rs +++ b/crates/libs/bindgen/src/names.rs @@ -165,7 +165,7 @@ pub fn gen_element_name(def: &Type, gen: &Gen) -> TokenStream { let len = Literal::u32_unsuffi...
3
4
4
343c546238e3a199d58de682eb7b5aa3dac65df2
Robin Lambertz
2022-02-16T18:34:42
Make `NTSTATUS::ok` a `const fn` (#1542)
diff --git a/crates/libs/bindgen/src/replacements/ntstatus.rs b/crates/libs/bindgen/src/replacements/ntstatus.rs index 63a3a2348..05dbba0a1 100644 --- a/crates/libs/bindgen/src/replacements/ntstatus.rs +++ b/crates/libs/bindgen/src/replacements/ntstatus.rs @@ -21,7 +21,7 @@ pub fn gen() -> TokenStream { } ...
2
2
2
0fd8c6ee83ee633a74b93d48e2584121a3b619be
Kenny Kerr
2022-02-14T16:26:36
Include Win32 "retval" signatures in transformation (#1534)
diff --git a/crates/libs/metadata/src/signature.rs b/crates/libs/metadata/src/signature.rs index bca1e7f3d..b1829efa5 100644 --- a/crates/libs/metadata/src/signature.rs +++ b/crates/libs/metadata/src/signature.rs @@ -66,7 +66,12 @@ impl Signature { impl MethodParam { fn is_retval(&self) -> bool { - // TO...
10
54
17
445247fad8976e0874ae2404b8035e7602ee6d7b
Kenny Kerr
2022-02-12T15:03:21
Explicit parameter direction (#1533)
diff --git a/crates/libs/bindgen/src/helpers.rs b/crates/libs/bindgen/src/helpers.rs index 01bf981f8..ff38d8ee9 100644 --- a/crates/libs/bindgen/src/helpers.rs +++ b/crates/libs/bindgen/src/helpers.rs @@ -124,7 +124,7 @@ pub fn gen_vtbl_signature(def: &TypeDef, method: &MethodDef, gen: &Gen) -> Token let a...
5
8
20
c99f83ba7dcad711abf6dcc04db1503a0ffa806e
Kenny Kerr
2022-02-11T23:20:35
Consistent type naming following code refactor (#1532)
diff --git a/crates/libs/bindgen/src/async.rs b/crates/libs/bindgen/src/async.rs index 3c337b773..30a03614c 100644 --- a/crates/libs/bindgen/src/async.rs +++ b/crates/libs/bindgen/src/async.rs @@ -21,7 +21,7 @@ pub fn gen_async(def: &TypeDef, cfg: &Cfg, gen: &Gen) -> TokenStream { } fn gen_async_kind(kind: AsyncKin...
19
202
217
440a66eaa22434a8110d3b3af9b11b8702646c46
Rafael Rivera
2022-02-09T22:11:51
Cleanup bthprops special handling (#1522)
diff --git a/crates/tools/msvc/src/main.rs b/crates/tools/msvc/src/main.rs index d4f1a59e6..d74b68647 100644 --- a/crates/tools/msvc/src/main.rs +++ b/crates/tools/msvc/src/main.rs @@ -83,9 +83,7 @@ fn build_library(output: &std::path::Path, library: &str, functions: &BTreeMap<& LIBRARY {} EXPORTS "#, - /...
1
1
3
c7cbaaafd9781a2aefafbed5b3777f1cf12d9056
Kenny Kerr
2022-02-08T23:15:54
Update tests to use `UnsafeCell` (#1517)
diff --git a/crates/tests/implement/tests/buffer.rs b/crates/tests/implement/tests/buffer.rs index 8c2f0a4ce..d33f76478 100644 --- a/crates/tests/implement/tests/buffer.rs +++ b/crates/tests/implement/tests/buffer.rs @@ -3,21 +3,18 @@ use windows::Storage::Streams::Buffer; use windows::Win32::System::WinRT::*; #[im...
3
49
58
ca55f20e32c114eac708ccae4c0802d780808907
Kenny Kerr
2022-02-08T23:03:27
Code cleanup (#1516)
diff --git a/crates/libs/bindgen/src/helpers.rs b/crates/libs/bindgen/src/helpers.rs index 6b05ecc91..bd706aac1 100644 --- a/crates/libs/bindgen/src/helpers.rs +++ b/crates/libs/bindgen/src/helpers.rs @@ -511,7 +511,7 @@ fn gen_winrt_produce_type(param: &MethodParam, include_param_names: bool, gen: & if param....
8
15
20
03e03656522fca1e7e7cfa25c54bff99734b246d
Kenny Kerr
2022-02-08T18:06:35
Remove dead code (#1514)
diff --git a/crates/libs/metadata/src/constant_value.rs b/crates/libs/metadata/src/constant_value.rs index f5c84d545..3a7a89b63 100644 --- a/crates/libs/metadata/src/constant_value.rs +++ b/crates/libs/metadata/src/constant_value.rs @@ -37,20 +37,4 @@ impl ConstantValue { _ => unimplemented!(), } ...
7
0
56
0b5d557f1526e4084fcae3cf6ee63577efe2d2df
Kenny Kerr
2022-02-08T15:09:36
Remove dead code (#1513)
diff --git a/crates/libs/metadata/src/element_type.rs b/crates/libs/metadata/src/element_type.rs index ea4e70722..97a48bc67 100644 --- a/crates/libs/metadata/src/element_type.rs +++ b/crates/libs/metadata/src/element_type.rs @@ -136,14 +136,6 @@ impl ElementType { } } - pub fn features(&self, feature...
5
0
71
8e0ec64476539f6ab82dce674a76240547bb7b94
Kenny Kerr
2022-02-07T16:28:04
Only build the default doc target for `windows-sys` (#1508)
diff --git a/crates/libs/bindgen/Cargo.toml b/crates/libs/bindgen/Cargo.toml index 77ecf3463..de36cc673 100644 --- a/crates/libs/bindgen/Cargo.toml +++ b/crates/libs/bindgen/Cargo.toml @@ -7,6 +7,10 @@ license = "MIT OR Apache-2.0" description = "Code gen support for the windows crate" repository = "https://github.co...
11
38
3