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 |
|---|---|---|---|---|---|---|---|
7ccb290f73f132c4c0ab401e8e87f7f54a09105c | Rafael Rivera | 2026-03-12T01:16:28 | Improve Error diagnostic format for `windows-rdl` (#3983) | diff --git a/crates/libs/rdl/src/error.rs b/crates/libs/rdl/src/error.rs
index c344af871..f45461512 100644
--- a/crates/libs/rdl/src/error.rs
+++ b/crates/libs/rdl/src/error.rs
@@ -1,4 +1,3 @@
-#[derive(Debug)]
pub struct Error {
pub message: String,
pub file_name: String,
@@ -19,11 +18,17 @@ impl Error {
... | 8 | 39 | 88 |
04a3c56ea62029594f1d4fc93b670332e1b04203 | Copilot | 2026-03-11T02:49:04 | Fix double arity suffix on generic interface names in metadata writer (#3976)
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/libs/metadata/src/writer/file/mod.rs b/crates/libs/metadata/src/writer/file/mod.rs
index ba809d4d8..92a8a18d1 100644
--- a/crates/libs/metadata/src/writer/file/mod.rs
+++ b/crates/libs/metadata/src/writer/file/mod.rs
@@ -349,9 +349,11 @@ impl File {
let interface = if interface.generics.is_... | 1 | 5 | 3 |
10114dfc08239eda1265b59f16bf10f4a2a58d56 | Rafael Rivera | 2026-03-10T00:45:12 | Refactor nested type encoding for `windows-rdl` (#3957) | diff --git a/crates/libs/metadata/src/writer/file/mod.rs b/crates/libs/metadata/src/writer/file/mod.rs
index 1076649f9..ba809d4d8 100644
--- a/crates/libs/metadata/src/writer/file/mod.rs
+++ b/crates/libs/metadata/src/writer/file/mod.rs
@@ -157,14 +157,21 @@ impl File {
}
}
- // The type ... | 3 | 157 | 91 |
f050188edc9456ad1162d292da60b5a321cb2c39 | Kenny Kerr | 2026-03-06T20:05:07 | Remove `AttributeEnum` from `windows-metadata` (#3947) | diff --git a/crates/libs/bindgen/src/types/mod.rs b/crates/libs/bindgen/src/types/mod.rs
index 43b71f549..571a28607 100644
--- a/crates/libs/bindgen/src/types/mod.rs
+++ b/crates/libs/bindgen/src/types/mod.rs
@@ -366,7 +366,6 @@ impl Type {
)),
_ => Self::from_metadata_type(inner, encl... | 8 | 5 | 27 |
c7c4183ca5322c3f680e72cd05b8a42c8592696b | Copilot | 2026-03-04T18:11:22 | Improve `windows-rdl` function testing: add `link` attribute inline tests (#3938)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/libs/rdl/src/reader/fn.rs b/crates/libs/rdl/src/reader/fn.rs
index a8f40af04..52817eff5 100644
--- a/crates/libs/rdl/src/reader/fn.rs
+++ b/crates/libs/rdl/src/reader/fn.rs
@@ -171,3 +171,82 @@ mod Test {
.write()
.unwrap();
}
+
+#[test]
+#[should_panic(
+ expected = r#"{ messa... | 1 | 79 | 0 |
863af979ab1b9ee117452d0807cc78cd3d73340f | Copilot | 2026-03-04T12:07:37 | windows-rdl: validate &self on interface methods and add tests (#3937)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/libs/rdl/src/reader/interface.rs b/crates/libs/rdl/src/reader/interface.rs
index 0f9399cdc..48e680832 100644
--- a/crates/libs/rdl/src/reader/interface.rs
+++ b/crates/libs/rdl/src/reader/interface.rs
@@ -93,6 +93,10 @@ impl Interface {
for method in &self.methods {
let mut par... | 1 | 67 | 0 |
d6131ebcb608b58473db3683da5d96370f894170 | Copilot | 2026-03-04T03:06:15 | windows-rdl: limit enum repr to integer types (#3935)
Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> | diff --git a/crates/libs/rdl/src/reader/enum.rs b/crates/libs/rdl/src/reader/enum.rs
index e0cdf8e96..1f4de7024 100644
--- a/crates/libs/rdl/src/reader/enum.rs
+++ b/crates/libs/rdl/src/reader/enum.rs
@@ -64,6 +64,20 @@ impl Enum {
let ty = encode_path(encoder, &ty)?;
+ if !matches!(
+ ty... | 1 | 36 | 0 |
075a0eb06aa23ef6c118411e4be7f47fff881d0c | Kenny Kerr | 2026-03-04T00:26:29 | Simpler validation for `windows-rdl` (#3933) | diff --git a/crates/libs/rdl/src/reader/delegate.rs b/crates/libs/rdl/src/reader/delegate.rs
index 75747c3c3..8cfa3995f 100644
--- a/crates/libs/rdl/src/reader/delegate.rs
+++ b/crates/libs/rdl/src/reader/delegate.rs
@@ -28,8 +28,6 @@ impl syn::parse::Parse for Delegate {
impl Delegate {
pub fn encode(&self, en... | 2 | 25 | 52 |
b4ab4816d2c481c76bc9aadb558b60b9891a9c41 | Rafael Rivera | 2026-03-02T16:16:45 | Improve formatter error emission for `windows-rdl` (#3918) | diff --git a/crates/libs/rdl/src/formatter/mod.rs b/crates/libs/rdl/src/formatter/mod.rs
index 344109300..0bf408574 100644
--- a/crates/libs/rdl/src/formatter/mod.rs
+++ b/crates/libs/rdl/src/formatter/mod.rs
@@ -297,10 +297,28 @@ fn push_attribute(attr: &str, output: &mut String) {
fn emit_error(input: &str, pos: usi... | 1 | 21 | 3 |
c582f821566d9cd5bb9c175a210269ac7fb2a0cc | Kenny Kerr | 2026-02-26T17:46:53 | Fix nightly clippy warnings (#3910) | diff --git a/crates/libs/bindgen/src/types/cpp_method.rs b/crates/libs/bindgen/src/types/cpp_method.rs
index b42e8ffb2..91eede5bb 100644
--- a/crates/libs/bindgen/src/types/cpp_method.rs
+++ b/crates/libs/bindgen/src/types/cpp_method.rs
@@ -184,11 +184,7 @@ impl CppMethod {
}
... | 1 | 5 | 9 |
de1942867e13b59ea465852897b8c0d16a89b1f0 | Kenny Kerr | 2026-02-26T00:24:57 | Improve leading `super` keyword support for `windows-rdl` (#3908) | diff --git a/crates/libs/rdl/src/formatter/mod.rs b/crates/libs/rdl/src/formatter/mod.rs
index fc92db8bd..718052cb0 100644
--- a/crates/libs/rdl/src/formatter/mod.rs
+++ b/crates/libs/rdl/src/formatter/mod.rs
@@ -74,6 +74,9 @@ enum Token<'a> {
#[token("struct")]
Struct,
+ #[token("r#")]
+ Raw,
+
... | 3 | 82 | 58 |
ee8c77519dc83cd85f88548a3fc374781821df82 | Kenny Kerr | 2026-02-24T18:44:59 | Formatting and type system improvements for `windows-rdl` (#3903) | diff --git a/crates/libs/rdl/src/formatter/mod.rs b/crates/libs/rdl/src/formatter/mod.rs
index 580ac2f71..fc92db8bd 100644
--- a/crates/libs/rdl/src/formatter/mod.rs
+++ b/crates/libs/rdl/src/formatter/mod.rs
@@ -56,6 +56,12 @@ enum Token<'a> {
#[token("(")]
OpenParenthesis,
+ #[token("[")]
+ OpenBrac... | 7 | 107 | 97 |
626337f2aeaeb492f5582be9123b1e6a89ee813f | Rafael Rivera | 2026-02-19T04:33:15 | Add formatter to `windows-rdl` (#3895) | diff --git a/crates/libs/rdl/Cargo.toml b/crates/libs/rdl/Cargo.toml
index 64bb95412..a3ca9aec7 100644
--- a/crates/libs/rdl/Cargo.toml
+++ b/crates/libs/rdl/Cargo.toml
@@ -13,8 +13,8 @@ readme = "readme.md"
workspace = true
[dependencies]
+logos = "0.16"
windows-metadata = { workspace = true }
syn = { workspace ... | 5 | 283 | 36 |
65c0c07b5b88ac031cf56acddd9f892efee1634a | Kenny Kerr | 2026-02-17T16:26:08 | Release 73 (#3891) | diff --git a/Cargo.toml b/Cargo.toml
index eb3a75a0a..149da97fe 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,7 +41,7 @@ windows-future = { version = "0.3.2", path = "crates/libs/future", default-featu
windows-implement = { version = "0.60.2", path = "crates/libs/implement", default-features = false }
windows-inter... | 2 | 2 | 2 |
ab015224113bda137644c31209fbec9b62f532ac | Rafael Rivera | 2026-02-11T15:39:40 | Remove `Drop` impl on `VARIANT` and `PROPVARIANT` (#3886) | diff --git a/crates/libs/core/src/handles.rs b/crates/libs/core/src/resources.rs
similarity index 61%
rename from crates/libs/core/src/handles.rs
rename to crates/libs/core/src/resources.rs
index 729b1bd08..239af2b15 100644
--- a/crates/libs/core/src/handles.rs
+++ b/crates/libs/core/src/resources.rs
@@ -1,33 +1,33 @@
... | 5 | 58 | 20 |
fe9202448b9c2bd21cdd94664ff3750ce461ad07 | Rafael Rivera | 2026-02-10T03:04:32 | Replace `rand` crate with `BCryptGenRandom` in sample (#3883) | diff --git a/crates/samples/windows/dcomp/Cargo.toml b/crates/samples/windows/dcomp/Cargo.toml
index d30ae0a8b..63ff66afd 100644
--- a/crates/samples/windows/dcomp/Cargo.toml
+++ b/crates/samples/windows/dcomp/Cargo.toml
@@ -4,9 +4,6 @@ version = "0.0.0"
edition = "2021"
publish = false
-[dependencies]
-rand = "0.9... | 2 | 26 | 12 |
a1db204a8565652cfa7229f2fa063abe6a6eaff8 | Charles Milette | 2026-02-04T16:12:01 | Add `Owned::into_raw` to relinquish ownership of an handle (#3869)
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/core/src/handles.rs b/crates/libs/core/src/handles.rs
index de395e36d..729b1bd08 100644
--- a/crates/libs/core/src/handles.rs
+++ b/crates/libs/core/src/handles.rs
@@ -2,7 +2,7 @@
///
/// This is similar to the [`Drop`] trait, and may be used to implement [`Drop`], but allows handles
/// to ... | 2 | 56 | 1 |
acccd541ef0d191bc50415d269b664724b4888ac | Kenny Kerr | 2026-01-27T17:16:59 | Add `await` sample (#3858) | diff --git a/crates/samples/windows/rss/Cargo.toml b/crates/samples/windows/rss/Cargo.toml
index da77c5824..c722bc952 100644
--- a/crates/samples/windows/rss/Cargo.toml
+++ b/crates/samples/windows/rss/Cargo.toml
@@ -7,8 +7,12 @@ publish = false
[dependencies.windows]
workspace = true
features = [
+ "std",
"... | 2 | 10 | 2 |
a7197b9d072112f0ab3559ef16db5ef5cd728bb5 | Copilot | 2026-01-16T16:52:46 | Document `--specific-deps` option in `windows-bindgen` (#3854)
Co-authored-by: kennykerr <kenny@kennykerr.ca> | diff --git a/crates/libs/bindgen/src/lib.rs b/crates/libs/bindgen/src/lib.rs
index aeb29c691..fa55fa0c2 100644
--- a/crates/libs/bindgen/src/lib.rs
+++ b/crates/libs/bindgen/src/lib.rs
@@ -80,6 +80,7 @@ use method_names::*;
/// | `--no-allow` | Avoids generating the default `allow` attribute. |
/// | `--no-comment` |... | 1 | 49 | 0 |
bcc24b5c5fb3fe0a7d00559ceee824abc66e030b | Kenny Kerr | 2026-01-08T20:03:48 | Release 72 (#3849) | diff --git a/Cargo.toml b/Cargo.toml
index 7e8a197c0..9fb560455 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -34,7 +34,7 @@ serde_json = {version = "1.0", default-features = false }
# generated dependencies
cppwinrt = { version = "0.3.4", path = "crates/libs/cppwinrt", default-features = false }
windows = { version =... | 7 | 7 | 7 |
3a454d71bc091c20181415bdcf21371bd15ff74d | Kenny Kerr | 2025-11-12T16:00:38 | Remove `mostly-unused` hint (#3811) | diff --git a/crates/libs/windows/Cargo.toml b/crates/libs/windows/Cargo.toml
index 33d98d4df..857076f28 100644
--- a/crates/libs/windows/Cargo.toml
+++ b/crates/libs/windows/Cargo.toml
@@ -12,9 +12,6 @@ categories = ["os::windows-apis"]
exclude = ["features.json"]
readme = "readme.md"
-[hints]
-mostly-unused = true... | 1 | 0 | 3 |
1b092112731cdc133525b3cc79e8dbd1577abe09 | Kenny Kerr | 2025-10-23T18:00:08 | Fix nested type indexing in the `windows-metadata` reader (#3799) | diff --git a/crates/libs/metadata/src/reader/type_index.rs b/crates/libs/metadata/src/reader/type_index.rs
index 752e1bb2f..feb4ff9e0 100644
--- a/crates/libs/metadata/src/reader/type_index.rs
+++ b/crates/libs/metadata/src/reader/type_index.rs
@@ -35,8 +35,8 @@ impl TypeIndex {
}
for map in... | 2 | 43 | 2 |
f304f96cdd649409244001e0c2ec7e6ff7716aa3 | Kenny Kerr | 2025-10-23T17:12:09 | Address new bit rotation nightly warnings (#3800) | diff --git a/crates/libs/core/src/imp/sha1.rs b/crates/libs/core/src/imp/sha1.rs
index 98d81cb60..b8a819cf0 100644
--- a/crates/libs/core/src/imp/sha1.rs
+++ b/crates/libs/core/src/imp/sha1.rs
@@ -343,8 +343,8 @@ const fn digest(mut state: [u32; 5], len: u64, blocks: Blocks) -> Digest {
Digest { data: state }
}
... | 1 | 2 | 2 |
df79a4b15b974674dccf13021619f0f3dab8d082 | Kenny Kerr | 2025-10-17T14:57:33 | Add comment for `combase` workaround handling (#3794) | diff --git a/crates/libs/bindgen/src/tables/method_def.rs b/crates/libs/bindgen/src/tables/method_def.rs
index 8bee57e7a..3e6214d31 100644
--- a/crates/libs/bindgen/src/tables/method_def.rs
+++ b/crates/libs/bindgen/src/tables/method_def.rs
@@ -49,6 +49,7 @@ impl MethodDef {
"RoGetAgileReference",
... | 1 | 1 | 0 |
8e81b80c65e6f53bef0452330b0cab54893530b2 | Kenny Kerr | 2025-10-14T16:55:17 | Fix for new warnings (#3789) | diff --git a/crates/tests/libs/sys/tests/simple.rs b/crates/tests/libs/sys/tests/simple.rs
index d075f77d8..df76e4628 100644
--- a/crates/tests/libs/sys/tests/simple.rs
+++ b/crates/tests/libs/sys/tests/simple.rs
@@ -43,8 +43,8 @@ fn callback() {
0
}
- let mut wc: WNDCLASSA = std::mem::ze... | 3 | 7 | 7 |
d468916ac27a36fb8a12bafc1bf5c0ec2fe92238 | Kenny Kerr | 2025-10-06T17:32:47 | Release 71 (#3786) | diff --git a/Cargo.toml b/Cargo.toml
index 780f0aa52..7e8a197c0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,22 +32,22 @@ serde = { version = "1.0", default-features = false }
syn = { version = "2.0", default-features = false }
serde_json = {version = "1.0", default-features = false }
# generated dependencies
-cp... | 33 | 50 | 50 |
73afb3ddf2e6a41c552e808923aa983f7262fc8f | Kenny Kerr | 2025-10-01T14:02:02 | Add `readme` workaround for `Cargo.toml` files (#3785) | diff --git a/crates/libs/bindgen/Cargo.toml b/crates/libs/bindgen/Cargo.toml
index 452d3a9f7..12d6122e1 100644
--- a/crates/libs/bindgen/Cargo.toml
+++ b/crates/libs/bindgen/Cargo.toml
@@ -7,6 +7,7 @@ license = "MIT OR Apache-2.0"
description = "Code generator for Windows metadata"
repository = "https://github.com/mi... | 28 | 29 | 1 |
a87e98eb5f6a6d55eea24d44a60cfe71e1462071 | Erich Gubler | 2025-09-30T18:27:37 | Trim trailing whitespace in Cargo.toml files (#3784) | diff --git a/crates/libs/strings/Cargo.toml b/crates/libs/strings/Cargo.toml
index 87ca8f265..37490bfcc 100644
--- a/crates/libs/strings/Cargo.toml
+++ b/crates/libs/strings/Cargo.toml
@@ -21,4 +21,3 @@ workspace = true
[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
targets = []
-
diff --git a/... | 4 | 6 | 7 |
58a7ea40c149a9bda96a900c7d7681dd282becab | Kenny Kerr | 2025-09-29T16:55:57 | Add `windows-bindgen` warning when `rustfmt` fails (#3778) | diff --git a/crates/libs/bindgen/src/config/format.rs b/crates/libs/bindgen/src/config/format.rs
index 887bc33e7..2f75a90e8 100644
--- a/crates/libs/bindgen/src/config/format.rs
+++ b/crates/libs/bindgen/src/config/format.rs
@@ -23,6 +23,16 @@ impl Config<'_> {
};
let tokens = format!("{preamble}{allo... | 5 | 59 | 24 |
aafae1f2d445b954f7032dcaf3bd702f85cf5899 | Kenny Kerr | 2025-09-25T18:05:37 | Release 70 (#3771) | diff --git a/Cargo.toml b/Cargo.toml
index 7f57baf04..780f0aa52 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -33,13 +33,13 @@ syn = { version = "2.0", default-features = false }
serde_json = {version = "1.0", default-features = false }
# generated dependencies
cppwinrt = { version = "0.3.3", path = "crates/libs/cppwi... | 16 | 25 | 25 |
9162058fae627d3549cde810435851869bdd92a3 | Kenny Kerr | 2025-09-24T18:03:44 | Add option to disable default agility for COM `implement` macro (#3770) | diff --git a/crates/libs/implement/src/gen.rs b/crates/libs/implement/src/gen.rs
index 56253b990..d6a31c114 100644
--- a/crates/libs/implement/src/gen.rs
+++ b/crates/libs/implement/src/gen.rs
@@ -306,19 +306,32 @@ fn gen_query_interface(inputs: &ImplementInputs) -> syn::ImplItemFn {
quote!()
};
- le... | 3 | 114 | 24 |
d96923fd320c6ca5bf143df4383ed5f8707f39e0 | Kenny Kerr | 2025-09-09T14:34:35 | Remove workaround for `with_exposed_provenance_mut` (#3749) | diff --git a/crates/libs/core/src/imp/weak_ref_count.rs b/crates/libs/core/src/imp/weak_ref_count.rs
index d62bacb54..f8fde660c 100644
--- a/crates/libs/core/src/imp/weak_ref_count.rs
+++ b/crates/libs/core/src/imp/weak_ref_count.rs
@@ -155,10 +155,7 @@ impl TearOff {
}
unsafe fn decode<'a>(value: isize) ->... | 1 | 1 | 4 |
3c848f78e7a8c8a7381a649880cce5ca7953329f | Kenny Kerr | 2025-09-09T13:10:39 | Fix new `cast_slice_from_raw_parts` clippy lint (#3750) | diff --git a/crates/libs/core/src/array.rs b/crates/libs/core/src/array.rs
index f889b9082..419fd2d4a 100644
--- a/crates/libs/core/src/array.rs
+++ b/crates/libs/core/src/array.rs
@@ -97,7 +97,7 @@ impl<T: Type<T>> Array<T> {
unsafe {
// Call the destructors of all the elements of the old array
... | 1 | 1 | 1 |
24490bf4929dfb78eb12e9f19dcfe28a9e23ca73 | Kenny Kerr | 2025-09-04T19:07:55 | Remove `ole32.dll` dependency from `windows-core` crate for compatibility (#3743) | diff --git a/crates/libs/bindgen/src/libraries.rs b/crates/libs/bindgen/src/libraries.rs
index 8b0e0762e..0c4b9da27 100644
--- a/crates/libs/bindgen/src/libraries.rs
+++ b/crates/libs/bindgen/src/libraries.rs
@@ -26,8 +26,7 @@ fn combine_libraries(
continue;
};
- // Windows li... | 9 | 32 | 19 |
df8a1e924f99cdac70c7eac12492961ed1e03507 | Kenny Kerr | 2025-08-28T13:35:44 | Simplify construction of `Ref` and `OutRef` directly (#3730) | diff --git a/crates/libs/core/src/out_ref.rs b/crates/libs/core/src/out_ref.rs
index 24ba06ca0..eb4fd0caf 100644
--- a/crates/libs/core/src/out_ref.rs
+++ b/crates/libs/core/src/out_ref.rs
@@ -29,3 +29,9 @@ impl<'a, T: Type<T>> From<&'a mut T::Default> for OutRef<'a, T> {
unsafe { core::mem::transmute(from) }
... | 5 | 148 | 8 |
21708e9d120f62fc71d40618bad7ac67bc6d6b4a | Kenny Kerr | 2025-08-27T21:59:47 | Workaround for `integer_to_ptr_transmutes` warning (#3731) | diff --git a/crates/libs/core/src/imp/weak_ref_count.rs b/crates/libs/core/src/imp/weak_ref_count.rs
index bd4a7e1e9..d62bacb54 100644
--- a/crates/libs/core/src/imp/weak_ref_count.rs
+++ b/crates/libs/core/src/imp/weak_ref_count.rs
@@ -155,7 +155,10 @@ impl TearOff {
}
unsafe fn decode<'a>(value: isize) ->... | 1 | 4 | 1 |
9728178bc8b73867ef12ed644d3194ae567059c0 | Kenny Kerr | 2025-08-18T23:46:06 | Add missing `unsafe` on `extern` blocks (#3728) | diff --git a/Cargo.toml b/Cargo.toml
index 2c7500b45..8f8503788 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,6 +22,7 @@ opt-level = 2
[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(windows_raw_dylib, windows_slim_errors)'] }
+missing_unsafe_on_extern = "warn"
[workspace.dependenc... | 15 | 17 | 16 |
6b11cb57a1a45492785c230103804138067f491c | Kenny Kerr | 2025-08-14T16:36:43 | Remove a few unnecessary wraps - private functions that only return `Ok` or `Some` (#3722) | diff --git a/crates/libs/bindgen/src/tokens/runtime.rs b/crates/libs/bindgen/src/tokens/runtime.rs
index 9d96347c7..bed1ace24 100644
--- a/crates/libs/bindgen/src/tokens/runtime.rs
+++ b/crates/libs/bindgen/src/tokens/runtime.rs
@@ -158,6 +158,7 @@ impl<T> RepInterp<T> {
// a name is bound multiple times, as the p... | 4 | 11 | 10 |
9109c447b030b989d9796aed2c7a1d2ea8192bed | Kenny Kerr | 2025-08-14T16:36:20 | Assume default `readme` fields in `Cargo.toml` (#3721) | diff --git a/crates/libs/bindgen/Cargo.toml b/crates/libs/bindgen/Cargo.toml
index 24407e15e..b3e0f7af3 100644
--- a/crates/libs/bindgen/Cargo.toml
+++ b/crates/libs/bindgen/Cargo.toml
@@ -6,7 +6,6 @@ rust-version = "1.82"
license = "MIT OR Apache-2.0"
description = "Code generator for Windows metadata"
repository =... | 28 | 26 | 29 |
571ebdd16326f885156ce35e8655c8d5ec2683f5 | Kenny Kerr | 2025-08-14T16:35:57 | Add `Debug` implementation for `Array<T>` (#3720) | diff --git a/crates/libs/core/src/array.rs b/crates/libs/core/src/array.rs
index 1c22fa1f4..01ad996e1 100644
--- a/crates/libs/core/src/array.rs
+++ b/crates/libs/core/src/array.rs
@@ -154,3 +154,12 @@ impl<T: Type<T>> Drop for Array<T> {
self.clear();
}
}
+
+impl<T: Type<T>> core::fmt::Debug for Array<T... | 3 | 37 | 16 |
93d3dc85866c3e72f691e2a1d8d7eb6e86206f40 | Kenny Kerr | 2025-08-14T13:20:20 | Apply changes for `use_self` Clippy lint to hand-written code (#3718) | diff --git a/crates/libs/bindgen/src/tokens/runtime.rs b/crates/libs/bindgen/src/tokens/runtime.rs
index b5b9270fd..9d96347c7 100644
--- a/crates/libs/bindgen/src/tokens/runtime.rs
+++ b/crates/libs/bindgen/src/tokens/runtime.rs
@@ -4,17 +4,17 @@ use core::ops::BitOr;
pub struct HasIterator; // True
pub struct ThereI... | 29 | 215 | 217 |
33471600194f675f5fa2c903e5a15a7488a52592 | Kenny Kerr | 2025-08-13T19:46:57 | Add `Debug` implementation for `HStringBuilder` (#3713) | diff --git a/crates/libs/strings/src/hstring_builder.rs b/crates/libs/strings/src/hstring_builder.rs
index fcbe4d988..abc0ab520 100644
--- a/crates/libs/strings/src/hstring_builder.rs
+++ b/crates/libs/strings/src/hstring_builder.rs
@@ -98,3 +98,13 @@ impl Drop for HStringBuilder {
}
}
}
+
+impl core::fm... | 2 | 18 | 0 |
82e86eb595ee54028b7f9202ae60013642b52df8 | Kenny Kerr | 2025-08-07T15:56:11 | Properly locate and simplify the `ArrayProxy` type support ABI (#3704) | diff --git a/crates/libs/bindgen/src/types/method.rs b/crates/libs/bindgen/src/types/method.rs
index 4cc581a49..dd2b7cefc 100644
--- a/crates/libs/bindgen/src/types/method.rs
+++ b/crates/libs/bindgen/src/types/method.rs
@@ -53,7 +53,7 @@ impl Method {
} else if param.is_winrt_array() {
qu... | 8 | 123 | 142 |
2cb5746fc122556f10f2b88b2a71568e5641b350 | Kenny Kerr | 2025-08-06T20:11:31 | The internal `windows-core` bindings need not be public (#3702) | diff --git a/crates/libs/core/src/imp/mod.rs b/crates/libs/core/src/imp/mod.rs
index 56a370dab..5a94ed6c7 100644
--- a/crates/libs/core/src/imp/mod.rs
+++ b/crates/libs/core/src/imp/mod.rs
@@ -8,7 +8,7 @@ mod ref_count;
mod sha1;
mod weak_ref_count;
-pub use bindings::*;
+pub(crate) use bindings::*;
pub use can_in... | 2 | 7 | 2 |
8e9e49c8f2c08703715ddcf7f44836cbb8eb7512 | Kenny Kerr | 2025-08-06T12:58:02 | Add specific test for `interface` macro `-> Result` transformation (#3698) | diff --git a/crates/tests/libs/interface/tests/result.rs b/crates/tests/libs/interface/tests/result.rs
new file mode 100644
index 000000000..10c106fa5
--- /dev/null
+++ b/crates/tests/libs/interface/tests/result.rs
@@ -0,0 +1,84 @@
+#![allow(non_snake_case)]
+
+use windows::{core::*, Win32::Foundation::*};
+
+// The in... | 1 | 84 | 0 |
897ea820d050d43844dff905ecade78462760f1a | Kenny Kerr | 2025-07-31T17:37:03 | Address most Clippy warnings in test code (#3691) | diff --git a/crates/libs/version/src/lib.rs b/crates/libs/version/src/lib.rs
index 6307e166d..11c86f870 100644
--- a/crates/libs/version/src/lib.rs
+++ b/crates/libs/version/src/lib.rs
@@ -78,6 +78,7 @@ impl OSVERSIONINFOEXW {
}
#[cfg(test)]
+#[allow(clippy::nonminimal_bool)] // explicit logic is intentionally bein... | 24 | 55 | 33 |
eb4c5609e598316f3d4c33cea5637632a1f31ae6 | Kenny Kerr | 2025-07-31T13:27:48 | Stop overwriting the ABI in `windows-link` (#3689) | diff --git a/crates/libs/link/src/lib.rs b/crates/libs/link/src/lib.rs
index 05f802a54..dbecf9f3b 100644
--- a/crates/libs/link/src/lib.rs
+++ b/crates/libs/link/src/lib.rs
@@ -20,8 +20,7 @@ macro_rules! link {
macro_rules! link {
($library:literal $abi:literal $($link_name:literal)? fn $($function:tt)*) => (
... | 3 | 15 | 22 |
3871b00997affd1fdb83209ea5b3c2497ae25f29 | Kenny Kerr | 2025-07-28T15:48:42 | Minor release of `windows-targets` (#3683) | diff --git a/Cargo.toml b/Cargo.toml
index f7221de97..61d678074 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -50,6 +50,6 @@ windows-result = { version = "0.3.4", path = "crates/libs/result", default-featu
windows-services = { version = "0.24.0", path = "crates/libs/services", default-features = false }
windows-strings... | 2 | 2 | 2 |
cff9e38d4e63885d5c2211c21ab29c8cc798c066 | Josh Triplett | 2025-07-23T16:44:15 | Add `hints.mostly-unused` to `windows` crate (#3660)
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/windows/Cargo.toml b/crates/libs/windows/Cargo.toml
index 959b6216c..2d5e417c8 100644
--- a/crates/libs/windows/Cargo.toml
+++ b/crates/libs/windows/Cargo.toml
@@ -13,6 +13,9 @@ readme = "readme.md"
categories = ["os::windows-apis"]
exclude = ["features.json"]
+[hints]
+mostly-unused = true... | 1 | 3 | 0 |
980faebab3e3c420f4eb2fca7083ad89a03f2111 | Kenny Kerr | 2025-07-21T17:49:45 | Add reminder to remove hardcoded "C" before next major update (#3671) | diff --git a/crates/libs/link/src/lib.rs b/crates/libs/link/src/lib.rs
index feee0da27..05f802a54 100644
--- a/crates/libs/link/src/lib.rs
+++ b/crates/libs/link/src/lib.rs
@@ -20,6 +20,7 @@ macro_rules! link {
macro_rules! link {
($library:literal $abi:literal $($link_name:literal)? fn $($function:tt)*) => (
... | 1 | 1 | 0 |
a77a382c4e4c89f39a12a1e1f84a85ebe9bad7e4 | Kenny Kerr | 2025-07-21T17:48:50 | Forward `link` macro for `raw-dylib` support (#3670) | diff --git a/crates/libs/targets/Cargo.toml b/crates/libs/targets/Cargo.toml
index 4bafa4387..39c94d3b2 100644
--- a/crates/libs/targets/Cargo.toml
+++ b/crates/libs/targets/Cargo.toml
@@ -13,6 +13,9 @@ readme = "readme.md"
[lints]
workspace = true
+[target.'cfg(windows_raw_dylib)'.dependencies]
+windows-link = { w... | 2 | 5 | 25 |
052630f78610cf3c19f41c1ac02a6ffab2d801a8 | Kenny Kerr | 2025-07-21T17:09:39 | Clarify and test extern abi workaround for variadic function support (#3669) | diff --git a/crates/tests/misc/calling_convention/Cargo.toml b/crates/tests/misc/calling_convention/Cargo.toml
index 2f61794c6..98c20096d 100644
--- a/crates/tests/misc/calling_convention/Cargo.toml
+++ b/crates/tests/misc/calling_convention/Cargo.toml
@@ -25,3 +25,6 @@ features = [
"Win32_System_SystemInformation... | 3 | 56 | 0 |
99208c88a71ad55dae24565d75e81eb3dba8bfab | Rafael Rivera | 2025-07-17T17:59:15 | Fix use-after-free in json_validator sample (#3668) | diff --git a/crates/samples/components/json_validator/src/lib.rs b/crates/samples/components/json_validator/src/lib.rs
index 5e45e6407..2addc06e0 100644
--- a/crates/samples/components/json_validator/src/lib.rs
+++ b/crates/samples/components/json_validator/src/lib.rs
@@ -315,7 +315,7 @@ fn sanitized_value() {
... | 1 | 1 | 1 |
b905053f42f75ad08a79e85f4a598748a639fb4c | Kenny Kerr | 2025-07-15T19:26:43 | Fix nightly Clippy warning (#3665) | diff --git a/crates/libs/core/src/imp/sha1.rs b/crates/libs/core/src/imp/sha1.rs
index deab3ae51..8ac0fdbad 100644
--- a/crates/libs/core/src/imp/sha1.rs
+++ b/crates/libs/core/src/imp/sha1.rs
@@ -16,6 +16,12 @@ pub struct ConstBuffer {
head: usize,
}
+impl Default for ConstBuffer {
+ fn default() -> Self {
... | 1 | 6 | 0 |
975af89376bbff0f4baa99d52a85b429eca2c519 | Kenny Kerr | 2025-07-11T15:07:32 | Fix new Rust nightly warnings (#3659) | diff --git a/crates/libs/bindgen/src/derive.rs b/crates/libs/bindgen/src/derive.rs
index 6c94712e5..786b69bce 100644
--- a/crates/libs/bindgen/src/derive.rs
+++ b/crates/libs/bindgen/src/derive.rs
@@ -19,7 +19,7 @@ impl Derive {
let derive = derive
.split(',')
- .filter(|&... | 1 | 1 | 1 |
f1a48d098219c8aca746092e0351e4a52589b292 | Kenny Kerr | 2025-07-09T15:14:44 | Update `toml` dependency from 0.8 to 0.9 (#3655) | diff --git a/Cargo.toml b/Cargo.toml
index 66ad4c8d7..4ff3c564e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,7 +31,6 @@ proc-macro2 = { version = "1.0", default-features = false }
quote = { version = "1.0", default-features = false }
serde = { version = "1.0", default-features = false }
syn = { version = "2.0", d... | 2 | 1 | 2 |
736768b76fafb88df67d7cf3586afe02f0dd0b93 | Kenny Kerr | 2025-07-01T18:02:32 | Fix new nightly Clippy warning (#3649) | diff --git a/crates/tools/yml/src/test.rs b/crates/tools/yml/src/test.rs
index aa975a3bb..0652f7f80 100644
--- a/crates/tools/yml/src/test.rs
+++ b/crates/tools/yml/src/test.rs
@@ -70,7 +70,7 @@ jobs:
for (count, package) in helpers::crates("crates").iter().enumerate() {
let name = &package.name;
- ... | 1 | 1 | 1 |
6d5ac028031e4eda5626e8da3d3bf3295902977b | Kenny Kerr | 2025-06-23T18:57:20 | Release 67 (#3639) | diff --git a/Cargo.toml b/Cargo.toml
index 77841974a..66ad4c8d7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -45,7 +45,7 @@ windows-interface = { version = "0.59.1", path = "crates/libs/interface", defaul
windows-link = { version = "0.1.3", path = "crates/libs/link", default-features = false }
windows-metadata = { ver... | 2 | 2 | 2 |
3d19e0068cc80b7076f3aa945a9e0a46da0bfa62 | Kenny Kerr | 2025-06-12T18:59:48 | Release 66.2 (#3629) | diff --git a/Cargo.toml b/Cargo.toml
index 38dbcc73e..77841974a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -34,22 +34,22 @@ syn = { version = "2.0", default-features = false }
toml = { version = "0.8", features = ["parse"] }
serde_json = {version = "1.0", default-features = false }
# generated dependencies
-cppwinr... | 6 | 10 | 10 |
d73ed7e7a935b115613ddc1802bce27e4e65fcfa | Chris Denton | 2025-06-12T17:31:28 | Revert ABI changes to the `link` macros (#3628) | diff --git a/crates/libs/link/src/lib.rs b/crates/libs/link/src/lib.rs
index 0d0f83103..feee0da27 100644
--- a/crates/libs/link/src/lib.rs
+++ b/crates/libs/link/src/lib.rs
@@ -32,7 +32,7 @@ macro_rules! link {
#[macro_export]
macro_rules! link {
($library:literal $abi:literal $($link_name:literal)? fn $($functi... | 2 | 3 | 16 |
e41ab43b3037e0abf7fcc78b269c2ff76934330a | Kenny Kerr | 2025-06-11T19:32:35 | Release 66 (#3624) | diff --git a/Cargo.toml b/Cargo.toml
index 7cf6f2f7a..2b4961683 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -34,22 +34,22 @@ syn = { version = "2.0", default-features = false }
toml = { version = "0.8", features = ["parse"] }
serde_json = {version = "1.0", default-features = false }
# generated dependencies
-cppwinr... | 11 | 16 | 16 |
f8e2899f990e6b115b33f4b6f423c00cbad423d2 | Kenny Kerr | 2025-06-06T16:42:11 | Address new lifetime errors in Rust 1.89 (#3620) | diff --git a/crates/libs/metadata/src/reader/blob.rs b/crates/libs/metadata/src/reader/blob.rs
index 4d8b2488e..e90a6cbd3 100644
--- a/crates/libs/metadata/src/reader/blob.rs
+++ b/crates/libs/metadata/src/reader/blob.rs
@@ -61,7 +61,7 @@ impl<'a> Blob<'a> {
}
}
- pub fn read_modifiers(&mut self) -> ... | 16 | 42 | 42 |
6d775b9477ab6ab18972e8c6a37b26310d11c8d9 | Kenny Kerr | 2025-05-21T15:50:13 | Update `rand` dependency in `DirectComposition` sample (#3611) | diff --git a/crates/samples/windows/dcomp/Cargo.toml b/crates/samples/windows/dcomp/Cargo.toml
index 6aecbd18e..57e399253 100644
--- a/crates/samples/windows/dcomp/Cargo.toml
+++ b/crates/samples/windows/dcomp/Cargo.toml
@@ -5,7 +5,7 @@ edition = "2021"
publish = false
[dependencies]
-rand = "0.8.5"
+rand = "0.9"
... | 2 | 3 | 3 |
bb15076311bf185400ecd244d47596b8415450fa | Kenny Kerr | 2025-05-19T17:55:13 | Apply `must_use` to the `bindgen` function (#3605) | diff --git a/crates/libs/bindgen/src/lib.rs b/crates/libs/bindgen/src/lib.rs
index bd58b5172..c683cf30f 100644
--- a/crates/libs/bindgen/src/lib.rs
+++ b/crates/libs/bindgen/src/lib.rs
@@ -54,6 +54,7 @@ use method_names::*;
/// The Windows code generator.
#[track_caller]
+#[must_use]
pub fn bindgen<I, S>(args: I) ... | 26 | 48 | 28 |
e404859f64469c7536b6388fc454efc41029b146 | Kenny Kerr | 2025-04-30T00:48:34 | Remove `rayon` dependency (#3588) | diff --git a/Cargo.toml b/Cargo.toml
index c9dcd961c..535675197 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,7 +28,6 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(windows_raw_dylib, windows
helpers = { path = "crates/tools/helpers" }
proc-macro2 = { version = "1.0", default-features = false }
quote = {... | 3 | 2 | 5 |
85be2dd50ef4e2bb8288523bbd798aa953e76578 | Kenny Kerr | 2025-04-27T00:27:34 | Fix new clippy warnings (#3585) | diff --git a/crates/libs/bindgen/src/lib.rs b/crates/libs/bindgen/src/lib.rs
index e590fa907..bd58b5172 100644
--- a/crates/libs/bindgen/src/lib.rs
+++ b/crates/libs/bindgen/src/lib.rs
@@ -199,7 +199,7 @@ where
config.write(tree);
if index {
- index::write(&types, &format!("{}/features.json", output)... | 7 | 7 | 7 |
206325e53b976dc66e9d36b8f8bf7a74a905d16c | CrazyboyQCD | 2025-04-18T14:44:37 | Remove extra call of `message()` in `Error` formatting (#3579) | diff --git a/crates/libs/result/src/error.rs b/crates/libs/result/src/error.rs
index 768b3bd32..60a4e1e34 100644
--- a/crates/libs/result/src/error.rs
+++ b/crates/libs/result/src/error.rs
@@ -224,7 +224,7 @@ impl core::fmt::Display for Error {
if message.is_empty() {
core::write!(fmt, "{}", self.... | 1 | 1 | 1 |
8d40a84d0428ca23ee43cc320742d92d78db04c1 | Allan Zhang | 2025-04-02T18:32:24 | Derive `Hash` for `Type` in `windows_registry` (#3564) | diff --git a/crates/libs/registry/src/type.rs b/crates/libs/registry/src/type.rs
index 7f665db41..5f895e8c1 100644
--- a/crates/libs/registry/src/type.rs
+++ b/crates/libs/registry/src/type.rs
@@ -1,7 +1,7 @@
use super::*;
/// The possible types that a registry value could have.
-#[derive(Copy, Clone, PartialEq, Eq... | 2 | 8 | 1 |
41725fe6e6db46cbbca7ac7a30cbf72049f23512 | Kenny Kerr | 2025-04-01T11:57:01 | Add fast indexing support to `windows-ecma335` (#3562) | diff --git a/crates/libs/ecma335/src/reader/blob.rs b/crates/libs/ecma335/src/reader/blob.rs
index 72c06bc78..bf2733ec5 100644
--- a/crates/libs/ecma335/src/reader/blob.rs
+++ b/crates/libs/ecma335/src/reader/blob.rs
@@ -1,7 +1,8 @@
use super::*;
pub struct Blob<'a> {
- file: &'a File,
+ index: &'a Index,
+ ... | 16 | 209 | 167 |
79c2c3917cac805aeb0d000ae9e32e719b514ff4 | Kenny Kerr | 2025-03-18T14:23:49 | Fix circular dependency (#3549) | diff --git a/crates/libs/implement/Cargo.toml b/crates/libs/implement/Cargo.toml
index daea8303d..23cf8b8f4 100644
--- a/crates/libs/implement/Cargo.toml
+++ b/crates/libs/implement/Cargo.toml
@@ -14,7 +14,7 @@ quote = { workspace = true }
syn = { workspace = true, features = ["parsing", "proc-macro", "printing", "ful... | 2 | 2 | 2 |
844f8cb992fc2f45266858d63cfdb9a85b503c18 | Kenny Kerr | 2025-03-17T19:33:04 | Simpler toml configuration (#3547) | diff --git a/Cargo.toml b/Cargo.toml
index 3216ec027..9c582ad8d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,9 +15,6 @@ exclude = [
"crates/targets/baseline",
]
-# This compiles external dependencies (outside crates) with full optimization.
-# This can improve run time while iterating on development (testing... | 18 | 64 | 167 |
178c33b2ffc043f61bc67c6f81b3f2ffaf71ecaa | Chris Ohk | 2025-03-14T15:19:08 | Correct minor typos (#3544) | diff --git a/crates/libs/future/src/future.rs b/crates/libs/future/src/future.rs
index 2330b624b..ea814fa6a 100644
--- a/crates/libs/future/src/future.rs
+++ b/crates/libs/future/src/future.rs
@@ -24,7 +24,7 @@ pub trait Async: Interface {
fn set_completed<F: Fn() + Send + 'static>(&self, handler: F) -> Result<()>... | 4 | 6 | 6 |
ff23ceb02b4aff8a47a338219d2819285dbcd154 | Kenny Kerr | 2025-03-12T13:56:26 | Additional ECMA-335 fixes for correctness (#3537) | diff --git a/crates/libs/bindgen/src/method_names.rs b/crates/libs/bindgen/src/method_names.rs
index 31319d1fd..2feca7269 100644
--- a/crates/libs/bindgen/src/method_names.rs
+++ b/crates/libs/bindgen/src/method_names.rs
@@ -1,5 +1,6 @@
use super::*;
+#[derive(Default)]
pub struct MethodNames(HashMap<String, u32>);... | 9 | 32 | 15 |
ac28f3536450efed43e7d2dc3415ff9d6cb16d71 | Kenny Kerr | 2025-03-12T13:08:05 | Limit unsafe code in `windows-version` crate (#3536) | diff --git a/crates/libs/version/src/lib.rs b/crates/libs/version/src/lib.rs
index 5b197c9a4..c1046dd34 100644
--- a/crates/libs/version/src/lib.rs
+++ b/crates/libs/version/src/lib.rs
@@ -35,20 +35,17 @@ impl OsVersion {
/// Gets the version information of the currently running operating system.
#[cfg(not(te... | 1 | 21 | 17 |
c66decb30497f75c2da9eb093e92897b8b1b984f | Kenny Kerr | 2025-03-05T19:50:27 | Tweaks to support Edition 2024 of Rust in future (#3530) | diff --git a/crates/libs/bindgen/src/types/cpp_const.rs b/crates/libs/bindgen/src/types/cpp_const.rs
index 1e706f634..1356ba263 100644
--- a/crates/libs/bindgen/src/types/cpp_const.rs
+++ b/crates/libs/bindgen/src/types/cpp_const.rs
@@ -109,7 +109,7 @@ impl CppConst {
}
} else if let Some(attribut... | 16 | 141 | 104 |
cd002f56b46bca000d08c3013c003e2e4ed2fef4 | robmikh | 2025-03-04T14:22:46 | Add `scale` and `skew` functions to `Matrix3x2` (#3527) | diff --git a/crates/libs/numerics/src/matrix3x2.rs b/crates/libs/numerics/src/matrix3x2.rs
index 72412ead3..9f036b165 100644
--- a/crates/libs/numerics/src/matrix3x2.rs
+++ b/crates/libs/numerics/src/matrix3x2.rs
@@ -21,11 +21,38 @@ impl Matrix3x2 {
M32: y,
}
}
- pub fn rotation(angle: f32... | 3 | 40 | 8 |
4c707bc91d05705f088271f23a581ce9a82580c5 | Kenny Kerr | 2025-02-27T19:57:52 | Detect nested structs with differing layout or packing requirements (#3522) | diff --git a/crates/libs/bindgen/src/types/cpp_struct.rs b/crates/libs/bindgen/src/types/cpp_struct.rs
index b0c0e77a2..33a0d09ae 100644
--- a/crates/libs/bindgen/src/types/cpp_struct.rs
+++ b/crates/libs/bindgen/src/types/cpp_struct.rs
@@ -279,17 +279,45 @@ impl CppStruct {
pub fn has_explicit_layout(&self) -> bo... | 10 | 260 | 38 |
e4ffdcfaf94846a1aab8bfd2e8ec1816faa2456a | sivadeilra | 2025-02-25T17:44:32 | Simplify and refactor the `implement` macro (#3507) | diff --git a/crates/libs/implement/src/gen.rs b/crates/libs/implement/src/gen.rs
new file mode 100644
index 000000000..661550dd3
--- /dev/null
+++ b/crates/libs/implement/src/gen.rs
@@ -0,0 +1,579 @@
+//! Generates output for the `implement` proc macro.
+//!
+//! Each function in this module focuses on generating one t... | 4 | 844 | 352 |
c1f45a442e753b05332891f05542ad7f8df80ba0 | sivadeilra | 2025-02-24T22:00:03 | Remove `IUnknownImpl::from_inner_ref` as no longer needed (#3513)
Co-authored-by: Arlie Davis <ardavis@microsoft.com> | diff --git a/crates/libs/core/src/unknown.rs b/crates/libs/core/src/unknown.rs
index 680f0baaf..92bb3ad70 100644
--- a/crates/libs/core/src/unknown.rs
+++ b/crates/libs/core/src/unknown.rs
@@ -117,16 +117,6 @@ pub trait IUnknownImpl {
/// Gets the trust level of the current object.
unsafe fn GetTrustLevel(&se... | 3 | 1 | 28 |
7417e58cc9f5f3479acf1a7ef383f5096f6f6170 | sivadeilra | 2025-02-21T22:22:35 | Remove `cast` from `implement` macro (#3506) | diff --git a/crates/libs/core/src/com_object.rs b/crates/libs/core/src/com_object.rs
index 2249569ac..bcd1926a5 100644
--- a/crates/libs/core/src/com_object.rs
+++ b/crates/libs/core/src/com_object.rs
@@ -1,5 +1,5 @@
use crate::imp::Box;
-use crate::{AsImpl, IUnknown, IUnknownImpl, Interface, InterfaceRef};
+use crate... | 5 | 6 | 28 |
17c1a8b6df3279bb9ba7a0cdbf8697fb410b3a39 | Kenny Kerr | 2025-02-21T17:24:53 | Update minor version dependencies (#3503) | diff --git a/crates/libs/collections/Cargo.toml b/crates/libs/collections/Cargo.toml
index fa7a992b3..c657fb0c1 100644
--- a/crates/libs/collections/Cargo.toml
+++ b/crates/libs/collections/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "windows-collections"
-version = "0.1.0"
+version = "0.1.1"
edition = "2021"
rust-... | 6 | 15 | 15 |
2ebb231bff5bd778c569696cbbe9f83b81d0b6e2 | sivadeilra | 2025-02-21T00:53:15 | Optimize external packages (#3501)
Co-authored-by: Arlie Davis <ardavis@microsoft.com> | diff --git a/Cargo.toml b/Cargo.toml
index a12ee5cd6..3e287c982 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,6 +15,12 @@ exclude = [
"crates/targets/baseline",
]
+# This compiles external dependencies (outside crates) with full optimization.
+# This can improve run time while iterating on development (testin... | 1 | 6 | 0 |
ed36c28bd7b19d09154dbb6dae33b00ac955824b | Kenny Kerr | 2025-02-20T14:28:01 | Add optional warnings for `windows-bindgen` to improve diagnostics (#3498) | diff --git a/crates/libs/bindgen/src/lib.rs b/crates/libs/bindgen/src/lib.rs
index 6186d9083..a781eb9fc 100644
--- a/crates/libs/bindgen/src/lib.rs
+++ b/crates/libs/bindgen/src/lib.rs
@@ -22,6 +22,7 @@ mod type_name;
mod type_tree;
mod types;
mod value;
+mod warnings;
mod winmd;
mod writer;
@@ -44,6 +45,7 @@ us... | 7 | 132 | 15 |
ce59d852951f4ee547fa15a228d847c3e7859a40 | Kenny Kerr | 2025-02-19T15:48:26 | Avoid memory explosion when stress testing `bindgen` (#3496) | diff --git a/crates/libs/bindgen/src/derive_writer.rs b/crates/libs/bindgen/src/derive_writer.rs
index 63118f7b0..dfd601a2b 100644
--- a/crates/libs/bindgen/src/derive_writer.rs
+++ b/crates/libs/bindgen/src/derive_writer.rs
@@ -3,7 +3,7 @@ use super::*;
pub struct DeriveWriter(BTreeSet<String>);
impl DeriveWriter ... | 28 | 121 | 90 |
a650e7d2c004366e98053207afec6421a0a29684 | Kenny Kerr | 2025-02-14T12:51:46 | Deduplicate required interfaces (#3487) | diff --git a/crates/libs/bindgen/src/types/class.rs b/crates/libs/bindgen/src/types/class.rs
index bc8d27dfd..d63e307f8 100644
--- a/crates/libs/bindgen/src/types/class.rs
+++ b/crates/libs/bindgen/src/types/class.rs
@@ -21,8 +21,7 @@ impl Class {
}
pub fn write(&self, writer: &Writer) -> TokenStream {
- ... | 2 | 7 | 5 |
91cfd289eeae05fa0bb6bdbe37a8426061f77c6e | Kenny Kerr | 2025-02-12T20:45:18 | Support metadata with `MethodDef` constructor parent resolution (#3484) | diff --git a/crates/libs/bindgen/src/tables/attribute.rs b/crates/libs/bindgen/src/tables/attribute.rs
index 0b5d2e867..a3a4bcd17 100644
--- a/crates/libs/bindgen/src/tables/attribute.rs
+++ b/crates/libs/bindgen/src/tables/attribute.rs
@@ -12,14 +12,11 @@ impl Attribute {
}
pub fn name(&self) -> &'static s... | 4 | 46 | 5 |
35c31ada30ecde47c21c580929b558e5f6dc7c1c | Kenny Kerr | 2025-02-07T02:56:03 | Optimize `Iterator` for `IIterator<T>` (#3476) | diff --git a/crates/libs/bindgen/src/types/interface.rs b/crates/libs/bindgen/src/types/interface.rs
index d71900b2c..ddb8873ab 100644
--- a/crates/libs/bindgen/src/types/interface.rs
+++ b/crates/libs/bindgen/src/types/interface.rs
@@ -461,7 +461,11 @@ impl Interface {
type Item = T;
... | 4 | 16 | 4 |
d9932217a7a5a3294d1dc6b9f6e02166be07333a | Kenny Kerr | 2025-02-03T19:49:08 | Harden nested type discovery (#3471) | diff --git a/crates/libs/bindgen/src/tables/type_def.rs b/crates/libs/bindgen/src/tables/type_def.rs
index 707220874..fcbd34f5e 100644
--- a/crates/libs/bindgen/src/tables/type_def.rs
+++ b/crates/libs/bindgen/src/tables/type_def.rs
@@ -56,6 +56,10 @@ impl TypeDef {
self.file().equal_range(2, self.index() + 1)... | 3 | 43 | 17 |
e135ae67a70cf1599c00cc73de24a6f8ef244285 | Kenny Kerr | 2025-01-31T17:15:56 | Ensure Win32 extensions compile with `no_std` (#3469) | diff --git a/crates/libs/windows/src/extensions/Win32/Networking.rs b/crates/libs/windows/src/extensions/Win32/Networking.rs
index ca8553e49..48f224046 100644
--- a/crates/libs/windows/src/extensions/Win32/Networking.rs
+++ b/crates/libs/windows/src/extensions/Win32/Networking.rs
@@ -1,2 +1,2 @@
-#[cfg(feature = "Win32... | 2 | 7 | 1 |
493d5da869fb2ae5618f9d868fde1317e842e00e | Kenny Kerr | 2025-01-22T13:45:37 | Simplify dependency tracking (#3460) | diff --git a/crates/libs/bindgen/src/signature.rs b/crates/libs/bindgen/src/signature.rs
index 95254efd7..ce849e13a 100644
--- a/crates/libs/bindgen/src/signature.rs
+++ b/crates/libs/bindgen/src/signature.rs
@@ -14,10 +14,6 @@ impl Signature {
.fold(0, |sum, param| sum + std::cmp::max(4, param.size()))
... | 16 | 249 | 241 |
cbcfa6e8ff88936c97163cb5262b0ad69aa60c32 | Kenny Kerr | 2025-01-17T21:57:52 | Remove workaround for invalid metadata (#3457) | diff --git a/crates/libs/bindgen/src/types/cpp_method.rs b/crates/libs/bindgen/src/types/cpp_method.rs
index b13f5ab97..ab56136c6 100644
--- a/crates/libs/bindgen/src/types/cpp_method.rs
+++ b/crates/libs/bindgen/src/types/cpp_method.rs
@@ -103,14 +103,6 @@ impl CppMethod {
param_hints[position... | 1 | 0 | 8 |
7172cecde0054e3e1e2a307208a27a7478d3962b | Kenny Kerr | 2025-01-17T13:18:42 | Use unique path for `cppwinrt` temp file (#3455) | diff --git a/crates/libs/cppwinrt/Cargo.toml b/crates/libs/cppwinrt/Cargo.toml
index d08ec1a80..37282d64c 100644
--- a/crates/libs/cppwinrt/Cargo.toml
+++ b/crates/libs/cppwinrt/Cargo.toml
@@ -16,3 +16,7 @@ workspace = true
[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
targets = []
+
+[depende... | 2 | 37 | 7 |
0a2c0b98799f0c5f2125c04b814192761c6484ef | Kenny Kerr | 2025-01-15T19:17:15 | Remap the Win32 definition of `EventRegistrationToken` (#3445) | diff --git a/crates/libs/bindgen/src/type_name.rs b/crates/libs/bindgen/src/type_name.rs
index e64c6081b..4b8be42d5 100644
--- a/crates/libs/bindgen/src/type_name.rs
+++ b/crates/libs/bindgen/src/type_name.rs
@@ -25,6 +25,8 @@ impl TypeName {
pub const HResult: Self = Self("Windows.Foundation", "HResult");
... | 3 | 3 | 10 |
87f268ad69d9a97f0cec7e8f651ea8ab95f80774 | Kenny Kerr | 2025-01-13T19:59:42 | Use `Ref` for generic type parameters (#3435) | diff --git a/crates/libs/bindgen/src/types/method.rs b/crates/libs/bindgen/src/types/method.rs
index a6555bdf4..17615d0a5 100644
--- a/crates/libs/bindgen/src/types/method.rs
+++ b/crates/libs/bindgen/src/types/method.rs
@@ -47,7 +47,7 @@ impl Method {
quote! { core::slice::from_raw_parts(core::mem... | 18 | 115 | 97 |
c8616a4fd8ce0856fe5b289ee104c3547ca53bb0 | Kenny Kerr | 2025-01-09T18:38:12 | Use dedicated arch `cfg` writer (#3430) | diff --git a/crates/libs/bindgen/src/types/cpp_delegate.rs b/crates/libs/bindgen/src/types/cpp_delegate.rs
index c2f4cd6a8..280df9e9e 100644
--- a/crates/libs/bindgen/src/types/cpp_delegate.rs
+++ b/crates/libs/bindgen/src/types/cpp_delegate.rs
@@ -53,9 +53,11 @@ impl CppDelegate {
self.dependencies(&mut d... | 5 | 43 | 31 |
aa600c099259242541c24ca8c186abb75263f233 | Kenny Kerr | 2025-01-09T15:51:51 | Fix test build reliability (#3429) | diff --git a/crates/libs/bindgen/src/config.rs b/crates/libs/bindgen/src/config.rs
deleted file mode 100644
index b91009595..000000000
--- a/crates/libs/bindgen/src/config.rs
+++ /dev/null
@@ -1,38 +0,0 @@
-use super::*;
-
-use std::sync::atomic::{AtomicPtr, Ordering};
-
-static CONFIG: AtomicPtr<Config> = AtomicPtr::n... | 33 | 221 | 205 |
ffb90786c00e03d8684e2bf46695b90fb6b4a7c2 | Kenny Kerr | 2025-01-08T21:22:19 | Simplify internal `windows-bindgen` caching (#3427) | diff --git a/crates/libs/bindgen/src/config.rs b/crates/libs/bindgen/src/config.rs
new file mode 100644
index 000000000..b91009595
--- /dev/null
+++ b/crates/libs/bindgen/src/config.rs
@@ -0,0 +1,38 @@
+use super::*;
+
+use std::sync::atomic::{AtomicPtr, Ordering};
+
+static CONFIG: AtomicPtr<Config> = AtomicPtr::new(s... | 33 | 205 | 221 |
ec062c2d1a575b0eb019db868ce18fae2227859b | kerosina | 2025-01-08T19:58:45 | Allow name and value types in `set_string` to differ (#3412)
Co-authored-by: Kenny Kerr <kenny@kennykerr.ca> | diff --git a/crates/libs/registry/src/key.rs b/crates/libs/registry/src/key.rs
index 66461daec..9af1282a8 100644
--- a/crates/libs/registry/src/key.rs
+++ b/crates/libs/registry/src/key.rs
@@ -91,7 +91,7 @@ impl Key {
}
/// Sets the name and value in the registry key.
- pub fn set_string<T: AsRef<str>>(&... | 2 | 24 | 2 |
05f6b893826273e6e77bb72034228dc69d8a96a1 | Kenny Kerr | 2025-01-08T00:38:13 | Use `track_caller` in more places (#3424) | diff --git a/crates/libs/bindgen/src/tables/method_def.rs b/crates/libs/bindgen/src/tables/method_def.rs
index 1172f40c3..6098bf253 100644
--- a/crates/libs/bindgen/src/tables/method_def.rs
+++ b/crates/libs/bindgen/src/tables/method_def.rs
@@ -29,6 +29,7 @@ impl MethodDef {
self.impl_map().map_or("", |map| ma... | 4 | 34 | 29 |
3566fca8c55201aededbfffb4ece69be84f0bd48 | Chris Denton | 2025-01-07T00:08:27 | Fix provenance in direct32 sample (#3419) | diff --git a/crates/samples/windows/direct3d12/src/main.rs b/crates/samples/windows/direct3d12/src/main.rs
index 11586f77f..0dbb7aea7 100644
--- a/crates/samples/windows/direct3d12/src/main.rs
+++ b/crates/samples/windows/direct3d12/src/main.rs
@@ -5,8 +5,6 @@ use windows::{
Win32::UI::WindowsAndMessaging::*,
};
... | 1 | 1 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.