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 |
|---|---|---|---|---|---|---|---|
e868f795cbc80c2a634434e35b36966540daf21b | Kenny Kerr | 2021-07-08T19:07:18 | Version 0.17.1 (#961) | diff --git a/Cargo.toml b/Cargo.toml
index c4b5fa001..121d42a2f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "windows"
-version = "0.17.0"
+version = "0.17.1"
authors = ["Microsoft"]
edition = "2018"
license = "MIT OR Apache-2.0"
@@ -11,8 +11,8 @@ readme = "README.md"
exclude = [".git... | 3 | 6 | 6 |
e9605afbd095c8cc8f80fc1bffda75256d4f715f | Kenny Kerr | 2021-07-08T19:01:01 | ubuntu builds (#960) | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index 1a26f61f0..058c6416a 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -45,8 +45,12 @@ pub fn build(stream: proc_macro::TokenStream) -> proc_macro::TokenStream {
let build = parse_macro_input!(stream as BuildMacro);
l... | 1 | 18 | 11 |
9922354d10ec7bfa2fd7e9d33c9b273fb72119f5 | Kenny Kerr | 2021-07-08T18:00:05 | Remove workaround (#959) | diff --git a/crates/gen/src/types/enum.rs b/crates/gen/src/types/enum.rs
index 3cd6e3115..56c360393 100644
--- a/crates/gen/src/types/enum.rs
+++ b/crates/gen/src/types/enum.rs
@@ -54,11 +54,6 @@ impl Enum {
// In such cases, the build script simply needs to import the type directly to generate all fields.
... | 1 | 0 | 5 |
b82eb0c0eb3abbf9de2041be231158b4b7b1396c | Kenny Kerr | 2021-07-07T22:47:41 | Version 0.17.0 (#955) | diff --git a/Cargo.toml b/Cargo.toml
index ba02afa7e..c4b5fa001 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "windows"
-version = "0.16.0"
+version = "0.17.0"
authors = ["Microsoft"]
edition = "2018"
license = "MIT OR Apache-2.0"
@@ -11,8 +11,8 @@ readme = "README.md"
exclude = [".git... | 4 | 17 | 24 |
e6faa065773757746c838dec33dbe05a652134fb | Kenny Kerr | 2021-07-07T21:50:25 | Version 0.16.0 (#954) | diff --git a/Cargo.toml b/Cargo.toml
index d433ae190..ba02afa7e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "windows"
-version = "0.15.0"
+version = "0.16.0"
authors = ["Microsoft"]
edition = "2018"
license = "MIT OR Apache-2.0"
@@ -11,8 +11,8 @@ readme = "README.md"
exclude = [".git... | 5 | 21 | 7 |
d5de34f417a7964f1d2340d8d19ab2aa9e8d3465 | Kenny Kerr | 2021-07-07T18:47:20 | More reliable target dir discovery (#951) | diff --git a/crates/bindings/src/main.rs b/crates/bindings/src/main.rs
index 42175e216..21dca6821 100644
--- a/crates/bindings/src/main.rs
+++ b/crates/bindings/src/main.rs
@@ -25,7 +25,7 @@ fn main() -> std::io::Result<()> {
},
};
- let mut path = windows_gen::workspace_dir();
+ let mut path: std... | 4 | 46 | 49 |
49ecfbc2f99cbc4bac32d6d771eeb589fe9d4e76 | Rafael Rivera | 2021-07-07T06:39:21 | Copy sub-directories within .windows (#949)
Copies any/all sub-folders contained within the `.windows` folder, including blank ones. This makes it easier to deploy language resources, loose xaml, and more. | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index 788a39095..af876f5ae 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -64,17 +64,20 @@ pub fn build(stream: proc_macro::TokenStream) -> proc_macro::TokenStream {
let _ = cmd.output();
fn copy(source... | 1 | 12 | 9 |
0adb39fa41e975dd6b20926ff8f036ab5f82c762 | Kenny Kerr | 2021-07-06T18:23:39 | Detects WinRT interop interfaces that derive from IInspectable (#945) | diff --git a/crates/gen/src/types/com_interface.rs b/crates/gen/src/types/com_interface.rs
index b1ed3b1dc..3f31fda39 100644
--- a/crates/gen/src/types/com_interface.rs
+++ b/crates/gen/src/types/com_interface.rs
@@ -4,19 +4,22 @@ use super::*;
pub struct ComInterface(pub tables::TypeDef);
impl ComInterface {
- ... | 4 | 48 | 9 |
00729b6f8dd6120cfaf578cea8b4ffeb83f710f5 | Kenny Kerr | 2021-07-02T23:07:49 | workspace | diff --git a/crates/gen/src/workspace.rs b/crates/gen/src/workspace.rs
index f21faef36..77a55bd8c 100644
--- a/crates/gen/src/workspace.rs
+++ b/crates/gen/src/workspace.rs
@@ -90,5 +90,11 @@ fn get_crate_winmds() -> Vec<File> {
dir.push("winmd");
push_dir(&mut result, &dir);
+ let mut dir = workspace_di... | 1 | 6 | 0 |
103d779f82c8d2fb9d03055596f73bc4a9bdd18b | Kenny Kerr | 2021-07-02T22:53:28 | redirect | diff --git a/crates/gen/src/workspace.rs b/crates/gen/src/workspace.rs
index 0868ad991..9ad03b0c6 100644
--- a/crates/gen/src/workspace.rs
+++ b/crates/gen/src/workspace.rs
@@ -54,16 +54,6 @@ pub fn workspace_dir() -> std::path::PathBuf {
}
fn get_crate_winmds() -> Vec<File> {
- use std::io::prelude::*;
- let... | 1 | 5 | 12 |
acf078656d79931eb35880c56f8f3c24b152baa4 | Kenny Kerr | 2021-07-02T19:05:31 | Fix build format (#938) | diff --git a/crates/gen/build.rs b/crates/gen/build.rs
index d9d090b98..d6e4da22e 100644
--- a/crates/gen/build.rs
+++ b/crates/gen/build.rs
@@ -1,9 +1,14 @@
fn main() {
- let mut source : ::std::path::PathBuf = ::std::env::var("CARGO_MANIFEST_DIR").expect("No `CARGO_MANIFEST_DIR` env var").into();
+ let mut sou... | 3 | 11 | 6 |
098ef4926b2db7aa4afdf033dc04048cd313918e | Kenny Kerr | 2021-07-02T18:44:26 | Packaging support (#936) | diff --git a/crates/gen/build.rs b/crates/gen/build.rs
new file mode 100644
index 000000000..d9d090b98
--- /dev/null
+++ b/crates/gen/build.rs
@@ -0,0 +1,38 @@
+fn main() {
+ let mut source : ::std::path::PathBuf = ::std::env::var("CARGO_MANIFEST_DIR").expect("No `CARGO_MANIFEST_DIR` env var").into();
+ source.pu... | 3 | 58 | 17 |
7cbcf91fea1c619db4eea6581d8152edea0914a1 | Kenny Kerr | 2021-06-22T20:14:02 | Sample cleanup (#898) | diff --git a/examples/d3d12/bindings/build.rs b/examples/d3d12/bindings/build.rs
index c0eac47f0..44ca2031a 100644
--- a/examples/d3d12/bindings/build.rs
+++ b/examples/d3d12/bindings/build.rs
@@ -1,7 +1,7 @@
fn main() {
windows::build! {
Windows::Win32::Foundation::{HINSTANCE, PSTR, RECT},
- Wind... | 2 | 2 | 4 |
b42f5028313403541d725d098999140031181384 | Kenny Kerr | 2021-06-22T19:54:49 | Include identity for minimally defined types (#897) | diff --git a/crates/gen/src/tables/type_def.rs b/crates/gen/src/tables/type_def.rs
index 4e26aafa2..02cedef8a 100644
--- a/crates/gen/src/tables/type_def.rs
+++ b/crates/gen/src/tables/type_def.rs
@@ -238,8 +238,17 @@ impl TypeDef {
dependencies
}
TypeKind::Class => {
+ ... | 5 | 26 | 8 |
d29f56f18c0a0d246f77361dee2d54da1cc0e856 | Ryan Levick | 2021-06-21T15:58:09 | Display win32 error code if HRESULT's facility is win32 (#886) | diff --git a/src/result/error.rs b/src/result/error.rs
index 930055908..8b7e3c17d 100644
--- a/src/result/error.rs
+++ b/src/result/error.rs
@@ -87,6 +87,16 @@ impl Error {
self.code.message()
}
+
+ /// Returns the win32 error code if the underlying HRESULT's facility is win32
+ fn win32_code(&sel... | 1 | 24 | 3 |
8a68fdb75e9fed6bbd5e651e6ed29122f341fa8d | Tim Weis | 2021-06-18T15:12:37 | Fixes memory leak in sample (#870) | diff --git a/examples/spellchecker/bindings/build.rs b/examples/spellchecker/bindings/build.rs
index b20b907f8..8bbe3ec23 100644
--- a/examples/spellchecker/bindings/build.rs
+++ b/examples/spellchecker/bindings/build.rs
@@ -5,6 +5,6 @@ fn main() {
IEnumSpellingError, ISpellChecker, ISpellCheckerFactory, I... | 2 | 13 | 14 |
37ad68dd9d18174f65351bba71b3290bd65ca102 | Marijn Suijten | 2021-06-18T15:11:04 | Replace E_NOINTERFACE magic number with constant from metadata (#848) | diff --git a/crates/bindings/src/main.rs b/crates/bindings/src/main.rs
index e3640ac8c..42175e216 100644
--- a/crates/bindings/src/main.rs
+++ b/crates/bindings/src/main.rs
@@ -5,7 +5,7 @@ fn main() -> std::io::Result<()> {
Windows::{
Foundation::{IReference, IStringable, PropertyValue},
... | 6 | 23 | 15 |
a6a04a9a54a8b939d0c035910fe6c30786a08ec3 | Floogle | 2021-06-18T14:54:56 | Add `#[track_caller]` to unwrap()/expect() in HRESULT and BOOL (#866) | diff --git a/crates/gen/src/types/bool32.rs b/crates/gen/src/types/bool32.rs
index fe0747636..f2cc275c6 100644
--- a/crates/gen/src/types/bool32.rs
+++ b/crates/gen/src/types/bool32.rs
@@ -25,11 +25,13 @@ pub fn gen_bool32() -> TokenStream {
}
#[inline]
+ #[track_caller]
... | 3 | 5 | 0 |
05b8e30cf024c62c0a94da7a3ff887eb257aa617 | James | 2021-06-17T23:09:58 | Annotate lifetime (#847) | diff --git a/crates/gen/src/types/pstr.rs b/crates/gen/src/types/pstr.rs
index 96357d0e1..442a858f3 100644
--- a/crates/gen/src/types/pstr.rs
+++ b/crates/gen/src/types/pstr.rs
@@ -26,7 +26,7 @@ pub fn gen_pstr() -> TokenStream {
unsafe impl ::windows::Abi for PSTR {
type Abi = Self;
- ... | 3 | 4 | 4 |
60faf9c7f1c18582282d381680b0180a871a04e8 | Damyan Pepper | 2021-06-17T16:37:41 | Make HRESULT impl Eq as well as PartialEq (#873) | diff --git a/src/result/error_code.rs b/src/result/error_code.rs
index 57b0e9fe3..60f297460 100644
--- a/src/result/error_code.rs
+++ b/src/result/error_code.rs
@@ -7,7 +7,7 @@ use bindings::{
/// A primitive error code value returned by most COM functions.
#[repr(transparent)]
-#[derive(Copy, Clone, Default, Debug... | 1 | 1 | 1 |
1b9cd3fe1236d1b3cd2eff5fa6d57836d12739fd | Kenny Kerr | 2021-06-09T15:37:41 | Win32 metadata workarounds (#849) | diff --git a/crates/gen/src/types/constant.rs b/crates/gen/src/types/constant.rs
index 183728d87..74f446681 100644
--- a/crates/gen/src/types/constant.rs
+++ b/crates/gen/src/types/constant.rs
@@ -7,12 +7,6 @@ impl Constant {
// TODO: move to Field?
pub fn gen(def: &tables::Field, gen: &Gen) -> TokenStream {
... | 2 | 5 | 6 |
830c668dd22431d6c73cf0da4bbf2eaf032319a2 | Robin Lambertz | 2021-06-09T14:44:00 | Generate proper function impl when cross-compiling (#830) | diff --git a/crates/gen/src/types/function.rs b/crates/gen/src/types/function.rs
index 6676bc50a..e91e553ed 100644
--- a/crates/gen/src/types/function.rs
+++ b/crates/gen/src/types/function.rs
@@ -42,30 +42,36 @@ impl Function {
link = "onecoreuap";
}
- let body = if cfg!(windows) {
- ... | 2 | 385 | 218 |
3031bc58564bcf53d7463d378d435ce8d38ad81f | Kenny Kerr | 2021-06-08T21:25:20 | Simplify type resolution (#845) | diff --git a/crates/gen/src/parser/codes.rs b/crates/gen/src/parser/codes.rs
index 4833747d9..6afd88a6f 100644
--- a/crates/gen/src/parser/codes.rs
+++ b/crates/gen/src/parser/codes.rs
@@ -331,7 +331,7 @@ impl TypeDefOrRef {
pub fn resolve(&self) -> tables::TypeDef {
match self {
- Self::Type... | 13 | 170 | 140 |
4e6d6ad9183b05612ea2c5265cbf589c56288eeb | Marijn Suijten | 2021-06-08T15:40:48 | Reformat build macro calls with a single top-level import (#844) | diff --git a/crates/fmt/src/main.rs b/crates/fmt/src/main.rs
index a8b78ff19..e3078bb0a 100644
--- a/crates/fmt/src/main.rs
+++ b/crates/fmt/src/main.rs
@@ -6,7 +6,8 @@ use std::process::Command;
use std::process::Stdio;
fn format_file(file: &Path, pattern: &str) -> Result<()> {
- const SHIM: &str = "use format_... | 10 | 54 | 24 |
510aab24fe511bfd8b5a26868a5ca99691cf03de | Kenny Kerr | 2021-05-26T17:46:52 | Buffer example should be unsafe (#822) | diff --git a/examples/buffer/src/main.rs b/examples/buffer/src/main.rs
index f47fb34c3..2d224c29e 100644
--- a/examples/buffer/src/main.rs
+++ b/examples/buffer/src/main.rs
@@ -1,15 +1,18 @@
use bindings::{Windows::Foundation::*, Windows::Win32::System::WinRT::IMemoryBufferByteAccess};
use windows::*;
-fn as_slice(... | 1 | 10 | 7 |
1f5034ad26ccfdf836fa765bbba308397bdb8f46 | Kenny Kerr | 2021-05-21T22:11:06 | Add basic string functions to `BSTR` (#815) | diff --git a/crates/gen/src/types/bstr.rs b/crates/gen/src/types/bstr.rs
index 90527c80f..98d10ab59 100644
--- a/crates/gen/src/types/bstr.rs
+++ b/crates/gen/src/types/bstr.rs
@@ -6,17 +6,38 @@ pub fn gen_bstr() -> TokenStream {
#[derive(::std::cmp::Eq)]
pub struct BSTR(*mut u16);
impl BSTR ... | 3 | 38 | 4 |
53058cc252bee31316174c51c8006d39d954e6c5 | fghzxm | 2021-05-18T04:43:07 | Fix groups inside namespaces in `build!` (#806) | diff --git a/crates/macros/src/build_macro.rs b/crates/macros/src/build_macro.rs
index 76225e59f..54fb1ea4d 100644
--- a/crates/macros/src/build_macro.rs
+++ b/crates/macros/src/build_macro.rs
@@ -52,9 +52,17 @@ impl Parse for BuildMacro {
fn walk(
reader: &'static TypeReader,
... | 2 | 21 | 8 |
7ad7655d19587ab09c5eaf011388a215060c6faf | Marijn Suijten | 2021-05-12T21:46:20 | Use iterator and collect instead of mut and insert (#798) | diff --git a/crates/gen/src/tables/type_def.rs b/crates/gen/src/tables/type_def.rs
index 6812d20be..1b068d1de 100644
--- a/crates/gen/src/tables/type_def.rs
+++ b/crates/gen/src/tables/type_def.rs
@@ -192,18 +192,16 @@ impl TypeDef {
}
pub fn overridable_methods(&self) -> BTreeSet<&'static str> {
- l... | 1 | 9 | 11 |
6ff70eea604c0638e4583b709f0bce41fb6860b9 | Kenny Kerr | 2021-05-12T20:22:43 | Remove unnecessary anonymous lifetimes (#796) | diff --git a/crates/gen/src/parser/type_reader.rs b/crates/gen/src/parser/type_reader.rs
index b431f2c3b..6a87c6542 100644
--- a/crates/gen/src/parser/type_reader.rs
+++ b/crates/gen/src/parser/type_reader.rs
@@ -157,10 +157,7 @@ impl TypeReader {
/// # Panics
///
/// Panics if the namespace does not exi... | 6 | 12 | 15 |
5378edbce5737764d4f5d6b0572c7f5ec444c605 | Kenny Kerr | 2021-05-12T19:22:32 | Implement macro parsing complete (#795) | diff --git a/crates/gen/src/tables/type_def.rs b/crates/gen/src/tables/type_def.rs
index 070daa3e1..f27868970 100644
--- a/crates/gen/src/tables/type_def.rs
+++ b/crates/gen/src/tables/type_def.rs
@@ -118,6 +118,16 @@ impl TypeDef {
})
}
+ pub fn is_public_composable(&self) -> bool {
+ self.at... | 9 | 304 | 141 |
e366c7a93a3732ecf4f76264183951d2ed5df797 | Kenny Kerr | 2021-05-11T01:04:26 | Lift TypeReader out of loop (#789) | diff --git a/crates/macros/src/build_macro.rs b/crates/macros/src/build_macro.rs
index 6f7462b87..76225e59f 100644
--- a/crates/macros/src/build_macro.rs
+++ b/crates/macros/src/build_macro.rs
@@ -43,10 +43,10 @@ impl BuildMacro {
impl Parse for BuildMacro {
fn parse(input: ParseStream) -> Result<Self> {
+ ... | 1 | 1 | 1 |
723cda4801b194a9dcfa787ad44e8b3863fa639f | ABDUL NIYAS P M | 2021-05-08T15:07:59 | Minor Typo Fix (#781) | diff --git a/examples/spellchecker/src/main.rs b/examples/spellchecker/src/main.rs
index f6a6d47c2..a01a21f1a 100644
--- a/examples/spellchecker/src/main.rs
+++ b/examples/spellchecker/src/main.rs
@@ -53,7 +53,7 @@ fn main() -> windows::Result<()> {
error.get_Length(&mut length).ok()?;
}
- ... | 1 | 1 | 1 |
a2a980fbaa399a2f4f79e35624fa0f20a0f72b00 | Kenny Kerr | 2021-05-07T20:36:55 | Remove dead code (#778) | diff --git a/Cargo.toml b/Cargo.toml
index 5bb76f211..4e3fc3787 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,7 +16,6 @@ gen = { package = "windows_gen", path = "crates/gen", version = "0.9.1", option
const-sha1 = "0.2"
[dev-dependencies]
-doc-comment = "0.3"
gen = { package = "windows_gen", path = "crates/gen"... | 2 | 1 | 2 |
9f7cf8e40e6b69c523e264ada6d58e3dbaecafde | Kenny Kerr | 2021-05-04T21:16:30 | Fix indirect `syn` dependency (#769) | diff --git a/crates/gen/Cargo.toml b/crates/gen/Cargo.toml
index af3e8a37d..9ee2ff6f1 100644
--- a/crates/gen/Cargo.toml
+++ b/crates/gen/Cargo.toml
@@ -7,4 +7,3 @@ license = "MIT OR Apache-2.0"
description = "Code generation for the windows crate"
[dependencies]
-syn = { version = "1.0", default-features = false, ... | 2 | 1 | 2 |
590fbebcb18003f16b21f93b70f44cfdb01e1bf5 | Kenny Kerr | 2021-04-29T19:32:22 | Make HString Send + Sync (#757) | diff --git a/src/runtime/hstring.rs b/src/runtime/hstring.rs
index b95302ee7..bd0054f0c 100644
--- a/src/runtime/hstring.rs
+++ b/src/runtime/hstring.rs
@@ -133,6 +133,9 @@ impl Drop for HString {
}
}
+unsafe impl Send for HString {}
+unsafe impl Sync for HString {}
+
impl std::fmt::Display for HString {
... | 1 | 3 | 0 |
368319fae78539d096a690c5579f2750c38e96bf | Kenny Kerr | 2021-04-29T19:17:24 | MemoryBuffer example (#756) | diff --git a/examples/buffer/Cargo.toml b/examples/buffer/Cargo.toml
new file mode 100644
index 000000000..13451bb54
--- /dev/null
+++ b/examples/buffer/Cargo.toml
@@ -0,0 +1,9 @@
+[package]
+name = "buffer"
+version = "0.0.0"
+authors = ["Microsoft"]
+edition = "2018"
+
+[dependencies]
+bindings = { package = "buffer_... | 5 | 60 | 0 |
a2edf8867ea6957282da1196413d0e6234ab8559 | Kenny Kerr | 2021-04-29T18:14:57 | Remove versions from unpackaged crates (#755) | diff --git a/crates/bindings/Cargo.toml b/crates/bindings/Cargo.toml
index 51caec156..8a7639b1c 100644
--- a/crates/bindings/Cargo.toml
+++ b/crates/bindings/Cargo.toml
@@ -1,11 +1,11 @@
[package]
name = "windows_bindings"
-version = "0.9.1"
+version = "0.0.0"
authors = ["Microsoft"]
edition = "2018"
license = "MI... | 41 | 50 | 50 |
7c89c9b4039eab5e5e4350c240c8ae89a12f1978 | Kenny Kerr | 2021-04-29T17:55:38 | Minor code cleanup (#754) | diff --git a/crates/gen/src/parser/codes.rs b/crates/gen/src/parser/codes.rs
index fc1d37a49..88d854559 100644
--- a/crates/gen/src/parser/codes.rs
+++ b/crates/gen/src/parser/codes.rs
@@ -30,7 +30,7 @@ impl Decode for TypeDefOrRef {
impl TypeDefOrRef {
pub fn encode(&self) -> u32 {
match self {
- ... | 4 | 17 | 11 |
7a903eb6a6fb6875e6f56f2126a51063012d108f | Marijn Suijten | 2021-04-29T16:46:06 | Emit consistent stub signatures on unsupported platforms (#746) | diff --git a/crates/gen/src/types/function.rs b/crates/gen/src/types/function.rs
index 58e67a82c..6b3645a0d 100644
--- a/crates/gen/src/types/function.rs
+++ b/crates/gen/src/types/function.rs
@@ -51,37 +51,46 @@ impl Function {
link = "onecoreuap";
}
- if cfg!(windows) {
+ let bod... | 1 | 25 | 16 |
cd93b3277e71c5db3a3ec2ef2064293f1991465c | Kenny Kerr | 2021-04-28T23:01:15 | Add support for weak references (#745) | diff --git a/crates/gen/src/types/delegate.rs b/crates/gen/src/types/delegate.rs
index 343114762..ce9f69cba 100644
--- a/crates/gen/src/types/delegate.rs
+++ b/crates/gen/src/types/delegate.rs
@@ -89,7 +89,7 @@ impl Delegate {
pub fn new<#fn_constraint>(invoke: F) -> Self {
let com... | 11 | 439 | 23 |
77481169ecefa5f04aac94cab0820c4989c6862c | Kenny Kerr | 2021-04-28T18:08:56 | Remove compile time version check (#744) | diff --git a/crates/bindings/src/main.rs b/crates/bindings/src/main.rs
index a927a9d71..ac3e23aa8 100644
--- a/crates/bindings/src/main.rs
+++ b/crates/bindings/src/main.rs
@@ -27,7 +27,6 @@ fn main() -> std::io::Result<()> {
)?;
file.write_all(tokens.as_bytes())?;
- file.write_all(gen_crate_version_asse... | 2 | 0 | 45 |
22d473f8b81bbce7d3f003e0f05471ac8720c27f | Kenny Kerr | 2021-04-28T16:32:43 | Implements `Clone` for `BSTR` (#740) | diff --git a/crates/gen/src/parser/method_signature.rs b/crates/gen/src/parser/method_signature.rs
index c52b5db8e..073ad9aa5 100644
--- a/crates/gen/src/parser/method_signature.rs
+++ b/crates/gen/src/parser/method_signature.rs
@@ -24,10 +24,20 @@ impl MethodSignature {
pub fn has_query_interface(&self) -> bool... | 12 | 102 | 8 |
fe8955c3577bbece28207f1596f604dc9ee2ccf8 | Kenny Kerr | 2021-04-27T17:40:18 | Transform QueryInterface-like functions into generic functions (#735) | diff --git a/crates/gen/src/parser/element_type.rs b/crates/gen/src/parser/element_type.rs
index 0120b72af..9e71491cd 100644
--- a/crates/gen/src/parser/element_type.rs
+++ b/crates/gen/src/parser/element_type.rs
@@ -38,6 +38,12 @@ pub enum ElementType {
Callback(types::Callback),
}
+impl Default for ElementTyp... | 9 | 74 | 51 |
8676771b2bf042de19c111abeec8bdf09283be40 | Kenny Kerr | 2021-04-26T17:10:50 | Workaround for IInspectable interop interfaces (#730) | diff --git a/crates/gen/src/parser/type_reader.rs b/crates/gen/src/parser/type_reader.rs
index 19c230796..63ce319a6 100644
--- a/crates/gen/src/parser/type_reader.rs
+++ b/crates/gen/src/parser/type_reader.rs
@@ -117,7 +117,6 @@ impl TypeReader {
("Windows.Win32.Com", "HRESULT"),
("Windows.Win... | 2 | 1 | 1 |
6893648455372d8dc4a1619ba8442bf658c83708 | Kenny Kerr | 2021-04-21T22:10:31 | Allow unsafe callbacks (#720) | diff --git a/crates/gen/src/types/callback.rs b/crates/gen/src/types/callback.rs
index 9fba16638..aa3b99de7 100644
--- a/crates/gen/src/types/callback.rs
+++ b/crates/gen/src/types/callback.rs
@@ -41,7 +41,7 @@ impl Callback {
};
quote! {
- pub type #name = extern "system" fn(#(#params),*... | 2 | 14 | 12 |
b850be80c3ebf0bc2564ac646fd2e5ec3128f66c | Kenny Kerr | 2021-04-21T18:53:59 | Add weak reference (consumer) support (#718) | diff --git a/src/interfaces/mod.rs b/src/interfaces/mod.rs
index c8ea18eca..978aa864c 100644
--- a/src/interfaces/mod.rs
+++ b/src/interfaces/mod.rs
@@ -3,7 +3,11 @@ use super::*;
mod activation_factory;
mod object;
mod unknown;
+mod weak_reference;
+mod weak_reference_source;
pub use activation_factory::*;
pub ... | 11 | 147 | 1 |
d36ac1946a62d5b3d3f1c4cec364ad114a369d6e | Kenny Kerr | 2021-04-15T20:57:31 | Improved handle code gen (#708) | diff --git a/crates/gen/src/parser/element_type.rs b/crates/gen/src/parser/element_type.rs
index 788940279..8ac610314 100644
--- a/crates/gen/src/parser/element_type.rs
+++ b/crates/gen/src/parser/element_type.rs
@@ -220,7 +220,7 @@ impl ElementType {
quote! { [#name; #len] }
}
... | 13 | 140 | 108 |
fbc8db2c5f42592384878e320bfe93adf7f2c97b | Kenny Kerr | 2021-04-15T16:44:22 | Use repr(transparent) for handles (#707) | diff --git a/crates/gen/src/types/bool32.rs b/crates/gen/src/types/bool32.rs
index 7119389ca..f78011eec 100644
--- a/crates/gen/src/types/bool32.rs
+++ b/crates/gen/src/types/bool32.rs
@@ -2,9 +2,6 @@ use super::*;
pub fn gen_bool32() -> TokenStream {
quote! {
- #[repr(C)]
- #[derive(::std::clone:... | 6 | 44 | 41 |
22de87fcfa8cce8e2a93e7767f98e6b3c4e08110 | Kenny Kerr | 2021-04-08T21:38:44 | Add NULL/is_null to all handle types (#686) | diff --git a/crates/gen/src/types/handle.rs b/crates/gen/src/types/handle.rs
index 2a156d164..a9ef25bad 100644
--- a/crates/gen/src/types/handle.rs
+++ b/crates/gen/src/types/handle.rs
@@ -3,11 +3,7 @@ use super::*;
pub fn gen_handle() -> TokenStream {
quote! {
impl HANDLE {
- pub const NULL: ... | 7 | 48 | 6 |
169e63a1920a950f3f6be2556073bb8d1ba5edec | Ryan Levick | 2021-04-08T13:55:50 | Statically assert that the bindings were generated against a certain version of the crate (#682) | diff --git a/crates/bindings/src/main.rs b/crates/bindings/src/main.rs
index 67eea9827..f92471c20 100644
--- a/crates/bindings/src/main.rs
+++ b/crates/bindings/src/main.rs
@@ -25,18 +25,8 @@ fn main() -> std::io::Result<()> {
"// This file was generated by the `windows` crate - do not edit by hand!\n\n".as_by... | 2 | 45 | 11 |
35f5391f7c728b7a644c7b3c640df0502a5bec62 | Kenny Kerr | 2021-04-07T22:00:34 | Add new method for creating a unique Guid value (#681) | diff --git a/crates/bindings/src/main.rs b/crates/bindings/src/main.rs
index b3b8a847f..67eea9827 100644
--- a/crates/bindings/src/main.rs
+++ b/crates/bindings/src/main.rs
@@ -7,7 +7,9 @@ fn main() -> std::io::Result<()> {
Windows::Win32::WinRT::{IRestrictedErrorInfo, ILanguageExceptionErrorInfo2},
W... | 3 | 32 | 29 |
1ff8f690f13582174c9bb8795232b148ee8a0fff | Kenny Kerr | 2021-04-07T21:03:28 | Add deprecated feature to conditionally include deprecated APIs (#680) | diff --git a/crates/gen/src/parser/interface_info.rs b/crates/gen/src/parser/interface_info.rs
index 0c017be9f..f4b56692b 100644
--- a/crates/gen/src/parser/interface_info.rs
+++ b/crates/gen/src/parser/interface_info.rs
@@ -42,6 +42,7 @@ impl InterfaceInfo {
name,
vtable_offse... | 9 | 47 | 0 |
0418c8cbfb6b52ccb94bf0564aa726450746a05d | Kenny Kerr | 2021-04-01T19:47:37 | Experimental crates generator (#662) | diff --git a/crates/crates/Cargo.toml b/crates/crates/Cargo.toml
new file mode 100644
index 000000000..b8f64454b
--- /dev/null
+++ b/crates/crates/Cargo.toml
@@ -0,0 +1,10 @@
+[package]
+name = "windows_crates"
+version = "0.7.0"
+authors = ["Microsoft"]
+edition = "2018"
+license = "MIT OR Apache-2.0"
+description = "... | 2 | 135 | 0 |
87f32117f613e3a1666e3dc7a379ba596789a4dd | Kenny Kerr | 2021-04-01T17:42:29 | Simplify windows_gen dependencies (#661) | diff --git a/crates/gen/Cargo.toml b/crates/gen/Cargo.toml
index a932c843a..b36386bc8 100644
--- a/crates/gen/Cargo.toml
+++ b/crates/gen/Cargo.toml
@@ -7,7 +7,4 @@ license = "MIT OR Apache-2.0"
description = "Code generation for the windows crate"
[dependencies]
-quote = "1.0"
syn = { version = "1.0", default-fea... | 15 | 1,113 | 93 |
e5e3ca893c3acf526480c3f6ba94805fe27de762 | Ryan Levick | 2021-03-25T13:05:36 | Remove gen-macros crate (#643) | diff --git a/crates/gen/Cargo.toml b/crates/gen/Cargo.toml
index 0f9f3ef26..4264666ee 100644
--- a/crates/gen/Cargo.toml
+++ b/crates/gen/Cargo.toml
@@ -7,8 +7,7 @@ license = "MIT OR Apache-2.0"
description = "Code generation for the windows crate"
[dependencies]
-windows_gen_macros = { path = "macros", version = ... | 6 | 280 | 137 |
d484fe1b371f8887a867d9a2a1765490982461b9 | Kenny Kerr | 2021-03-23T21:06:14 | Linker workaround and minor code cleanup (#640) | diff --git a/crates/gen/src/types/function.rs b/crates/gen/src/types/function.rs
index 9705ce2b6..decb0ff89 100644
--- a/crates/gen/src/types/function.rs
+++ b/crates/gen/src/types/function.rs
@@ -46,7 +46,7 @@ impl Function {
let mut link = self.0.impl_map().expect("Function").scope().name();
// TO... | 4 | 13 | 10 |
1f340d356cf917e3733f4ee12900d088456c4dca | Kenny Kerr | 2021-03-23T16:40:53 | Layout and clone (#639) | diff --git a/crates/gen/src/types/struct.rs b/crates/gen/src/types/struct.rs
index 24c312009..d8841759a 100644
--- a/crates/gen/src/types/struct.rs
+++ b/crates/gen/src/types/struct.rs
@@ -156,7 +156,7 @@ impl Struct {
quote! {
#[derive(::std::clone::Clone, ::std::marker::Copy)]
... | 1 | 1 | 1 |
3c7bb5d1678a4cbaa4b3e1c0d5a016636ac9351c | Kenny Kerr | 2021-03-23T16:02:22 | Consolidated warnings (#637) | diff --git a/crates/gen/src/guid.rs b/crates/gen/src/guid.rs
index 80ceee6c2..5a37dbeac 100644
--- a/crates/gen/src/guid.rs
+++ b/crates/gen/src/guid.rs
@@ -1,3 +1,5 @@
+#![allow(clippy::many_single_char_names)]
+
use super::*;
#[derive(Clone, PartialEq, Default)]
diff --git a/crates/gen/src/parser/file.rs b/crates... | 15 | 17 | 28 |
ae93bbf3ee6ec2e5536480d0d8d2e6101819fe49 | Kenny Kerr | 2021-03-23T15:02:43 | Add struct packing (#636) | diff --git a/crates/gen/src/parser/file.rs b/crates/gen/src/parser/file.rs
index 1d7f55a78..a72c55e88 100644
--- a/crates/gen/src/parser/file.rs
+++ b/crates/gen/src/parser/file.rs
@@ -20,7 +20,7 @@ pub struct File {
/// The index of the blobs data
pub(crate) blobs: u32,
/// The table data
- pub(crate... | 9 | 95 | 22 |
669b4167843b70666dc4d3bd28104b52b90651db | Kenny Kerr | 2021-03-23T00:26:41 | Add bitwise assign operators (#635) | diff --git a/crates/gen/src/types/enum.rs b/crates/gen/src/types/enum.rs
index e450195da..708ccb78a 100644
--- a/crates/gen/src/types/enum.rs
+++ b/crates/gen/src/types/enum.rs
@@ -54,7 +54,6 @@ impl Enum {
// on the flags attribute.
let bitwise = if bitwise || self.0.has_attribute("FlagsAttribute") {... | 3 | 29 | 2 |
bdb9a47439bba1294cdb1d533cde796fca200fb2 | Kenny Kerr | 2021-03-22T22:34:14 | Add guid constants (#634) | diff --git a/crates/gen/src/guid.rs b/crates/gen/src/guid.rs
index 7ace67914..80ceee6c2 100644
--- a/crates/gen/src/guid.rs
+++ b/crates/gen/src/guid.rs
@@ -4,8 +4,10 @@ use super::*;
pub struct Guid(u32, u16, u16, u8, u8, u8, u8, u8, u8, u8, u8);
impl Guid {
- pub fn from_type_def(def: &tables::TypeDef) -> Opti... | 11 | 44 | 15 |
978627e0b0d9d58019c957fb028bcf1291672c68 | Kenny Kerr | 2021-03-22T21:43:43 | Remove workarounds (#632) | diff --git a/crates/gen/src/parser/generic_type.rs b/crates/gen/src/parser/generic_type.rs
index 484c5db75..3cd5c5aa8 100644
--- a/crates/gen/src/parser/generic_type.rs
+++ b/crates/gen/src/parser/generic_type.rs
@@ -86,7 +86,6 @@ impl GenericType {
pub fn gen_guid(&self, gen: &Gen) -> TokenStream {
if ... | 9 | 17 | 37 |
1e1e48127dcdc279ac79bcef2a638b6f194b6e2f | Ryan Levick | 2021-03-19T15:43:47 | Add work around for bug in cross compilation (#621) | diff --git a/crates/gen/Cargo.toml b/crates/gen/Cargo.toml
index 703639aa3..fe9431b84 100644
--- a/crates/gen/Cargo.toml
+++ b/crates/gen/Cargo.toml
@@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"
description = "Code generation for the windows crate"
[dependencies]
-macros = { package = "windows_gen_macros", path = "... | 2 | 4 | 1 |
aa5837e4b405d846ab899d440b31a93dfe72b1aa | Kenny Kerr | 2021-03-18T17:30:24 | Workaround for broken docs.rs build (#616) | diff --git a/Cargo.toml b/Cargo.toml
index 3b12ea278..39d6340c4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,4 +31,4 @@ members = [
[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
-targets = ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc"]
+targets = ["x86_64-pc-windows-msvc"] | 1 | 1 | 1 |
3c732d1b9196310478491a0df322f167dd983cce | Kenny Kerr | 2021-03-16T21:46:55 | Adds support for Win32 arrays (#608) | diff --git a/crates/gen/src/parser/element_type.rs b/crates/gen/src/parser/element_type.rs
index dc9fd4762..ecf4badf6 100644
--- a/crates/gen/src/parser/element_type.rs
+++ b/crates/gen/src/parser/element_type.rs
@@ -2,7 +2,6 @@ use super::*;
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord)]
pub enum ElementT... | 8 | 72 | 19 |
18a6878a68edbffdf28f8bb7954b5b5a99fceabc | Kenny Kerr | 2021-03-16T17:06:33 | Metadata tweaks (#607) | diff --git a/crates/gen/src/parser/type_reader.rs b/crates/gen/src/parser/type_reader.rs
index b21bfdf7c..37be73c90 100644
--- a/crates/gen/src/parser/type_reader.rs
+++ b/crates/gen/src/parser/type_reader.rs
@@ -17,7 +17,7 @@ pub struct TypeReader {
nested: BTreeMap<Row, BTreeMap<String, Row>>,
}
-#[derive(Cop... | 2 | 7 | 8 |
3cdbed5b6d88a882e83a41ea9d46a0d4f3448357 | Kenny Kerr | 2021-03-15T14:51:31 | Add RSS example (#602) | diff --git a/examples/rss/Cargo.toml b/examples/rss/Cargo.toml
new file mode 100644
index 000000000..252d59338
--- /dev/null
+++ b/examples/rss/Cargo.toml
@@ -0,0 +1,9 @@
+[package]
+name = "rss"
+version = "0.4.0"
+authors = ["Kenny Kerr <kenny.kerr@microsoft.com>"]
+edition = "2018"
+
+[dependencies]
+bindings = { pa... | 5 | 44 | 0 |
43b0eb28849dd30b625ba002bd7dc207c085f8c4 | Kenny Kerr | 2021-03-15T14:18:27 | Make IRestrictedErrorInfo Send + Sync (#601) | diff --git a/crates/gen/src/types/com_interface.rs b/crates/gen/src/types/com_interface.rs
index f84900abb..6777f0190 100644
--- a/crates/gen/src/types/com_interface.rs
+++ b/crates/gen/src/types/com_interface.rs
@@ -188,6 +188,18 @@ impl ComInterface {
});
}
+ let send_sync = if matc... | 2 | 27 | 1 |
c68ecc34113d059a0bb1dcc9151940518ead087a | Zachary Catlin | 2021-03-11T21:15:34 | Fix visibility of PhantomData in ABI types (#588) | diff --git a/crates/gen/src/parser/generic_type.rs b/crates/gen/src/parser/generic_type.rs
index 77febc7d9..468a749ce 100644
--- a/crates/gen/src/parser/generic_type.rs
+++ b/crates/gen/src/parser/generic_type.rs
@@ -146,14 +146,11 @@ impl GenericType {
}
}
- pub fn gen_phantoms(&self, gen: &Gen) -> ... | 3 | 15 | 15 |
b39adec7653649263e46ace325a99cd73a62480b | Kenny Kerr | 2021-03-11T17:06:53 | Reduce size of published windows crate (#593) | diff --git a/Cargo.toml b/Cargo.toml
index 7ed4b1fb1..3b12ea278 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,6 +8,7 @@ description = "Rust for Windows"
repository = "https://github.com/microsoft/windows-rs"
documentation = "https://docs.rs/windows"
readme = "README.md"
+exclude = [".github", ".windows", "docs", "e... | 1 | 1 | 0 |
a2198813bdf6ada2271ac7b1d12de7781556aa56 | Kenny Kerr | 2021-03-11T16:03:35 | Small improvements to code clarity (#591) | diff --git a/crates/gen/src/gen.rs b/crates/gen/src/gen.rs
index 1372ea716..e2190c09a 100644
--- a/crates/gen/src/gen.rs
+++ b/crates/gen/src/gen.rs
@@ -1,10 +1,6 @@
use super::*;
use std::iter::FromIterator;
-// TODO: Gen should store TypeTree somehow so code gen can quickly check whether a given interface method
... | 24 | 206 | 251 |
c7253cb08e4a8da89689f8a1158e359889c79096 | Kenny Kerr | 2021-03-10T15:23:43 | Introduce conservative dependency tracking (#587) | diff --git a/crates/gen/src/async.rs b/crates/gen/src/async.rs
index e58c4b60a..6cf36f186 100644
--- a/crates/gen/src/async.rs
+++ b/crates/gen/src/async.rs
@@ -3,7 +3,7 @@ use super::*;
pub fn gen_async(
def: &GenericType,
interfaces: &[InterfaceInfo],
- gen: Gen,
+ gen: &Gen,
) -> (TokenStream, Toke... | 31 | 326 | 164 |
efd1d98dc1495e88a61c20957990e5edb95df8e4 | Kenny Kerr | 2021-03-09T22:05:13 | Rust doc improvements (#585) | diff --git a/crates/gen/src/parser/type_reader.rs b/crates/gen/src/parser/type_reader.rs
index 4dcd1f632..169fea0a7 100644
--- a/crates/gen/src/parser/type_reader.rs
+++ b/crates/gen/src/parser/type_reader.rs
@@ -184,7 +184,7 @@ impl TypeReader {
self.types.keys()
}
- /// Get all type definitions ([`... | 3 | 12 | 3 |
6b3277dcfe8300c8a14735b2e89c4af18f76b0df | Kenny Kerr | 2021-03-09T21:16:54 | Trim unused types from cache (#584) | diff --git a/crates/gen/src/parser/element_type.rs b/crates/gen/src/parser/element_type.rs
index 86cd7c9d7..29d9a1f72 100644
--- a/crates/gen/src/parser/element_type.rs
+++ b/crates/gen/src/parser/element_type.rs
@@ -128,12 +128,9 @@ impl ElementType {
("Windows.Win32.SystemServices", "ULARGE_I... | 8 | 41 | 58 |
e909422c26fc12322f00b1b389e6cd8d62b46aa5 | Kenny Kerr | 2021-03-09T20:01:25 | Use generated bindings internally (#583) | diff --git a/build.rs b/build.rs
index d53c4cab1..be8977227 100644
--- a/build.rs
+++ b/build.rs
@@ -4,5 +4,11 @@ fn main() {
windows::win32::automation::{BSTR, GetErrorInfo, IErrorInfo, SetErrorInfo},
windows::win32::winrt::{IRestrictedErrorInfo, ILanguageExceptionErrorInfo2},
windows::win32... | 14 | 69 | 272 |
aa56c14282cfbf1a869efb4b64432e3499eed322 | Kenny Kerr | 2021-03-09T19:01:04 | Error handling and enum flags (#579) | diff --git a/build.rs b/build.rs
index 3720a403b..d53c4cab1 100644
--- a/build.rs
+++ b/build.rs
@@ -3,6 +3,6 @@ fn main() {
windows::foundation::{IReference, IStringable, PropertyValue},
windows::win32::automation::{BSTR, GetErrorInfo, IErrorInfo, SetErrorInfo},
windows::win32::winrt::{IRest... | 4 | 88 | 59 |
06208a6ad3f9eeaf0a684e9337eb643f4ae5f97b | Kenny Kerr | 2021-02-08T20:20:38 | Add support for nested constants (#530) | diff --git a/crates/gen/src/constant.rs b/crates/gen/src/constant.rs
index ebc3274ca..e47614984 100644
--- a/crates/gen/src/constant.rs
+++ b/crates/gen/src/constant.rs
@@ -36,26 +36,10 @@ impl Constant {
let value = constant.value();
let name = format_ident(name);
- let value = gen(&value);
... | 5 | 52 | 17 |
bf5efbf4933e3e44ff9322735065fa88d64d281c | Ryan Levick | 2021-02-04T20:49:30 | Derive PartialEq and Eq on 'enums' to enable pattern matching (#517) | diff --git a/crates/gen/src/enum.rs b/crates/gen/src/enum.rs
index a5f522f9a..b841ef511 100644
--- a/crates/gen/src/enum.rs
+++ b/crates/gen/src/enum.rs
@@ -125,6 +125,7 @@ impl Enum {
quote! {
#[allow(non_camel_case_types)]
+ #[derive(PartialEq, Eq)]
#[repr(transparent)]... | 1 | 1 | 6 |
99a91841ce3cc220d0528a8a61ad6733e873ed81 | Kenny Kerr | 2021-02-04T20:39:46 | Fix cargo publish error (#519) | diff --git a/crates/winmd/src/workspace.rs b/crates/winmd/src/workspace.rs
index 4a36ce23c..e6546e866 100644
--- a/crates/winmd/src/workspace.rs
+++ b/crates/winmd/src/workspace.rs
@@ -14,6 +14,7 @@ fn workspace_dir() -> std::path::PathBuf {
let output = std::process::Command::new(env!("CARGO"))
.... | 1 | 1 | 0 |
a107f6221c044ef4dccdea9ca6f866e57c973d7a | Ryan Levick | 2021-02-04T16:40:03 | Add a costring type (#514)
* Add a costring type
* Check for null when allocating for CoString
* Small improvements to CoString | diff --git a/src/lib.rs b/src/lib.rs
index b229899e0..2f2086cb7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -26,7 +26,7 @@ pub use runtime::{
create_instance, factory, initialize_mta, initialize_sta, Array, FactoryCache, Guid, Param,
RefCount, Waiter,
};
-pub use strings::{BString, HString};
+pub use strings... | 3 | 160 | 1 |
740630d6b107120f9ba4905c3bfe61dbed1694d6 | Ryan Levick | 2021-02-03T18:33:22 | Add unsupported type (#506)
* Add unsupported type
* Fix typo | diff --git a/crates/gen/src/type.rs b/crates/gen/src/type.rs
index 77577c8be..d75eaaf7c 100644
--- a/crates/gen/src/type.rs
+++ b/crates/gen/src/type.rs
@@ -46,6 +46,9 @@ pub enum TypeKind {
Struct(TypeName),
Delegate(TypeName),
Generic(&'static str),
+ /// A type that hasn't been supported yet.
+ ... | 2 | 22 | 2 |
6bc142afd8e7407c713c985d641904a496fc7ccb | Kenny Kerr | 2021-02-02T19:18:08 | Update examples to use COM helpers (#502) | diff --git a/examples/clock/bindings/build.rs b/examples/clock/bindings/build.rs
index 9ea90f769..b24530e6f 100644
--- a/examples/clock/bindings/build.rs
+++ b/examples/clock/bindings/build.rs
@@ -20,7 +20,6 @@ fn main() {
IDXGIDevice, IDXGIFactory7, CreateDXGIFactory1, DXGI_USAGE_RENDER_TARGET_OUTPUT,
... | 2 | 10 | 44 |
ec3a80223d1292a938ab888f7ae1fcd5ee0052d1 | Ryan Levick | 2021-02-02T15:49:33 | Mark set_abi as safe (#499)
Co-authored-by: Kenny Kerr <kekerr@microsoft.com> | diff --git a/src/strings/bstring.rs b/src/strings/bstring.rs
index dcc3d188c..db1955abd 100644
--- a/src/strings/bstring.rs
+++ b/src/strings/bstring.rs
@@ -61,7 +61,7 @@ impl BString {
unsafe impl Abi for BString {
type Abi = RawPtr;
- unsafe fn set_abi(&mut self) -> *mut RawPtr {
+ fn set_abi(&mut self)... | 3 | 12 | 9 |
b18baad2c9778f4c6414e0dc9c770b51a14e4e4e | Kenny Kerr | 2021-02-02T15:38:35 | Add basic COM helpers (#496) | diff --git a/crates/tests/build.rs b/crates/tests/build.rs
index 58c209677..30574b03f 100644
--- a/crates/tests/build.rs
+++ b/crates/tests/build.rs
@@ -71,5 +71,6 @@ fn main() {
windows::win32::game_mode::HasExpandedResources,
windows::win32::debug::MiniDumpWriteDump,
windows::win32::direct3... | 6 | 79 | 1 |
f61e88068dad11e469b9775ae403fef05a5addf7 | Kenny Kerr | 2021-02-02T08:22:58 | must_use (#493) | diff --git a/src/interfaces/error_info.rs b/src/interfaces/error_info.rs
index bd5ee5a2d..e70af37a2 100644
--- a/src/interfaces/error_info.rs
+++ b/src/interfaces/error_info.rs
@@ -26,11 +26,7 @@ impl IErrorInfo {
pub fn from_thread() -> Result<Self> {
let mut result = None;
- unsafe {
- ... | 5 | 6 | 9 |
15054038ef4998c2278e0356a07751abd4b2bfd1 | Kenny Kerr | 2021-02-02T08:14:37 | nightly (#497) | diff --git a/src/runtime/factory_cache.rs b/src/runtime/factory_cache.rs
index 9470fd811..6e908bd40 100644
--- a/src/runtime/factory_cache.rs
+++ b/src/runtime/factory_cache.rs
@@ -40,12 +40,13 @@ impl<C: RuntimeName, I: Interface> FactoryCache<C, I> {
if factory.cast::<IAgileObject>().is_ok() {
... | 1 | 3 | 2 |
971b558f46266a900f0997e1e8b23ff4e24a294e | Kenny Kerr | 2021-02-01T20:55:01 | Fix a few issues with BOOL (#492) | diff --git a/crates/winmd/src/file.rs b/crates/winmd/src/file.rs
index 60e2e6aa8..e9b3238a8 100644
--- a/crates/winmd/src/file.rs
+++ b/crates/winmd/src/file.rs
@@ -17,8 +17,6 @@ pub struct File {
pub(crate) strings: u32,
/// The index of the blobs data
pub(crate) blobs: u32,
- /// The index of the gu... | 2 | 135 | 23 |
2a5dc48b04c97a0728b6a474f73f2e39a3019f9f | Ryan Levick | 2021-02-01T16:57:32 | Improve BOOL (#483)
* Improve BOOL
* Fix tests | diff --git a/crates/tests/tests/win32.rs b/crates/tests/tests/win32.rs
index 5d04a3278..c8c5976fa 100644
--- a/crates/tests/tests/win32.rs
+++ b/crates/tests/tests/win32.rs
@@ -141,8 +141,7 @@ fn function() -> windows::Result<()> {
#[test]
fn bool_as_error() {
unsafe {
- assert!(!SetEvent(HANDLE(0)).is_ok... | 3 | 65 | 25 |
721dbd4f717be5d53a06a98f36bc730202e22597 | Kenny Kerr | 2021-01-30T16:04:11 | Update cargo.toml license (#477) | diff --git a/Cargo.toml b/Cargo.toml
index a0730c422..9cc350e8b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ name = "windows"
version = "0.2.1"
authors = ["Microsoft"]
edition = "2018"
-license = "MIT"
+license = "MIT OR Apache-2.0"
description = "Windows Runtime language projection"
repository = "http... | 6 | 6 | 6 |
ab88d10a98ae372450bda9d9270e480a2b4f1397 | Kenny Kerr | 2021-01-29T18:32:12 | Add support for error conversion (#473) | diff --git a/crates/tests/tests/error.rs b/crates/tests/tests/error.rs
index 8ff1392d6..7248112dc 100644
--- a/crates/tests/tests/error.rs
+++ b/crates/tests/tests/error.rs
@@ -29,3 +29,26 @@ fn bad_uri() {
assert_eq!(error.code(), windows::ErrorCode(0x80070057));
assert_eq!(error.message(), "INVALID is not a... | 2 | 31 | 0 |
50d9aa45cbbbb8643013c27e876ed747dd48f86a | Kenny Kerr | 2021-01-28T20:08:35 | More comprehensive workaround for linker issue (#467) | diff --git a/crates/gen/src/function.rs b/crates/gen/src/function.rs
index 635196bba..e8b9ec018 100644
--- a/crates/gen/src/function.rs
+++ b/crates/gen/src/function.rs
@@ -31,12 +31,10 @@ impl Function {
TokenStream::new()
};
- // TODO: need to generate libs until Rust supports dynamic l... | 3 | 50 | 6 |
e28897df2805407587aef7b1c6f2831c6ce11236 | Kenny Kerr | 2021-01-28T18:31:25 | Fix regression with empty structs (#466) | diff --git a/crates/gen/src/struct.rs b/crates/gen/src/struct.rs
index cabbcaf26..8ca3cbba1 100644
--- a/crates/gen/src/struct.rs
+++ b/crates/gen/src/struct.rs
@@ -57,7 +57,7 @@ impl Struct {
let guid = TypeGuid::from_type_def(&name.def);
// The C/C++ ABI assumes an empty struct occupies a single b... | 3 | 15 | 1 |
ecc77d306bdb7ee27b86f3ff85e64ea3172fd2ae | Ryan Levick | 2021-01-28T17:42:43 | Remove unused or barely used dependencies (#461)
Co-authored-by: Kenny Kerr <kekerr@microsoft.com> | diff --git a/crates/gen/Cargo.toml b/crates/gen/Cargo.toml
index f4715cc6a..068e2a0bb 100644
--- a/crates/gen/Cargo.toml
+++ b/crates/gen/Cargo.toml
@@ -13,5 +13,3 @@ quote = "1.0"
syn = "1.0"
proc-macro2 = "1.0"
squote = "0.1.2"
-sha1 = "0.6.0"
-rayon = "1.3"
diff --git a/crates/gen/src/type_namespaces.rs b/crates/... | 7 | 19 | 21 |
47d1df1eb688a9278a085b2dbb974fd867b93a3e | Kenny Kerr | 2021-01-28T17:27:24 | Workaround for linker issue (#465) | diff --git a/crates/gen/src/function.rs b/crates/gen/src/function.rs
index 3ab5cd915..635196bba 100644
--- a/crates/gen/src/function.rs
+++ b/crates/gen/src/function.rs
@@ -36,7 +36,7 @@ impl Function {
let mut link = self.signature.method.impl_map().unwrap().scope().name();
if link == "ext-ms-win-cor... | 1 | 1 | 1 |
2a8e603495dc9e1f68955a54226c2502acf8f147 | Kenny Kerr | 2021-01-27T22:50:22 | Direct2D support (#455) | diff --git a/crates/gen/src/com_interface.rs b/crates/gen/src/com_interface.rs
index f7d01c37a..63a41e894 100644
--- a/crates/gen/src/com_interface.rs
+++ b/crates/gen/src/com_interface.rs
@@ -34,13 +34,17 @@ impl ComInterface {
let mut next = name.def;
loop {
- let base = next.interfaces... | 5 | 72 | 10 |
7fcbad5d5c126508434a53e388b419f9367d65ae | Ajeet D'Souza | 2021-01-27T16:00:26 | Improve macro hygiene (#450) | diff --git a/src/macros.rs b/src/macros.rs
index 9bb43c1f9..36e650649 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -2,7 +2,7 @@
#[macro_export]
macro_rules! include_bindings {
() => {
- include!(concat!(env!("OUT_DIR"), "/windows.rs"));
+ ::std::include!(::std::concat!(::std::env!("OUT_DIR"), ... | 1 | 9 | 10 |
c3a21d19551519c5757a898975c37fb8c0e00f63 | Kenny Kerr | 2021-01-26T23:13:34 | Make factory helper public (#452) | diff --git a/src/lib.rs b/src/lib.rs
index 20b819732..76918aa4d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -22,7 +22,7 @@ use runtime::*;
pub use interfaces::{IActivationFactory, IAgileObject, IUnknown, Object};
pub use result::{Error, ErrorCode, Result, BOOL};
-pub use runtime::{Array, FactoryCache, Guid, Param, ... | 1 | 1 | 1 |
0a09691dcdbbff6a8d7460e75319e90769183285 | Kenny Kerr | 2021-01-26T16:38:05 | Additional COM support (#448) | diff --git a/crates/gen/src/com_class.rs b/crates/gen/src/com_class.rs
deleted file mode 100644
index a1b50ad39..000000000
--- a/crates/gen/src/com_class.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-use crate::*;
-use squote::{quote, TokenStream};
-
-#[derive(Debug)]
-pub struct ComClass {
- pub name: TypeName,
-}
-
-impl Com... | 12 | 365 | 109 |
b4ef9545fbe5ab0fb5ea5f48d4e10ee1efd8f4ec | Ryan Levick | 2021-01-26T11:10:28 | Ensure utf16 string is created from aligned data (#445) | diff --git a/crates/winmd/src/parsed/blob.rs b/crates/winmd/src/parsed/blob.rs
index e9c1e975d..f8bf282e5 100644
--- a/crates/winmd/src/parsed/blob.rs
+++ b/crates/winmd/src/parsed/blob.rs
@@ -78,13 +78,22 @@ impl Blob {
}
pub fn read_utf16(&self) -> String {
- let bytes = self.reader.files[self.file... | 1 | 16 | 7 |
a7b9e256f1688e40e751e209fff1d57ea23aa17c | Kenny Kerr | 2021-01-20T03:33:39 | Additional type system support (#415) | diff --git a/crates/gen/src/struct.rs b/crates/gen/src/struct.rs
index a661b4fbc..563ad1d80 100644
--- a/crates/gen/src/struct.rs
+++ b/crates/gen/src/struct.rs
@@ -292,7 +292,7 @@ impl Struct {
fn gen_additions(&self) -> TokenStream {
match (self.name.namespace, self.name.name) {
("Windows.W... | 3 | 40 | 9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.