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 |
|---|---|---|---|---|---|---|---|
382ea566c21de4ce92f36158cc5dc4207ef067da | Kenny Kerr | 2025-01-06T20:06:26 | Use `track_caller` to make debugging `cppwinrt` build script errors easier (#3417) | diff --git a/crates/libs/cppwinrt/src/lib.rs b/crates/libs/cppwinrt/src/lib.rs
index de0d74323..3c02a7c65 100644
--- a/crates/libs/cppwinrt/src/lib.rs
+++ b/crates/libs/cppwinrt/src/lib.rs
@@ -6,6 +6,7 @@ const VERSION: &str = "2.0.240405.15";
/// Calls the C++/WinRT compiler with the given arguments.
///
/// Use `c... | 1 | 1 | 0 |
2366bb842fc6ca4eb486fc150946635c3711824c | Kenny Kerr | 2025-01-06T15:17:20 | Address nightly clippy warnings about operator precedence (#3414) | diff --git a/crates/libs/bindgen/src/winmd/blob.rs b/crates/libs/bindgen/src/winmd/blob.rs
index 4ec52140b..53181950c 100644
--- a/crates/libs/bindgen/src/winmd/blob.rs
+++ b/crates/libs/bindgen/src/winmd/blob.rs
@@ -30,8 +30,8 @@ impl Blob {
} else {
(
(((self[0] & 0x1F) as usize... | 4 | 11 | 11 |
103d38b7ec98d8fb3156befd7c9d509fb083cf81 | Kenny Kerr | 2024-12-13T17:36:23 | Ensure external references to static factories are generated correctly (#3392) | diff --git a/crates/libs/bindgen/src/types/class.rs b/crates/libs/bindgen/src/types/class.rs
index bca568015..f5df2aa36 100644
--- a/crates/libs/bindgen/src/types/class.rs
+++ b/crates/libs/bindgen/src/types/class.rs
@@ -55,7 +55,7 @@ impl Class {
let method = method.write(
write... | 8 | 348 | 7 |
273dcede4bb3c55c31d8b1ea5cb36f7297a42607 | Kenny Kerr | 2024-12-11T22:43:26 | Use `track_caller` to make debugging `bindgen` build script errors easier (#3383) | diff --git a/crates/libs/bindgen/src/io.rs b/crates/libs/bindgen/src/io.rs
index 29d2d8f5c..3f51a455b 100644
--- a/crates/libs/bindgen/src/io.rs
+++ b/crates/libs/bindgen/src/io.rs
@@ -1,20 +1,34 @@
use std::io::BufRead;
+#[track_caller]
pub fn read_file_lines(path: &str) -> Vec<String> {
- let file = std::io::B... | 3 | 40 | 14 |
7dec3feaed2aa769c520764feed1ace23bae50dd | Kenny Kerr | 2024-12-11T13:34:15 | Streamline error handling in `windows-bindgen` (#3379) | diff --git a/crates/libs/bindgen/src/libraries.rs b/crates/libs/bindgen/src/libraries.rs
index b019b3c8d..eaece2a53 100644
--- a/crates/libs/bindgen/src/libraries.rs
+++ b/crates/libs/bindgen/src/libraries.rs
@@ -28,7 +28,7 @@ fn combine_libraries(
// Windows libs are always produced with lower case modu... | 12 | 44 | 70 |
f8124e8402e34a9081f15be5b923e70cdea0ae21 | Kenny Kerr | 2024-12-11T00:29:00 | Fix macro docs (#3378) | diff --git a/crates/libs/implement/Cargo.toml b/crates/libs/implement/Cargo.toml
index a7282fa4b..e27bd53e4 100644
--- a/crates/libs/implement/Cargo.toml
+++ b/crates/libs/implement/Cargo.toml
@@ -22,3 +22,6 @@ proc-macro = true
syn = { version = "2.0", default-features = false, features = ["parsing", "proc-macro", "p... | 4 | 17 | 15 |
2dffc99712b3fa9fc6e58e2bb4acb8f2b053d542 | Kenny Kerr | 2024-12-10T02:37:07 | Remove unused extensions (#3369) | diff --git a/crates/libs/sys/src/includes/Win32/UI/WindowsAndMessaging/WindowLong.rs b/crates/libs/sys/src/includes/Win32/UI/WindowsAndMessaging/WindowLong.rs
deleted file mode 100644
index d98a5511a..000000000
--- a/crates/libs/sys/src/includes/Win32/UI/WindowsAndMessaging/WindowLong.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-... | 2 | 0 | 16 |
30a574a122d2d03dff6203f08c81a284114ecb88 | Vincent Thiberville | 2024-11-30T13:18:38 | Remove use of `std` in `windows-strings` macro (#3356) | diff --git a/crates/libs/strings/src/literals.rs b/crates/libs/strings/src/literals.rs
index 493ca14bd..c5c5d86c9 100644
--- a/crates/libs/strings/src/literals.rs
+++ b/crates/libs/strings/src/literals.rs
@@ -44,7 +44,7 @@ macro_rules! h {
#[allow(clippy::declare_interior_mutable_const)]
const RESULT:... | 1 | 2 | 2 |
98ca5853f2f3eab2a39d6152f5eb278e756a45e1 | Kenny Kerr | 2024-10-16T12:14:34 | Add `unwrap` helper for `NTSTATUS` (#3324) | diff --git a/crates/libs/windows/src/extensions/Win32/Foundation/NTSTATUS.rs b/crates/libs/windows/src/extensions/Win32/Foundation/NTSTATUS.rs
index 2d40cf001..62867fe27 100644
--- a/crates/libs/windows/src/extensions/Win32/Foundation/NTSTATUS.rs
+++ b/crates/libs/windows/src/extensions/Win32/Foundation/NTSTATUS.rs
@@ ... | 3 | 85 | 0 |
f036e3d265ea19139e1510b410a63b2e648ac7bf | Kenny Kerr | 2024-10-04T14:28:42 | Address Rust nightly compiler warnings (#3311) | diff --git a/crates/libs/bindgen/src/tokens/runtime.rs b/crates/libs/bindgen/src/tokens/runtime.rs
index 83bc42a04..b5b9270fd 100644
--- a/crates/libs/bindgen/src/tokens/runtime.rs
+++ b/crates/libs/bindgen/src/tokens/runtime.rs
@@ -80,7 +80,7 @@ pub mod ext {
fn quote_into_iter(&'q self) -> (Self::Iter, HasIt... | 31 | 120 | 123 |
8bc13e5828b5b1df1a73b7c55cea244007500c6b | Chris Denton | 2024-09-26T00:04:06 | Remove `improper_ctypes` workaround (#3296) | diff --git a/crates/libs/sys/src/lib.rs b/crates/libs/sys/src/lib.rs
index 1dd5d5a33..396dd24e1 100644
--- a/crates/libs/sys/src/lib.rs
+++ b/crates/libs/sys/src/lib.rs
@@ -8,8 +8,6 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
#![doc(html_no_source)]
#![allow(non_snake_case, non... | 2 | 0 | 4 |
0f7466c34e774e547d21c579b58b60168c4ee6bc | Kenny Kerr | 2024-09-23T23:01:22 | Add `Deref` implementation for `HSTRING` (#3291) | diff --git a/crates/libs/result/src/bstr.rs b/crates/libs/result/src/bstr.rs
index 700e4d7cb..86b8c2caa 100644
--- a/crates/libs/result/src/bstr.rs
+++ b/crates/libs/result/src/bstr.rs
@@ -1,36 +1,26 @@
use super::*;
+use core::ops::Deref;
#[repr(transparent)]
pub struct BasicString(*const u16);
-impl BasicStrin... | 10 | 134 | 133 |
bca9a76f4043eadec2c630d9873aa1664322df55 | Kenny Kerr | 2024-09-23T17:37:04 | Address Rust nightly compiler warnings (#3292) | diff --git a/crates/libs/sys/src/lib.rs b/crates/libs/sys/src/lib.rs
index 396dd24e1..1dd5d5a33 100644
--- a/crates/libs/sys/src/lib.rs
+++ b/crates/libs/sys/src/lib.rs
@@ -8,6 +8,8 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
#![doc(html_no_source)]
#![allow(non_snake_case, non... | 3 | 43 | 43 |
26635b2c00ead392b24e4fddd174027a503a1234 | Kenny Kerr | 2024-09-20T12:41:41 | Fix `cppwinrt` build concurrency (#3289) | diff --git a/crates/libs/cppwinrt/src/lib.rs b/crates/libs/cppwinrt/src/lib.rs
index e82643e2d..2e993dd82 100644
--- a/crates/libs/cppwinrt/src/lib.rs
+++ b/crates/libs/cppwinrt/src/lib.rs
@@ -14,7 +14,13 @@ where
let mut path = std::env::temp_dir();
path.push(format!("cppwinrt-{VERSION}.exe"));
- std::f... | 1 | 7 | 1 |
4442770b580f3ccfc197a602766b68ef37a56953 | Kenny Kerr | 2024-09-19T15:16:49 | Update `jsonschema` dependency (#3286) | diff --git a/crates/samples/components/json_validator/Cargo.toml b/crates/samples/components/json_validator/Cargo.toml
index d7e58b6ab..abd76eb62 100644
--- a/crates/samples/components/json_validator/Cargo.toml
+++ b/crates/samples/components/json_validator/Cargo.toml
@@ -8,7 +8,7 @@ publish = false
crate-type = ["cdy... | 4 | 12 | 12 |
dd37c551a20ee6b4166fcd7303a91458cb5f7e97 | Kenny Kerr | 2024-09-12T18:07:49 | Simpler "retval" heuristic (#3271) | diff --git a/crates/libs/bindgen/src/metadata.rs b/crates/libs/bindgen/src/metadata.rs
index 1ad4328d5..879a18e28 100644
--- a/crates/libs/bindgen/src/metadata.rs
+++ b/crates/libs/bindgen/src/metadata.rs
@@ -186,12 +186,7 @@ impl SignatureParam {
if self.ty.deref().size() > 16 {
return false;
... | 3 | 122 | 54 |
1b4639977549c1f54c23caa70b8c81c772352b1e | Kenny Kerr | 2024-09-11T19:36:43 | Improvements to `windows-metadata` (#3268) | diff --git a/crates/libs/bindgen/src/metadata.rs b/crates/libs/bindgen/src/metadata.rs
index b22d0d16a..c49fa61e8 100644
--- a/crates/libs/bindgen/src/metadata.rs
+++ b/crates/libs/bindgen/src/metadata.rs
@@ -266,48 +266,43 @@ pub fn type_def_generics(def: TypeDef) -> Vec<Type> {
// TODO: namespace should not be requi... | 10 | 320 | 322 |
4dbf95be9741ef06ba2cac665b43c2c13d86ecf4 | Kenny Kerr | 2024-09-03T12:58:02 | Nightly Clippy warning about assumed lifetime (#3243) | diff --git a/crates/libs/bindgen/src/rust/writer.rs b/crates/libs/bindgen/src/rust/writer.rs
index c4cf767e8..47cb37c94 100644
--- a/crates/libs/bindgen/src/rust/writer.rs
+++ b/crates/libs/bindgen/src/rust/writer.rs
@@ -374,7 +374,7 @@ impl Writer {
pub fn generic_params<'b>(
&'b self,
params: &... | 1 | 1 | 1 |
badf3669357493be3c4767879544c5a586166753 | Mike Hommey | 2024-08-27T18:51:18 | Use relative path for extension (#3224) | diff --git a/crates/libs/bindgen/src/rust/extensions/mod.rs b/crates/libs/bindgen/src/rust/extensions/mod.rs
index f5bdc92d8..74735db71 100644
--- a/crates/libs/bindgen/src/rust/extensions/mod.rs
+++ b/crates/libs/bindgen/src/rust/extensions/mod.rs
@@ -5,15 +5,12 @@ use super::*;
/// This function generates an `includ... | 3 | 8 | 11 |
4239043ef85d5e0bb103659f7c0831d9426af498 | Kenny Kerr | 2024-08-26T14:51:20 | Address Clippy warning about long first doc paragraph (#3222) | diff --git a/crates/libs/core/src/inspectable.rs b/crates/libs/core/src/inspectable.rs
index a84305ba8..eb53dedad 100644
--- a/crates/libs/core/src/inspectable.rs
+++ b/crates/libs/core/src/inspectable.rs
@@ -2,6 +2,8 @@ use super::*;
use core::ffi::c_void;
use core::ptr::null_mut;
+/// Parent interface for all Win... | 3 | 7 | 3 |
35663fa50b9df63b18eb919480ca3e23becfd248 | Kenny Kerr | 2024-08-22T00:29:19 | Consistent allocation failure for stock collections (#3216) | diff --git a/crates/libs/windows/src/extensions/Foundation/Collections/Iterable.rs b/crates/libs/windows/src/extensions/Foundation/Collections/Iterable.rs
index 205a2e48e..296b44c40 100644
--- a/crates/libs/windows/src/extensions/Foundation/Collections/Iterable.rs
+++ b/crates/libs/windows/src/extensions/Foundation/Col... | 6 | 28 | 34 |
f19edde93252381b7a1789bf856a3a67df23f6db | Nagata Parama Aptana | 2024-08-16T17:04:19 | Improved `Event` implementation (#3198) | diff --git a/crates/libs/core/src/event.rs b/crates/libs/core/src/event.rs
index 18211f9c1..c04b2f835 100644
--- a/crates/libs/core/src/event.rs
+++ b/crates/libs/core/src/event.rs
@@ -1,20 +1,18 @@
use super::*;
-use core::ffi::c_void;
-use core::marker::PhantomData;
-use core::mem::{size_of, transmute_copy};
-use co... | 2 | 93 | 247 |
e2a9ef400bc2044020910cdf1cf713aa518ed290 | Kenny Kerr | 2024-08-16T16:11:50 | Remove workaround for "unused" private fields (#3207) | diff --git a/crates/libs/windows/src/lib.rs b/crates/libs/windows/src/lib.rs
index 01e207a06..dbb0bd173 100644
--- a/crates/libs/windows/src/lib.rs
+++ b/crates/libs/windows/src/lib.rs
@@ -10,8 +10,6 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
#![doc(html_no_source)]
#![allow(n... | 1 | 0 | 2 |
f766e5ae21cd2be2decc68d70aa409877597785a | Kenny Kerr | 2024-08-16T14:46:53 | Remove unnecessary doc attributes (#3206) | diff --git a/crates/libs/sys/src/lib.rs b/crates/libs/sys/src/lib.rs
index 43fa45204..396dd24e1 100644
--- a/crates/libs/sys/src/lib.rs
+++ b/crates/libs/sys/src/lib.rs
@@ -1,13 +1,9 @@
-#![cfg_attr(
- all(
- feature = "Win32_Security",
- feature = "Win32_System_Threading",
- feature = "Win32_UI... | 2 | 12 | 21 |
f21e54807b6f2a1bcf777d3b3a4224165fa808dd | Kenny Kerr | 2024-08-14T18:10:17 | Remove unnecessary feature dependencies (#3201) | diff --git a/crates/samples/components/json_validator/Cargo.toml b/crates/samples/components/json_validator/Cargo.toml
index 1b820a333..525f6c7f1 100644
--- a/crates/samples/components/json_validator/Cargo.toml
+++ b/crates/samples/components/json_validator/Cargo.toml
@@ -14,6 +14,5 @@ serde_json = {version = "1.0", de... | 37 | 2 | 54 |
fdc5149dad3773c7cf249e85c98758d54a1c3ac9 | Kenny Kerr | 2024-08-05T20:06:41 | Add registry `Value` to/from `HSTRING` conversion (#3190) | diff --git a/crates/libs/registry/src/data.rs b/crates/libs/registry/src/data.rs
index fa1660f39..6dd4cae3c 100644
--- a/crates/libs/registry/src/data.rs
+++ b/crates/libs/registry/src/data.rs
@@ -20,19 +20,12 @@ impl Data {
}
}
- // Returns the buffer as a slice of u16 for reading wide characters. T... | 12 | 115 | 18 |
a6b49e94f4c6c1781d58e0c3496c8302a3533892 | Kenny Kerr | 2024-08-01T16:52:11 | Add precise registry types and allocation-free queries and updates (#3184) | diff --git a/crates/libs/registry/src/data.rs b/crates/libs/registry/src/data.rs
new file mode 100644
index 000000000..fa1660f39
--- /dev/null
+++ b/crates/libs/registry/src/data.rs
@@ -0,0 +1,129 @@
+use super::*;
+
+// Minimal `Vec<u8>` replacement providing at least `u16` alignment so that it can be used for wide st... | 21 | 714 | 450 |
02c4f29d19fbe6d59b2ae0b42262e68d00438f0f | Kenny Kerr | 2024-07-09T17:00:00 | Update component sample to use static factory (#3154) | diff --git a/crates/samples/components/json_validator_winrt/src/lib.rs b/crates/samples/components/json_validator_winrt/src/lib.rs
index de52025e2..b3a9fafa3 100644
--- a/crates/samples/components/json_validator_winrt/src/lib.rs
+++ b/crates/samples/components/json_validator_winrt/src/lib.rs
@@ -63,31 +63,20 @@ fn json... | 1 | 11 | 22 |
7cec74ffe7797f522501ad17953a4e3701e0c1d9 | sivadeilra | 2024-07-09T15:34:14 | Implement static COM objects (#3144) | diff --git a/crates/libs/core/src/com_object.rs b/crates/libs/core/src/com_object.rs
index eb11a38f6..2249569ac 100644
--- a/crates/libs/core/src/com_object.rs
+++ b/crates/libs/core/src/com_object.rs
@@ -330,3 +330,68 @@ impl<T: ComObjectInner> Borrow<T> for ComObject<T> {
self.get()
}
}
+
+/// Enables ... | 7 | 179 | 9 |
12f4621020ab6cea11db14d06d3c1d28ca14ae54 | Kenny Kerr | 2024-07-09T12:51:02 | Reduce boilerplate code in `windows-core` crate for `VARIANT` support (#3151) | diff --git a/crates/libs/core/src/variant.rs b/crates/libs/core/src/variant.rs
index ca85aa0c1..f0a8fef92 100644
--- a/crates/libs/core/src/variant.rs
+++ b/crates/libs/core/src/variant.rs
@@ -1,6 +1,45 @@
use super::*;
use core::mem::transmute;
+macro_rules! variant_from_value {
+ ($from:ident, $vt:ident, $fiel... | 1 | 52 | 353 |
ab03721b8ca332b09a3ff1a38729bbdf0c691282 | Kenny Kerr | 2024-07-03T16:31:03 | Make new `windows-strings` crate Windows-only (#3143) | diff --git a/crates/libs/core/src/inspectable.rs b/crates/libs/core/src/inspectable.rs
index 9e1904cfd..a84305ba8 100644
--- a/crates/libs/core/src/inspectable.rs
+++ b/crates/libs/core/src/inspectable.rs
@@ -1,6 +1,5 @@
use super::*;
use core::ffi::c_void;
-use core::mem::{transmute, transmute_copy};
use core::ptr:... | 10 | 90 | 98 |
f6c49f4f5eadd7129c9fe220110e99542f823f74 | Kenny Kerr | 2024-07-03T15:46:10 | Ensure that `HSTRING` builder provides initialized memory (#3141) | diff --git a/crates/libs/strings/src/hstring_builder.rs b/crates/libs/strings/src/hstring_builder.rs
index 446451f0d..23679bb36 100644
--- a/crates/libs/strings/src/hstring_builder.rs
+++ b/crates/libs/strings/src/hstring_builder.rs
@@ -9,7 +9,13 @@ pub struct HStringBuilder(*mut HStringHeader);
impl HStringBuilder {
... | 3 | 23 | 17 |
12a60df721215fbf319276236e481d20305cd60e | Kenny Kerr | 2024-07-03T15:38:17 | Remove `Future` implementation (#3142) | diff --git a/crates/libs/bindgen/src/rust/writer.rs b/crates/libs/bindgen/src/rust/writer.rs
index 80fdd4792..3da4429bc 100644
--- a/crates/libs/bindgen/src/rust/writer.rs
+++ b/crates/libs/bindgen/src/rust/writer.rs
@@ -697,25 +697,6 @@ impl Writer {
self.GetResults()
}
... | 9 | 5 | 278 |
9f96662e695c6789adfde146e327e8feaa96d3c5 | Kenny Kerr | 2024-07-02T12:28:33 | Implement `Send` and `Sync` for `Weak<T>` (#3138) | diff --git a/crates/libs/core/src/weak.rs b/crates/libs/core/src/weak.rs
index 677543d6e..be34d0286 100644
--- a/crates/libs/core/src/weak.rs
+++ b/crates/libs/core/src/weak.rs
@@ -23,3 +23,6 @@ impl<I: Interface> Weak<I> {
Ok(Self(reference, PhantomData))
}
}
+
+unsafe impl<I: Interface> Send for Weak<I... | 1 | 3 | 0 |
66f185040a366032881c8721583b85ff33943131 | Kenny Kerr | 2024-06-28T19:43:40 | Clarify support for non-Windows targets (#3135) | diff --git a/crates/libs/core/src/imp/factory_cache.rs b/crates/libs/core/src/imp/factory_cache.rs
index b24cb4bb6..fd7e5fc28 100644
--- a/crates/libs/core/src/imp/factory_cache.rs
+++ b/crates/libs/core/src/imp/factory_cache.rs
@@ -127,7 +127,7 @@ where
F: FnMut(crate::PCSTR) -> crate::Result<R>,
{
let suff... | 8 | 44 | 28 |
f69ba3d2f6958e6fa2048d0492452c6424549711 | Kenny Kerr | 2024-06-26T17:41:28 | Remove "std" writer from `windows-bindgen` (#3130) | diff --git a/crates/libs/bindgen/src/rust/functions.rs b/crates/libs/bindgen/src/rust/functions.rs
index 1cd841c4c..5d36295f9 100644
--- a/crates/libs/bindgen/src/rust/functions.rs
+++ b/crates/libs/bindgen/src/rust/functions.rs
@@ -248,7 +248,7 @@ fn gen_link(writer: &Writer, namespace: &str, signature: &metadata::Sig... | 5 | 8 | 31 |
a3b18ea4e297443a46bb5fe487ec392334ad357b | Kenny Kerr | 2024-06-25T14:05:00 | Remove unnecessary test `cfg` checks (#3124) | diff --git a/crates/libs/core/src/lib.rs b/crates/libs/core/src/lib.rs
index 25708a4c6..9b0579e18 100644
--- a/crates/libs/core/src/lib.rs
+++ b/crates/libs/core/src/lib.rs
@@ -8,7 +8,7 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
windows_debugger_visualizer,
debugger_vi... | 5 | 3 | 5 |
863a7cf1d05096c09f2c7cac13ff9f5c9abec61e | Kenny Kerr | 2024-06-23T13:31:37 | Add flexible registry type and byte query support (#3120) | diff --git a/crates/libs/registry/src/key.rs b/crates/libs/registry/src/key.rs
index 4b0076fca..978890f23 100644
--- a/crates/libs/registry/src/key.rs
+++ b/crates/libs/registry/src/key.rs
@@ -115,6 +115,34 @@ impl Key {
unsafe { self.set_value(name, REG_BINARY, value.as_ptr() as _, value.len()) }
}
+ ... | 4 | 117 | 5 |
bfb55f3541143a7db6af269d24197df94f07519e | Kenny Kerr | 2024-06-20T20:01:39 | Remove unused dependencies (#3117) | diff --git a/crates/libs/core/Cargo.toml b/crates/libs/core/Cargo.toml
index 8d3a9c2db..f250d93a1 100644
--- a/crates/libs/core/Cargo.toml
+++ b/crates/libs/core/Cargo.toml
@@ -29,10 +29,6 @@ path = "../result"
windows-implement = { path = "../implement", version = "0.57.0" }
windows-interface = { path = "../interfa... | 3 | 0 | 12 |
f6f985d023bdcae0a9551a8abf0513cf0c7f8066 | sivadeilra | 2024-06-19T20:49:34 | Don't compile `windows` and `windows-sys` in unit test mode (#3112) | diff --git a/crates/libs/sys/Cargo.toml b/crates/libs/sys/Cargo.toml
index 8f67ab37a..c121d1055 100644
--- a/crates/libs/sys/Cargo.toml
+++ b/crates/libs/sys/Cargo.toml
@@ -11,6 +11,11 @@ readme = "readme.md"
categories = ["os::windows-apis"]
exclude = ["features.json"]
+[lib]
+# This crate does not contain tests. ... | 2 | 10 | 0 |
48db09f2d33186628f9e2056f9ba54a8e83a7583 | sivadeilra | 2024-06-18T21:23:39 | Remove remaining recursive calls to `cargo` (#3113) | diff --git a/crates/tests/component/Cargo.toml b/crates/tests/component/Cargo.toml
index 546786541..ecfc6b1b0 100644
--- a/crates/tests/component/Cargo.toml
+++ b/crates/tests/component/Cargo.toml
@@ -20,3 +20,6 @@ features = [
"Win32_Foundation",
"Win32_System_WinRT",
]
+
+[build-dependencies.windows-bindge... | 6 | 99 | 81 |
139ca3c88f8a3948deba4b9e79b6e6b420cc242d | Kenny Kerr | 2024-06-17T20:24:55 | Support some edge cases for the next Win32 metadata update (#3109) | diff --git a/crates/libs/bindgen/src/rust/handles.rs b/crates/libs/bindgen/src/rust/handles.rs
index 2cadef958..4724f125e 100644
--- a/crates/libs/bindgen/src/rust/handles.rs
+++ b/crates/libs/bindgen/src/rust/handles.rs
@@ -30,7 +30,9 @@ pub fn gen_win_handle(writer: &Writer, def: metadata::TypeDef) -> TokenStream {
... | 7 | 58 | 52 |
f639d7ea3c98113c39b9c14979d36e5ae813c347 | Kenny Kerr | 2024-06-17T13:18:02 | Remove `mio` test dependency (#3107) | diff --git a/crates/tests/lib/Cargo.toml b/crates/tests/lib/Cargo.toml
index 37c3d2ab2..54d98f0a7 100644
--- a/crates/tests/lib/Cargo.toml
+++ b/crates/tests/lib/Cargo.toml
@@ -32,6 +32,3 @@ features = [
[dependencies.windows-targets]
path = "../../libs/targets"
-
-[dependencies.mio]
-version = "0.8.6" | 1 | 0 | 3 |
977f1da608e17ffbe3c88a94a3104928fcefeeb8 | Kenny Kerr | 2024-06-16T00:45:45 | Allow `unused` to deal with new warning about "unused" private fields in structs (#3103) | diff --git a/crates/libs/windows/src/lib.rs b/crates/libs/windows/src/lib.rs
index ba41e5e4d..3072303cc 100644
--- a/crates/libs/windows/src/lib.rs
+++ b/crates/libs/windows/src/lib.rs
@@ -9,8 +9,8 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
#![doc(html_no_source)]
#![allow(non... | 1 | 2 | 2 |
7f1a7ff66343dd23eaa0210ad6b72986c7949c14 | Kenny Kerr | 2024-06-14T16:01:52 | Harden detection of missing nested types (#3099) | diff --git a/crates/libs/metadata/src/reader.rs b/crates/libs/metadata/src/reader.rs
index e9aa90287..7e973cee9 100644
--- a/crates/libs/metadata/src/reader.rs
+++ b/crates/libs/metadata/src/reader.rs
@@ -276,8 +276,11 @@ impl Reader {
// TODO: this needs to be deferred via a TypeName's optional nested type na... | 1 | 5 | 2 |
827533f7648211e13f1816502d430a317dfb8de1 | Kenny Kerr | 2024-06-13T15:57:22 | Workaround for false dead code warning (#3098) | diff --git a/crates/libs/windows/src/lib.rs b/crates/libs/windows/src/lib.rs
index 793dcff3d..ba41e5e4d 100644
--- a/crates/libs/windows/src/lib.rs
+++ b/crates/libs/windows/src/lib.rs
@@ -9,6 +9,8 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
#![doc(html_no_source)]
#![allow(non... | 1 | 2 | 0 |
66d876944d3e7d925a58e26da5c42783f5b177c7 | sivadeilra | 2024-06-13T01:38:52 | Use `malloc` on non-Windows platforms (#3095) | diff --git a/crates/libs/core/src/imp/heap.rs b/crates/libs/core/src/imp/heap.rs
index ad2b746c3..b3868373d 100644
--- a/crates/libs/core/src/imp/heap.rs
+++ b/crates/libs/core/src/imp/heap.rs
@@ -8,7 +8,17 @@ use core::ffi::c_void;
/// This function will fail in OOM situations, if the heap is otherwise corrupt,
/// ... | 1 | 24 | 2 |
56fd381690ab2b135940ae4591bcb86b6c415f25 | sivadeilra | 2024-06-11T22:06:06 | Allow `windows-result` to work on non-Windows platforms (#3082) | diff --git a/crates/libs/result/src/error.rs b/crates/libs/result/src/error.rs
index ed28d975d..88a2c697a 100644
--- a/crates/libs/result/src/error.rs
+++ b/crates/libs/result/src/error.rs
@@ -5,6 +5,7 @@ use core::ffi::c_void;
#[derive(Clone, PartialEq, Eq)]
pub struct Error {
code: HRESULT,
+ #[cfg(windows)... | 4 | 168 | 82 |
66ad6d930fe37903979a34115eb492cca08adfb5 | Kenny Kerr | 2024-06-11T22:01:07 | Infer return type in generated bindings (#3090) | diff --git a/crates/libs/bindgen/src/rust/com_methods.rs b/crates/libs/bindgen/src/rust/com_methods.rs
index 56b86bd6f..9f8e43b94 100644
--- a/crates/libs/bindgen/src/rust/com_methods.rs
+++ b/crates/libs/bindgen/src/rust/com_methods.rs
@@ -134,7 +134,7 @@ pub fn writer(
quote! {
#features... | 7 | 45 | 45 |
7c615c48b11c004ebd1fc58ca44e5af468c436f4 | Kenny Kerr | 2024-06-10T19:14:47 | Disable docs and tests for test crates (#3085) | diff --git a/crates/tests/agile/Cargo.toml b/crates/tests/agile/Cargo.toml
index e9c3b99b4..077c352b7 100644
--- a/crates/tests/agile/Cargo.toml
+++ b/crates/tests/agile/Cargo.toml
@@ -4,6 +4,10 @@ version = "0.0.0"
edition = "2021"
publish = false
+[lib]
+doc = false
+doctest = false
+
[dependencies.windows]
pat... | 68 | 270 | 0 |
e185bcda58e9fb1aee6cb2a0abff9cffa3892535 | Kenny Kerr | 2024-06-10T17:15:28 | Simplify standalone test by calling `windows-bindgen` directly (#3086) | diff --git a/crates/tests/standalone/Cargo.toml b/crates/tests/standalone/Cargo.toml
index cd6340554..93ec1db0d 100644
--- a/crates/tests/standalone/Cargo.toml
+++ b/crates/tests/standalone/Cargo.toml
@@ -9,3 +9,6 @@ path = "../../libs/core"
[dependencies.windows-targets]
path = "../../libs/targets"
+
+[build-depen... | 2 | 8 | 32 |
7d94387a7c88eb8df65a44630cb04f2707e9df68 | sivadeilra | 2024-06-07T00:06:46 | Optimize `IUnknown` identity checks (#3073) | diff --git a/crates/libs/core/src/unknown.rs b/crates/libs/core/src/unknown.rs
index 1f16b35a0..bdbaf84bc 100644
--- a/crates/libs/core/src/unknown.rs
+++ b/crates/libs/core/src/unknown.rs
@@ -47,11 +47,17 @@ impl Drop for IUnknown {
impl PartialEq for IUnknown {
fn eq(&self, other: &Self) -> bool {
+ //... | 2 | 82 | 5 |
4572dcd6aec2af346103e1785fa88e13a8539116 | Kenny Kerr | 2024-06-07T00:05:41 | Remove `unused_qualifications` (#3078) | diff --git a/Cargo.toml b/Cargo.toml
index 3eb997b1f..00ab9b32b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,6 +15,5 @@ exclude = [
[workspace.lints.rust]
rust_2018_idioms = { level = "warn", priority = -1 }
-unused_qualifications = "allow" # See https://github.com/microsoft/windows-rs/issues/3076
missing_docs ... | 1 | 0 | 1 |
a623c3f27fd232766b876358f655543acc811742 | sivadeilra | 2024-06-06T18:05:57 | Fix warnings from Rust 1.80.0 nightly (#3074) | diff --git a/Cargo.toml b/Cargo.toml
index 0cd086c72..3eb997b1f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,6 +15,6 @@ exclude = [
[workspace.lints.rust]
rust_2018_idioms = { level = "warn", priority = -1 }
-unused_qualifications = "warn"
+unused_qualifications = "allow" # See https://github.com/microsoft/windo... | 2 | 2 | 3 |
0940e1f6352363cf2c3501bfa2cd182414688a47 | Kenny Kerr | 2024-06-04T14:58:46 | Check for null pointers in core `IInspectable` implementation (#3057) | diff --git a/crates/libs/core/src/inspectable.rs b/crates/libs/core/src/inspectable.rs
index 3208618b4..de6b67661 100644
--- a/crates/libs/core/src/inspectable.rs
+++ b/crates/libs/core/src/inspectable.rs
@@ -65,6 +65,9 @@ impl IInspectable_Vtbl {
count: *mut u32,
values: *mut *mut GUID,
... | 1 | 9 | 0 |
b8586add802255bed339f916a926ec2fc2fef1a6 | sivadeilra | 2024-06-03T18:09:23 | Fix Debug impls for COM interfaces (#3066)
* Fix Debug impls for COM interfaces
Currently, the Debug impl for COM interfaces shows the recursive
interface chain, like so:
```
IDWriteFontFace5(IDWriteFontFace4(IDWriteFontFace3(IDWriteFontFace2(IDWriteFontFace(0xNNN)))))
```
That's not very useful. This PR t... | diff --git a/crates/libs/core/src/imp/mod.rs b/crates/libs/core/src/imp/mod.rs
index be219aee6..31c7850dc 100644
--- a/crates/libs/core/src/imp/mod.rs
+++ b/crates/libs/core/src/imp/mod.rs
@@ -77,22 +77,32 @@ pub use required_hierarchy;
macro_rules! define_interface {
($name:ident, $vtbl:ident, $iid:literal) => {... | 5 | 24 | 5 |
dbc3932513ba9ed489c0b99c1bb3aba565d23994 | sivadeilra | 2024-05-29T21:13:19 | Fix bug in COM interface chain support (#3060)
The definition of a COM interface may inherit from another interface.
These are known as "interface chains". The `#[implement]` macro allows
designers to specify only the minimal set of interface chains that are
needed for a given COM object implementation. The `#[impl... | diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs
index 090581fd3..908e38a13 100644
--- a/crates/libs/interface/src/lib.rs
+++ b/crates/libs/interface/src/lib.rs
@@ -211,6 +211,17 @@ impl Interface {
let parent_vtable_generics = if self.parent_is_iunknown() { quote!(Identity, OFF... | 3 | 66 | 2 |
71f8c2a4d9e15bf25ac28f413b9187a639f28207 | sivadeilra | 2024-05-26T03:26:14 | Fix handling of COM interfaces with same method name (#3059)
It is common in COM interfaces for different interfaces to have methods
that have the same name, especially for interface "versions" that
extend the semantics of the underlying interfaces. For example,
look at many of the inheritance relationships in COM... | diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs
index b2f38b310..090581fd3 100644
--- a/crates/libs/interface/src/lib.rs
+++ b/crates/libs/interface/src/lib.rs
@@ -237,8 +237,11 @@ impl Interface {
quote! {
unsafe extern "system" fn #name<Id... | 2 | 54 | 3 |
ccd334fa75ae56baf9013d836d5adeeb02d968ec | sivadeilra | 2024-05-25T16:11:16 | Dynamic casting to COM implementation (#3055)
This provides a new feature for COM developers using the windows-rs crate.
It allows for safe dynamic casting from IUnknown to an implementation object.
It is based on Rust's Any trait.
Any type that is marked with #[implement], except for those that contain
non-stat... | diff --git a/crates/libs/core/src/com_object.rs b/crates/libs/core/src/com_object.rs
index 00d80e7b3..ede313071 100644
--- a/crates/libs/core/src/com_object.rs
+++ b/crates/libs/core/src/com_object.rs
@@ -1,5 +1,6 @@
use crate::imp::Box;
use crate::{AsImpl, IUnknown, IUnknownImpl, Interface, InterfaceRef};
+use core:... | 5 | 245 | 7 |
92ecfbdfe712b5bcb6a1b73461cabfd72b32d214 | Chris Denton | 2024-05-22T13:53:29 | Re-enable `unexpected_cfgs` (#3050) | diff --git a/Cargo.toml b/Cargo.toml
index 0babf1a2a..10c684209 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,3 +17,4 @@ exclude = [
rust_2018_idioms = "warn"
unused_qualifications = "warn"
missing_docs = "warn"
+unexpected_cfgs = { level = "warn", check-cfg = ['cfg(windows_raw_dylib, windows_debugger_visualizer)'... | 9 | 8 | 8 |
80a293e686a11b6616ad072a388b9f8859426a4c | sivadeilra | 2024-05-22T13:44:31 | Fix soundness hole in `ComObject` (#3051) | diff --git a/crates/libs/core/src/com_object.rs b/crates/libs/core/src/com_object.rs
index 4b2c23960..00d80e7b3 100644
--- a/crates/libs/core/src/com_object.rs
+++ b/crates/libs/core/src/com_object.rs
@@ -15,10 +15,30 @@ use core::ptr::NonNull;
/// User code should not deal directly with this trait.
///
/// This tra... | 3 | 81 | 38 |
5b160298104523d338b4b2950f652ba4f9f21dd3 | Kenny Kerr | 2024-05-15T14:01:14 | Streamline `TypeName` to support pattern matching (#3040) | diff --git a/crates/libs/bindgen/src/rust/mod.rs b/crates/libs/bindgen/src/rust/mod.rs
index b453ec194..53792bcb2 100644
--- a/crates/libs/bindgen/src/rust/mod.rs
+++ b/crates/libs/bindgen/src/rust/mod.rs
@@ -186,10 +186,10 @@ fn namespace(writer: &Writer, tree: &Tree) -> String {
match item {
met... | 4 | 76 | 86 |
a036ce60502b5fa3b1af13cd898bdd97d39ad984 | Kenny Kerr | 2024-05-14T18:20:00 | Type name deferral in `windows-metadata` and `windows-bindgen` (#3039) | diff --git a/crates/libs/bindgen/src/lib.rs b/crates/libs/bindgen/src/lib.rs
index ea371d34d..439b85a54 100644
--- a/crates/libs/bindgen/src/lib.rs
+++ b/crates/libs/bindgen/src/lib.rs
@@ -111,8 +111,6 @@ where
let input = read_input(&input)?;
let reader = metadata::Reader::filter(input, &include, &exclude, &... | 16 | 117 | 164 |
5b8d248fb08ec55a9ec68867d99d61956bb8fa30 | Kenny Kerr | 2024-05-13T17:40:32 | Add `from_raw` to `windows-registry` (#3034) | diff --git a/crates/libs/core/src/handles.rs b/crates/libs/core/src/handles.rs
index b35c29e6c..14cf29ee7 100644
--- a/crates/libs/core/src/handles.rs
+++ b/crates/libs/core/src/handles.rs
@@ -19,7 +19,8 @@ impl<T: Free> Owned<T> {
/// Takes ownership of the handle.
///
/// # Safety
- /// The handle m... | 4 | 22 | 3 |
3da42d807737429e32e1ca546fb6395447bb2647 | Kenny Kerr | 2024-05-10T22:10:19 | Simplify derefencing `Ref` interface parameters (#3027) | diff --git a/crates/libs/core/src/ref.rs b/crates/libs/core/src/ref.rs
index c96a4c47c..b1025fb98 100644
--- a/crates/libs/core/src/ref.rs
+++ b/crates/libs/core/src/ref.rs
@@ -4,6 +4,17 @@ use super::*;
#[repr(transparent)]
pub struct Ref<'a, T: Type<T>>(T::Abi, std::marker::PhantomData<&'a T>);
+impl<'a, T: Type<... | 2 | 57 | 0 |
1256fbe6dc58b7aa1ba01982c3b40b50d3675a6f | Rafael Rivera | 2024-05-03T20:33:14 | Fix for Clippy `HSTRING` interior mutability warnings in nightly (#3021) | diff --git a/crates/libs/core/src/strings/literals.rs b/crates/libs/core/src/strings/literals.rs
index b9a08e529..c7dd557de 100644
--- a/crates/libs/core/src/strings/literals.rs
+++ b/crates/libs/core/src/strings/literals.rs
@@ -41,6 +41,7 @@ macro_rules! h {
($s:literal) => {{
const INPUT: &[u8] = $s.as_... | 1 | 2 | 0 |
d5f2ead2a78607f493a0fefad4f2e040718a23d1 | Kenny Kerr | 2024-05-03T02:40:13 | Remove workaround for empty structs (#3016) | diff --git a/crates/libs/bindgen/src/rust/structs.rs b/crates/libs/bindgen/src/rust/structs.rs
index 9f7681ec7..0a9597eb8 100644
--- a/crates/libs/bindgen/src/rust/structs.rs
+++ b/crates/libs/bindgen/src/rust/structs.rs
@@ -24,28 +24,6 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef) -> TokenStream {
fn ge... | 1 | 0 | 22 |
8724e228ae02b52402078c15af23d26b0a696a6a | Kenny Kerr | 2024-05-01T12:24:51 | Addressing feedback on handle ownership (#3014) | diff --git a/crates/libs/core/src/handles.rs b/crates/libs/core/src/handles.rs
index 415e13a80..b35c29e6c 100644
--- a/crates/libs/core/src/handles.rs
+++ b/crates/libs/core/src/handles.rs
@@ -1,6 +1,6 @@
/// Custom code to free a handle.
///
-/// This is similar to the `Drop` trait, and may be used to implement `Dro... | 1 | 3 | 3 |
52352c091cb079d0727c22b019df06b851ae2293 | Kenny Kerr | 2024-05-01T11:34:14 | Add support for freeing handles automatically (#3013) | diff --git a/crates/libs/bindgen/src/rust/handles.rs b/crates/libs/bindgen/src/rust/handles.rs
index cd04b2044..1964b85e4 100644
--- a/crates/libs/bindgen/src/rust/handles.rs
+++ b/crates/libs/bindgen/src/rust/handles.rs
@@ -30,7 +30,7 @@ pub fn gen_win_handle(writer: &Writer, def: metadata::TypeDef) -> TokenStream {
... | 32 | 520 | 31 |
4fcb8d78ff2717843b4a6daec0919bd74797366b | Kenny Kerr | 2024-04-29T14:53:48 | Eliminate default features for JSON samples (#3012) | diff --git a/crates/samples/components/json_validator/Cargo.toml b/crates/samples/components/json_validator/Cargo.toml
index 242fdb03e..06da6d09d 100644
--- a/crates/samples/components/json_validator/Cargo.toml
+++ b/crates/samples/components/json_validator/Cargo.toml
@@ -8,8 +8,8 @@ publish = false
crate-type = ["cdy... | 2 | 4 | 4 |
97375aa296014f5186dc4e8eb696aa63983df4ec | Asger Hautop Drewsen | 2024-04-22T12:31:32 | Add non-Windows support for `PWSTR` and `PCWSTR` (#3004) | diff --git a/crates/libs/core/src/strings/mod.rs b/crates/libs/core/src/strings/mod.rs
index 632aa2ea4..4f239f91d 100644
--- a/crates/libs/core/src/strings/mod.rs
+++ b/crates/libs/core/src/strings/mod.rs
@@ -20,8 +20,6 @@ use super::*;
extern "C" {
#[doc(hidden)]
pub fn strlen(s: PCSTR) -> usize;
- #[doc... | 4 | 59 | 9 |
a729410dcec395401c98d2c1cfb87b26ce9fdd6f | Kenny Kerr | 2024-04-18T18:14:45 | Add `as_raw` to `windows-registry` (#3003) | diff --git a/crates/libs/registry/src/key.rs b/crates/libs/registry/src/key.rs
index eb1d4919f..9d41b83ca 100644
--- a/crates/libs/registry/src/key.rs
+++ b/crates/libs/registry/src/key.rs
@@ -37,6 +37,11 @@ impl Key {
win32_error(result).map(|_| Self(handle))
}
+ /// Returns the underlying registry ... | 4 | 84 | 0 |
5b73aea86d5ee5e37b5ba2d6144a2f8801e0dce9 | Kenny Kerr | 2024-04-12T18:05:40 | Document `Interface::IID` (#2990) | diff --git a/crates/libs/core/src/interface.rs b/crates/libs/core/src/interface.rs
index f909040a6..74e145264 100644
--- a/crates/libs/core/src/interface.rs
+++ b/crates/libs/core/src/interface.rs
@@ -10,7 +10,7 @@ pub unsafe trait Interface: Sized + Clone {
#[doc(hidden)]
type Vtable;
- #[doc(hidden)]
+... | 1 | 1 | 1 |
bedd359eac9a58b39faa06d7da1a4f48c0ca7303 | Kenny Kerr | 2024-04-08T18:07:35 | Add explicit path support to the `interface` macro (#2976) | diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs
index e1b3fd788..929889f59 100644
--- a/crates/libs/interface/src/lib.rs
+++ b/crates/libs/interface/src/lib.rs
@@ -341,41 +341,40 @@ impl Interface {
}
fn parent_vtable(&self) -> Option<proc_macro2::TokenStream> {
- if ... | 5 | 81 | 14 |
e7a361a399f1ef7e15ef221f37123e19d265596b | Kenny Kerr | 2024-04-08T17:14:19 | Fix for new Clippy warnings in nightly (#2977) | diff --git a/crates/libs/core/src/agile_reference.rs b/crates/libs/core/src/agile_reference.rs
index eb68e78c9..ca227afb2 100644
--- a/crates/libs/core/src/agile_reference.rs
+++ b/crates/libs/core/src/agile_reference.rs
@@ -9,7 +9,11 @@ pub struct AgileReference<T>(imp::IAgileReference, PhantomData<T>);
impl<T: Inter... | 8 | 18 | 11 |
879c0cf56d97e696ee02a99f71552648bef843e1 | Kenny Kerr | 2024-04-05T00:50:36 | Remove redundant target checks (#2973) | diff --git a/crates/targets/aarch64_gnullvm/build.rs b/crates/targets/aarch64_gnullvm/build.rs
index f6ba3ec3f..b5caa2baa 100644
--- a/crates/targets/aarch64_gnullvm/build.rs
+++ b/crates/targets/aarch64_gnullvm/build.rs
@@ -1,12 +1,4 @@
fn main() {
- let family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap();
... | 8 | 0 | 60 |
f4be25df2176e2bcc9c3c197552d8e8a4a73b667 | Kenny Kerr | 2024-04-04T17:03:23 | Implement `Deref` for COM interface hierarchies defined with the `interface` macro (#2969) | diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs
index 198e984fd..e1b3fd788 100644
--- a/crates/libs/interface/src/lib.rs
+++ b/crates/libs/interface/src/lib.rs
@@ -103,7 +103,12 @@ impl Interface {
const IID: ::windows_core::GUID = #guid;
}
imp... | 2 | 62 | 1 |
994dc7519fcb3ece2035f7fc4607db9ca6a8047c | Kenny Kerr | 2024-04-02T16:51:57 | Simplify `cfg` union calculation (#2965) | diff --git a/crates/libs/bindgen/src/rust/cfg.rs b/crates/libs/bindgen/src/rust/cfg.rs
index e9a2dab3c..b2a7b6042 100644
--- a/crates/libs/bindgen/src/rust/cfg.rs
+++ b/crates/libs/bindgen/src/rust/cfg.rs
@@ -12,20 +12,11 @@ impl Cfg {
pub fn add_feature(&mut self, feature: &'static str) {
self.types.entr... | 5 | 15 | 24 |
927aa8458ed7c5c5acebfd06ea5003fbdc926a67 | Kenny Kerr | 2024-03-26T18:11:36 | Prep for type name deferral (#2955) | diff --git a/crates/libs/bindgen/src/metadata.rs b/crates/libs/bindgen/src/metadata.rs
index 0f34fea19..fc476280c 100644
--- a/crates/libs/bindgen/src/metadata.rs
+++ b/crates/libs/bindgen/src/metadata.rs
@@ -418,10 +418,10 @@ pub fn type_def_has_callback(row: TypeDef) -> bool {
false
}
let type_name... | 14 | 104 | 108 |
738283c98256810b3821a2b8decc797826b837d7 | Kenny Kerr | 2024-03-25T17:31:50 | Fix for new Rust nightly warnings related to dead code (#2951) | diff --git a/crates/libs/bindgen/src/rdl/mod.rs b/crates/libs/bindgen/src/rdl/mod.rs
index c74c8c04f..da0add924 100644
--- a/crates/libs/bindgen/src/rdl/mod.rs
+++ b/crates/libs/bindgen/src/rdl/mod.rs
@@ -1,3 +1,5 @@
+#![allow(dead_code)]
+
use super::*;
mod fmt;
mod from_reader;
diff --git a/crates/libs/bindgen/src... | 3 | 4 | 3 |
66f0108868179742fc8ce77ee2a2feab49d2981f | Kenny Kerr | 2024-03-18T13:25:56 | Defer module name lowercase conversion for Windows (#2934) | diff --git a/crates/libs/bindgen/src/rust/functions.rs b/crates/libs/bindgen/src/rust/functions.rs
index 061d20944..1f09b9043 100644
--- a/crates/libs/bindgen/src/rust/functions.rs
+++ b/crates/libs/bindgen/src/rust/functions.rs
@@ -3,7 +3,7 @@ use metadata::HasAttributes;
pub fn writer(writer: &Writer, namespace: &... | 4 | 10 | 11 |
6f4a72668cd8678bca9dca0311b47574725e902b | Taras Palczynski III | 2024-03-12T14:08:51 | Add `Hash` implementation for `HSTRING` (#2924)
* Added Hash impl to HSTRING
* Added tests to validate API for hashing HSTRING works | diff --git a/crates/libs/core/src/strings/hstring.rs b/crates/libs/core/src/strings/hstring.rs
index 11f93c2fd..b8acf67a4 100644
--- a/crates/libs/core/src/strings/hstring.rs
+++ b/crates/libs/core/src/strings/hstring.rs
@@ -191,6 +191,12 @@ impl Ord for HSTRING {
}
}
+impl std::hash::Hash for HSTRING {
+ fn... | 2 | 50 | 0 |
8bed196c3c1d6e972528b53b6cabbb0d906d2780 | Kenny Kerr | 2024-03-07T18:42:38 | Riddle 0.3 (#2920) | diff --git a/crates/tools/riddle/Cargo.toml b/crates/tools/riddle/Cargo.toml
index 51f9aff67..f33bd309e 100644
--- a/crates/tools/riddle/Cargo.toml
+++ b/crates/tools/riddle/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "riddle"
-version = "0.2.0"
+version = "0.3.0"
authors = ["Microsoft"]
edition = "2021"
rust-vers... | 1 | 1 | 1 |
9b535445a45eb516967862fc1276839ce55d95d6 | Kenny Kerr | 2024-03-07T18:07:10 | Format extension files (#2919) | diff --git a/crates/libs/bindgen/src/rust/extensions/impl/Foundation/Collections/Iterable.rs b/crates/libs/bindgen/src/rust/extensions/impl/Foundation/Collections/Iterable.rs
index bba54c4a5..62e1cd53c 100644
--- a/crates/libs/bindgen/src/rust/extensions/impl/Foundation/Collections/Iterable.rs
+++ b/crates/libs/bindgen... | 6 | 16 | 69 |
f3aa338b271af88e993fe693fda472c30d8b63a2 | Kenny Kerr | 2024-02-28T21:40:18 | Allow `PWSTR`/`PSTR` to be passed to `PCWSTR`/`PCSTR` parameters (#2899) | diff --git a/crates/libs/core/src/param.rs b/crates/libs/core/src/param.rs
index cd16d473f..5061d41c0 100644
--- a/crates/libs/core/src/param.rs
+++ b/crates/libs/core/src/param.rs
@@ -91,3 +91,15 @@ impl IntoParam<PCWSTR> for &HSTRING {
Param::Owned(PCWSTR(self.as_ptr()))
}
}
+
+impl IntoParam<PCWSTR> f... | 3 | 28 | 2 |
5d06199fa842bbdd3b927b1f374ba668db95d1ea | Kenny Kerr | 2024-02-28T21:40:04 | Simpler namespace type collection (#2901) | diff --git a/crates/libs/bindgen/src/rust/mod.rs b/crates/libs/bindgen/src/rust/mod.rs
index 76c26680b..6ff414ba1 100644
--- a/crates/libs/bindgen/src/rust/mod.rs
+++ b/crates/libs/bindgen/src/rust/mod.rs
@@ -178,32 +178,35 @@ fn namespace(writer: &Writer, tree: &Tree) -> String {
continue;
... | 1 | 28 | 18 |
503dd9f9058406ca091fcb8762862a9b6d1f20e0 | daladim | 2024-02-27T21:08:32 | Improve `implement` macro docs (#2891) | diff --git a/crates/libs/implement/src/lib.rs b/crates/libs/implement/src/lib.rs
index 67dbd741c..7cea47ca5 100644
--- a/crates/libs/implement/src/lib.rs
+++ b/crates/libs/implement/src/lib.rs
@@ -7,6 +7,9 @@ use quote::{quote, ToTokens};
/// Implements one or more COM interfaces.
///
/// # Example
+///
+/// Here is... | 1 | 6 | 2 |
148f4ebdda2a04ff8afb9a3493aaf53b552e67e6 | Kenny Kerr | 2024-02-27T20:44:02 | Release 0.54.0 (#2894) | diff --git a/crates/libs/bindgen/Cargo.toml b/crates/libs/bindgen/Cargo.toml
index f71fa4f66..cef772e75 100644
--- a/crates/libs/bindgen/Cargo.toml
+++ b/crates/libs/bindgen/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "windows-bindgen"
-version = "0.53.0"
+version = "0.54.0"
authors = ["Microsoft"]
edition = "2021"... | 59 | 60 | 130 |
380df192776392359bef644d34c99d79f4754bbd | Kenny Kerr | 2024-02-27T19:40:15 | Support additional `VARIANT` types (#2892) | diff --git a/crates/libs/bindgen/src/rust/extensions/mod.rs b/crates/libs/bindgen/src/rust/extensions/mod.rs
index 39faef986..45be29f15 100644
--- a/crates/libs/bindgen/src/rust/extensions/mod.rs
+++ b/crates/libs/bindgen/src/rust/extensions/mod.rs
@@ -15,6 +15,7 @@ pub fn gen_mod(writer: &Writer, namespace: &str) -> T... | 6 | 180 | 1 |
77dc02822232af9ca42fe856eb74d5f246053d8a | Kenny Kerr | 2024-02-27T16:38:21 | Workaround for confusing `LocalFree` behavior (#2889) | diff --git a/crates/libs/bindgen/src/rust/functions.rs b/crates/libs/bindgen/src/rust/functions.rs
index 9f9ac4d11..61e9c8603 100644
--- a/crates/libs/bindgen/src/rust/functions.rs
+++ b/crates/libs/bindgen/src/rust/functions.rs
@@ -258,6 +258,10 @@ fn handle_last_error(def: metadata::MethodDef, signature: &metadata::S... | 4 | 8 | 4 |
3807aba28cb1a480b096f88d3b107f94e8de39e7 | Kenny Kerr | 2024-02-27T14:56:51 | Add natural error translation for RPC (#2883) | diff --git a/crates/libs/bindgen/src/rust/extensions/mod.rs b/crates/libs/bindgen/src/rust/extensions/mod.rs
index 8d8f71ed6..39faef986 100644
--- a/crates/libs/bindgen/src/rust/extensions/mod.rs
+++ b/crates/libs/bindgen/src/rust/extensions/mod.rs
@@ -14,6 +14,7 @@ pub fn gen_mod(writer: &Writer, namespace: &str) -> T... | 6 | 105 | 1 |
428a7ca2e6870f0973a9c00642d59d3e4ef8bfc3 | Kenny Kerr | 2024-02-22T15:10:02 | Fix for `windows-targets::link` doc compatibility (#2868) | diff --git a/crates/libs/targets/Cargo.toml b/crates/libs/targets/Cargo.toml
index af1b07eba..b6afa9b7d 100644
--- a/crates/libs/targets/Cargo.toml
+++ b/crates/libs/targets/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "windows-targets"
-version = "0.52.1"
+version = "0.52.2"
authors = ["Microsoft"]
edition = "202... | 3 | 16 | 5 |
65b8ada2811917723113e11e279bf281a889582d | Kenny Kerr | 2024-02-21T02:10:06 | String trait refactoring (#2863) | diff --git a/crates/libs/core/src/param.rs b/crates/libs/core/src/param.rs
index 8dca3e059..cd16d473f 100644
--- a/crates/libs/core/src/param.rs
+++ b/crates/libs/core/src/param.rs
@@ -79,3 +79,15 @@ where
Param::Owned(std::mem::transmute_copy(&self))
}
}
+
+impl IntoParam<PCWSTR> for &BSTR {
+ unsafe... | 11 | 49 | 55 |
057d293af6890c6b36d301a00c374ec6e633c392 | Kenny Kerr | 2024-02-19T18:19:40 | Fix for new redundant import warnings in nightly Rust (#2858) | diff --git a/crates/libs/bindgen/src/rdl/from_reader.rs b/crates/libs/bindgen/src/rdl/from_reader.rs
index e1c024149..d194560c1 100644
--- a/crates/libs/bindgen/src/rdl/from_reader.rs
+++ b/crates/libs/bindgen/src/rdl/from_reader.rs
@@ -1,5 +1,4 @@
use super::*;
-use crate::Result;
use tokens::{quote, to_ident, Token... | 14 | 2 | 19 |
71dcb5f79b0e80d4e01a2ec664869ba7747f8d88 | Rafael Rivera | 2024-02-12T17:03:39 | Address new nightly unsafe precondition check panics (#2841) | diff --git a/crates/libs/core/src/event.rs b/crates/libs/core/src/event.rs
index c63a252d4..2251edd4f 100644
--- a/crates/libs/core/src/event.rs
+++ b/crates/libs/core/src/event.rs
@@ -198,6 +198,7 @@ impl<T: Interface> Drop for Array<T> {
/// A reference-counted buffer.
#[repr(C)]
+#[repr(align(8))]
struct Buffer... | 2 | 6 | 2 |
9e3b2b835b5397f01ada3140f809f9b7bc889f03 | Kenny Kerr | 2024-01-19T19:46:17 | Consistent `const` functions across string types (#2810) | diff --git a/crates/libs/core/src/strings/pcstr.rs b/crates/libs/core/src/strings/pcstr.rs
index 5535c5ae4..d4da2c331 100644
--- a/crates/libs/core/src/strings/pcstr.rs
+++ b/crates/libs/core/src/strings/pcstr.rs
@@ -12,12 +12,12 @@ impl PCSTR {
}
/// Construct a null `PCSTR`
- pub fn null() -> Self {
+ ... | 3 | 6 | 6 |
0a884e7517e2a9f3e849438f292e41dac5f849fc | Kenny Kerr | 2024-01-19T17:16:13 | Fix test reliability (#2809) | diff --git a/crates/tests/array/Cargo.toml b/crates/tests/array/Cargo.toml
index 31cda1974..581d4a9a9 100644
--- a/crates/tests/array/Cargo.toml
+++ b/crates/tests/array/Cargo.toml
@@ -9,4 +9,5 @@ path = "../../libs/windows"
features = [
"Foundation",
"Win32_Media_MediaFoundation",
+ "Win32_System_Com",
... | 2 | 4 | 1 |
587520b301b4d8799a0d92a2a928a5e2b23116be | Kenny Kerr | 2024-01-17T17:34:11 | Enable workspace lint `missing_docs` (#2799) | diff --git a/Cargo.toml b/Cargo.toml
index 92ea139e9..4cb7f88c4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,3 +15,4 @@ exclude = [
[workspace.lints.rust]
rust_2018_idioms = "warn"
unused_qualifications = "warn"
+missing_docs = "warn"
diff --git a/crates/libs/bindgen/src/error.rs b/crates/libs/bindgen/src/error.r... | 14 | 55 | 2 |
6b1c3ff357f292265422709429d29ab5ad1993e4 | Kenny Kerr | 2024-01-16T18:59:09 | Limit `AssociatedEnum` attribute to input parameters (#2797) | diff --git a/crates/libs/bindgen/src/metadata.rs b/crates/libs/bindgen/src/metadata.rs
index ffe4b93e0..5b084ccd6 100644
--- a/crates/libs/bindgen/src/metadata.rs
+++ b/crates/libs/bindgen/src/metadata.rs
@@ -343,6 +343,10 @@ fn param_kind(row: Param) -> SignatureParamKind {
// TODO: this is a terribly broken Win32 ... | 3 | 7 | 3 |
60f9e456952f9ef46aaf603cdde0a05e2e8a7de7 | Kenny Kerr | 2024-01-15T16:01:48 | Expand WMI sample for `ExecQuery` and `ExecMethod` (#2794) | diff --git a/crates/libs/core/src/strings/bstr.rs b/crates/libs/core/src/strings/bstr.rs
index 13a06138f..91197ebd1 100644
--- a/crates/libs/core/src/strings/bstr.rs
+++ b/crates/libs/core/src/strings/bstr.rs
@@ -29,11 +29,17 @@ impl BSTR {
/// Get the string as 16-bit wide characters (wchars).
pub fn as_wi... | 4 | 77 | 22 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.