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
2a2e1cd2d1799d69aafc8e51cce91c537c2d5c09
Kenny Kerr
2021-01-20T02:38:53
Additional type system support (#414)
diff --git a/crates/gen/src/com_interface.rs b/crates/gen/src/com_interface.rs index 3b96225f9..96b0a6745 100644 --- a/crates/gen/src/com_interface.rs +++ b/crates/gen/src/com_interface.rs @@ -1,18 +1,45 @@ use crate::*; -use squote::{quote, Literal, TokenStream}; +use squote::{format_ident, quote, Ident, Literal, Tok...
2
40
13
f569a8c0b04fd17dbee1084d667a3f56df9fa5c2
Kenny Kerr
2021-01-20T00:07:31
Add Default trait impl for ErrorCode (#413)
diff --git a/src/result/error_code.rs b/src/result/error_code.rs index 6d16becc0..555ca93f3 100644 --- a/src/result/error_code.rs +++ b/src/result/error_code.rs @@ -118,6 +118,12 @@ impl<T> std::convert::From<Result<T>> for ErrorCode { } } +impl Default for ErrorCode { + fn default() -> Self { + Self:...
1
6
0
fb704b4aacabeba06c98ee145d7d5f90da1549d8
Kenny Kerr
2021-01-15T22:00:16
Doc build (#408)
diff --git a/Cargo.toml b/Cargo.toml index d99a2885d..56ec60c37 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows" -version = "0.1.3" +version = "0.1.4" authors = ["Microsoft"] edition = "2018" license = "MIT" @@ -10,13 +10,13 @@ documentation = "https://docs.rs/windows" readme = ...
8
18
18
df93f7f5623a490e7bcbdfaf624a0683c3164496
Kenny Kerr
2021-01-15T19:35:28
Fix cargo publishing issue (#405)
diff --git a/Cargo.toml b/Cargo.toml index 5322c0ba2..533bacbd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows" -version = "0.1.0" +version = "0.1.1" authors = ["Microsoft"] edition = "2018" license = "MIT" @@ -10,13 +10,13 @@ documentation = "https://docs.rs/windows" readme = ...
9
20
20
5dad2d873f0320ef2838c07178a1619e644df3b1
Kenny Kerr
2021-01-15T15:39:40
Remove ABI definitions from docs (#403)
diff --git a/crates/gen/src/delegate.rs b/crates/gen/src/delegate.rs index f29eb2643..592d835b6 100644 --- a/crates/gen/src/delegate.rs +++ b/crates/gen/src/delegate.rs @@ -76,6 +76,7 @@ impl Delegate { const SIGNATURE: ::winrt::ConstBuffer = { #signature }; } #[repr(C)] + ...
3
3
0
2d0ccc4e11f25b1ce89ef24851c1aafb943aa6b1
Kenny Kerr
2021-01-15T05:59:40
Allow access to an enum's underlying value (#402)
diff --git a/crates/gen/src/enum.rs b/crates/gen/src/enum.rs index e922efebb..ce7b0c591 100644 --- a/crates/gen/src/enum.rs +++ b/crates/gen/src/enum.rs @@ -126,7 +126,7 @@ impl Enum { quote! { #[allow(non_camel_case_types)] #[repr(transparent)] - pub struct #name(#underlyi...
2
18
1
737322b8f2247489d557c67d5ae6036a79fd83d8
Kenny Kerr
2021-01-15T05:34:59
Additional type system support (#401)
diff --git a/crates/gen/src/constant.rs b/crates/gen/src/constant.rs index 2dbce399a..6e437fc2f 100644 --- a/crates/gen/src/constant.rs +++ b/crates/gen/src/constant.rs @@ -42,6 +42,8 @@ impl Constant { winmd::ElementType::U16 => ConstantValue::U16(value.read_u16()), winmd::ElementType::I32 =>...
3
12
13
fa394b3cd3210b39d91fbaec4d0ccc08c2c029f2
Kenny Kerr
2021-01-12T19:06:44
Improved BSTR support (#398)
diff --git a/crates/tests/tests/win32.rs b/crates/tests/tests/win32.rs index ce0f122fd..2114b366c 100644 --- a/crates/tests/tests/win32.rs +++ b/crates/tests/tests/win32.rs @@ -127,8 +127,10 @@ fn interface() -> winrt::Result<()> { let s = winrt::HString::from("https://kennykerr.ca"); let mut uri = No...
5
255
48
47dddb4390644694770713f2f0934d665cc9f8f3
Kenny Kerr
2021-01-11T20:27:03
Additional type system support (#397)
diff --git a/crates/gen/src/com_interface.rs b/crates/gen/src/com_interface.rs index 11f386d40..87d5516b5 100644 --- a/crates/gen/src/com_interface.rs +++ b/crates/gen/src/com_interface.rs @@ -1,18 +1,78 @@ use crate::*; -use squote::{quote, TokenStream}; +use squote::{quote, Literal, TokenStream}; #[derive(Debug)]...
9
190
53
192b9a9d8898a3e1e51fec1caa6e83eeff277bc7
Kenny Kerr
2021-01-08T19:58:54
Additional type system support (#393)
diff --git a/crates/gen/src/constant.rs b/crates/gen/src/constant.rs index cc14e861f..2dbce399a 100644 --- a/crates/gen/src/constant.rs +++ b/crates/gen/src/constant.rs @@ -16,9 +16,22 @@ impl Constant { } pub fn gen(&self) -> TokenStream { - let name = format_ident(self.field.name()); + let n...
8
50
65
10693bfa15975cb01851c5430789d6186949651a
Kenny Kerr
2021-01-07T23:53:04
Additional type system support (#392)
diff --git a/crates/gen/src/enum.rs b/crates/gen/src/enum.rs index ec7c0e8ac..e922efebb 100644 --- a/crates/gen/src/enum.rs +++ b/crates/gen/src/enum.rs @@ -15,6 +15,15 @@ pub enum EnumConstant { I32(i32), } +impl EnumConstant { + fn next(&self) -> Self { + match self { + Self::U32(value) =...
2
45
18
7e34c99ddd4c72d136bbfbb51e583ff8a3907f4e
Kenny Kerr
2021-01-07T00:29:52
Additional type system support (#390)
diff --git a/crates/gen/src/struct.rs b/crates/gen/src/struct.rs index 4c1d3c456..f32870fb5 100644 --- a/crates/gen/src/struct.rs +++ b/crates/gen/src/struct.rs @@ -32,6 +32,17 @@ impl Struct { fields.push((field_name, t)); } + // The C/C++ ABI assumes an empty struct occupies a single by...
3
13
19
4a2915140799f250c96f85bd9aa91e41482a3fe4
Kenny Kerr
2021-01-06T22:20:05
Additional type system support (#389)
diff --git a/crates/gen/src/function.rs b/crates/gen/src/function.rs index a355d5de1..c1e8293cd 100644 --- a/crates/gen/src/function.rs +++ b/crates/gen/src/function.rs @@ -5,28 +5,78 @@ use squote::{quote, TokenStream}; pub struct Function { pub name: TypeName, pub method: winmd::MethodDef, + pub params:...
4
76
8
5ca7704583cf7eb656435736ac45e3f91cca3bea
Kenny Kerr
2021-01-05T22:51:09
Additional type system support (#388)
diff --git a/crates/gen/src/constant.rs b/crates/gen/src/constant.rs index f85082668..c8e6f8982 100644 --- a/crates/gen/src/constant.rs +++ b/crates/gen/src/constant.rs @@ -18,8 +18,64 @@ impl Constant { pub fn gen(&self) -> TokenStream { let name = format_ident(self.field.name()); + let constant...
7
105
14
f20490d6334c4d4ba9e22e5d1138b3db10b6a771
Kenny Kerr
2021-01-05T00:32:12
Additional type system support (#387)
diff --git a/crates/gen/src/delegate32.rs b/crates/gen/src/callback.rs similarity index 96% rename from crates/gen/src/delegate32.rs rename to crates/gen/src/callback.rs index 8551cd6ed..04a07afae 100644 --- a/crates/gen/src/delegate32.rs +++ b/crates/gen/src/callback.rs @@ -2,12 +2,12 @@ use crate::*; use squote::{qu...
27
414
193
2d27d5894490ef1c9b8a8de5bc84718459ed0ccd
Gyusun Yeom
2021-01-04T20:49:53
Use escaped method name & full abi signature for implement (#385)
diff --git a/crates/gen/src/method.rs b/crates/gen/src/method.rs index 8a771472a..edb823ec2 100644 --- a/crates/gen/src/method.rs +++ b/crates/gen/src/method.rs @@ -136,6 +136,18 @@ impl Method { } } + pub fn gen_full_abi(&self) -> TokenStream { + let params = self + .params + ...
6
127
11
bacab1e162987fe5974f74425419d11f0c686ccf
Kenny Kerr
2020-12-11T02:11:43
Additional type system support (#383)
diff --git a/crates/gen/src/class.rs b/crates/gen/src/class.rs index 783a25277..d02910682 100644 --- a/crates/gen/src/class.rs +++ b/crates/gen/src/class.rs @@ -190,7 +190,7 @@ impl Class { const IID: ::winrt::Guid = <#default_name as ::winrt::Interface>::IID; } un...
29
520
214
1685121099a857a0ec87c17804ce398250a54b38
Michael Ilyin
2020-12-09T15:13:30
Rerun if changed (#382)
diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs index 90c59dea4..725633aa3 100644 --- a/crates/macros/src/lib.rs +++ b/crates/macros/src/lib.rs @@ -41,8 +41,12 @@ pub fn build(stream: TokenStream) -> TokenStream { Err(t) => return t.into(), }; - let mut source = winmd::workspace_wind...
1
12
7
bcd0f5f718e69956781bf27455c6cadad9a12f1f
Kenny Kerr
2020-12-08T17:34:19
Addressing some PR feedback (#380)
diff --git a/Cargo.toml b/Cargo.toml index 4ecd164f7..d4238a319 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ readme = "README.md" winrt-macros = { path = "crates/macros", version = "0.8.0" } winrt-gen = { path = "crates/gen", version = "0.8.0" } const-sha1 = "0.2" -winrt-winmd = { path = "crates/winm...
12
29
29
8dff55c01b5d049d92b7c4408a4fb0359eeb9fb8
Kenny Kerr
2020-12-03T15:53:31
Ensure completed handler doesn't capture waiter (#374)
diff --git a/crates/gen/src/futures.rs b/crates/gen/src/futures.rs index 5c3efe17c..94a6e262a 100644 --- a/crates/gen/src/futures.rs +++ b/crates/gen/src/futures.rs @@ -66,9 +66,10 @@ fn gen_async_kind( quote! { pub fn get(&self) -> ::winrt::Result<#return_type> { if self.status()...
2
17
14
38b7bea9a17930e55145a2b577b956e8193521ad
Kenny Kerr
2020-11-24T18:31:35
Use full paths when implementing interfaces (#363)
diff --git a/crates/gen/src/delegate.rs b/crates/gen/src/delegate.rs index d7df92b60..0c1a7ada3 100644 --- a/crates/gen/src/delegate.rs +++ b/crates/gen/src/delegate.rs @@ -46,7 +46,7 @@ impl Delegate { self.name.gen_signature(&format!("{{{:#?}}}", &self.guid)) }; - let invoke_upcall = se...
7
128
6
95894ec34c5747f4aa890f96155097ab279d8161
Kenny Kerr
2020-11-24T14:17:27
Improved method collision management (#362)
diff --git a/crates/gen/src/class.rs b/crates/gen/src/class.rs index 49c5bbabe..aa9d93a33 100644 --- a/crates/gen/src/class.rs +++ b/crates/gen/src/class.rs @@ -96,6 +96,8 @@ impl Class { } } + rename_collisions(&mut interfaces); + Self { name, interface...
22
346
312
1da36f73246f02fadba6c243b0dbc7f3ffa596b0
Kenny Kerr
2020-10-29T14:25:53
Simpler method signature handling (#350)
diff --git a/crates/gen/macros/src/lib.rs b/crates/gen/macros/src/lib.rs index cbe6790ca..690e7128d 100644 --- a/crates/gen/macros/src/lib.rs +++ b/crates/gen/macros/src/lib.rs @@ -1,9 +1,7 @@ extern crate proc_macro; use proc_macro::TokenStream; -use proc_macro2::TokenStream as TokenStream2; use quote::{format_id...
10
49
102
546249955941288a5aea874673ab59afe9f325fd
Daniel Frampton
2020-10-28T11:07:04
Copy dll files instead of using symlinks (#349) Co-authored-by: Kenny Kerr <kekerr@microsoft.com> Co-authored-by: Ryan Levick <rylev@users.noreply.github.com>
diff --git a/crates/cargo/src/main.rs b/crates/cargo/src/main.rs index 45d31ac0f..a30609ed0 100644 --- a/crates/cargo/src/main.rs +++ b/crates/cargo/src/main.rs @@ -759,7 +759,7 @@ impl Dll { if !proper_arch { print_verbose_status!( "", - " not creating symlink fo...
1
6
6
2417aae3de6813264dffba4f3950c2cc25e735b2
Nathaniel Daniel
2020-10-28T10:56:25
Add TryFrom<HString> for String (#344) * Remove From<HString> and add TryFrom<HString> for String * Add from_wide constructor for HString * Add test for a failing HString to String conversion * Add to_string_lossy method to HString * Apply requested changes * Make from_wide_iter safe * Make from_wid...
diff --git a/src/hstring.rs b/src/hstring.rs index 3efdd3ab7..4d895ccd3 100644 --- a/src/hstring.rs +++ b/src/hstring.rs @@ -1,4 +1,6 @@ use crate::*; +use std::convert::TryFrom; +use std::result::Result as StdResult; /// A WinRT string, sometimes called an [HSTRING](https://docs.microsoft.com/en-us/windows/win32/w...
1
65
25
5e37a483330fd9a4be4c0f594d6a66fcfa2fd9d3
Kenny Kerr
2020-10-23T19:35:21
winmd5 (#345)
diff --git a/Cargo.toml b/Cargo.toml index 75245ac3f..0f167f793 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ readme = "README.md" [dependencies] winrt-macros = { path = "crates/macros", version = "0.7.2" } const-sha1 = "0.2" -winmd = "0.4" +winmd = "0.5" [build-dependencies] winrt-macros = { path ...
5
9
9
010fe5fc24c53320b2d9537cbee6492e543ee9a1
Kenny Kerr
2020-10-19T21:52:09
winmd 0.4 (#343)
diff --git a/Cargo.toml b/Cargo.toml index aae483f55..75245ac3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ readme = "README.md" [dependencies] winrt-macros = { path = "crates/macros", version = "0.7.2" } const-sha1 = "0.2" -winmd = "0.3" +winmd = "0.4" [build-dependencies] winrt-macros = { path ...
5
7
7
fdcb49bb76cf4aba2bdd025e4b99bb2093d76114
Kenny Kerr
2020-10-17T07:12:25
Update to winmd 0.3 (#341)
diff --git a/Cargo.toml b/Cargo.toml index 3e93f328e..aae483f55 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ readme = "README.md" [dependencies] winrt-macros = { path = "crates/macros", version = "0.7.2" } const-sha1 = "0.2" -winmd = "0.2" +winmd = "0.3" [build-dependencies] winrt-macros = { path ...
5
29
5
375fca433bb77e097681e63a22562d0f8d3dec1e
Kenny Kerr
2020-10-16T19:55:34
Ignore multiple delegate assignment in async future polling (#340)
diff --git a/crates/gen/src/futures.rs b/crates/gen/src/futures.rs index a873a58a3..07cf71b77 100644 --- a/crates/gen/src/futures.rs +++ b/crates/gen/src/futures.rs @@ -87,10 +87,10 @@ fn gen_async_kind( if self.status()? == ::winrt::foundation::AsyncStatus::Started { let w...
1
2
2
d2a60410a9f10cea437b1f9b51da42eef3c54684
Kenny Kerr
2020-10-10T14:52:20
Remove unused method field (#336)
diff --git a/crates/gen/src/gen/interface.rs b/crates/gen/src/gen/interface.rs index ca84b350b..e374251b4 100644 --- a/crates/gen/src/gen/interface.rs +++ b/crates/gen/src/gen/interface.rs @@ -177,7 +177,6 @@ mod tests { assert!(t.methods.len() == 1); let method = &t.methods[0]; assert!(metho...
2
7
13
5582e7d0f5324455f931b5cebfc2332d375b0db6
Kenny Kerr
2020-10-10T06:17:58
Remove all codegen time guid generation (#335)
diff --git a/crates/gen/src/gen/delegate.rs b/crates/gen/src/gen/delegate.rs index 53f2c5a28..cebfde1c4 100644 --- a/crates/gen/src/gen/delegate.rs +++ b/crates/gen/src/gen/delegate.rs @@ -4,9 +4,8 @@ use squote::{quote, TokenStream}; #[derive(Debug)] pub struct Delegate { pub name: gen::TypeName, - pub metho...
5
24
124
c9a67b298c09c6828e5c1a4d684011e381d5599c
Kenny Kerr
2020-09-22T20:45:17
Build macro refactoring (#329)
diff --git a/crates/gen/src/lib.rs b/crates/gen/src/lib.rs index 1817f36f6..93ed5403b 100644 --- a/crates/gen/src/lib.rs +++ b/crates/gen/src/lib.rs @@ -21,6 +21,7 @@ pub use type_limits::{NamespaceTypes, TypeLimit, TypeLimits}; pub use type_reader::TypeReader; pub use type_stage::TypeStage; pub use type_tree::TypeT...
5
295
268
e5811bcbb81ec9083143a76b22c0946dfc83a965
Kenny Kerr
2020-09-21T21:35:40
Remove unstable Xaml test (#328)
diff --git a/crates/cargo-winrt/Cargo.toml b/crates/cargo-winrt/Cargo.toml index 70fcf92a2..7649788f1 100644 --- a/crates/cargo-winrt/Cargo.toml +++ b/crates/cargo-winrt/Cargo.toml @@ -11,7 +11,7 @@ readme = "README.md" pico-args = "0.3" thiserror = "1.0" anyhow = "1.0" -zip = { version = "0.5", default-features = f...
2
1
30
8b654aeeddc81d7dfaee8f2b76345eb9473cf43e
Zach Lute
2020-08-17T16:19:48
Add 'version' subcommand (#312) * Add 'version' subcommand This makes --version and its ilk work again. * Minor syntax change from review * Remove redundant static lifetime annotation Thanks, clippy! * Update Version initializers Co-authored-by: Kenny Kerr <kekerr@microsoft.com>
diff --git a/crates/cargo-winrt/src/main.rs b/crates/cargo-winrt/src/main.rs index a8adcc734..6921142c4 100644 --- a/crates/cargo-winrt/src/main.rs +++ b/crates/cargo-winrt/src/main.rs @@ -13,6 +13,8 @@ use std::io::Read; use std::path::{Path, PathBuf}; use std::time::{Duration, Instant}; +const VERSION: &str = env...
1
34
2
7b986b002651123d24702ce1141a1b145a846ed1
Zach Lute
2020-08-12T16:05:16
Suggest `cargo winrt install` when missing dependencies (#310) If you just do `cargo build` on a WinRT project, you'll get error messages about missing nuget or dependency folders but no indication why. Also fixes a minor slash-escaping issue in an error message.
diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs index a9e527e6f..5f03df799 100644 --- a/crates/macros/src/lib.rs +++ b/crates/macros/src/lib.rs @@ -310,7 +310,7 @@ impl Parse for Dependencies { std::fs::read_dir(dependencies::nuget_root()).map_err(|e| { ...
1
2
2
05ef063119ea4b717264d5d65ec45269adaba1bc
Ryan Levick
2020-08-06T16:42:06
Document why code is safe in Array (#307)
diff --git a/src/array.rs b/src/array.rs index 5d4204b9f..64ad081ad 100644 --- a/src/array.rs +++ b/src/array.rs @@ -24,15 +24,24 @@ impl<T: RuntimeType> Array<T> { /// Creates an array of the given length with default values. pub fn with_len(len: usize) -> Self { assert!(len < std::u32::MAX as usize...
1
32
2
ba89ba612789bfc455a660891af96e99ab5101cc
Ryan Levick
2020-08-03T15:48:36
Force the user to use squote 0.1.2 (#301)
diff --git a/crates/gen/Cargo.toml b/crates/gen/Cargo.toml index 33f79f1d0..5f53d0089 100644 --- a/crates/gen/Cargo.toml +++ b/crates/gen/Cargo.toml @@ -11,7 +11,7 @@ winrt_gen_macros = { path = "macros", version = "0.7.2" } quote = "1.0" syn = "1.0" proc-macro2 = "1.0" -squote = "0.1" +squote = "0.1.2" sha1 = "0....
2
2
2
091df31b5bbbb4899d7c656294b0013c860ce5ec
Ryan Levick
2020-07-31T14:40:46
Use squote for code generation (#288) * Use squote for code generation * Upgrade to squote on crates * Don't go to a token stream if we just want a string * Small improvement * Git rid of dead code
diff --git a/crates/gen/Cargo.toml b/crates/gen/Cargo.toml index 85ae537ae..33f79f1d0 100644 --- a/crates/gen/Cargo.toml +++ b/crates/gen/Cargo.toml @@ -11,5 +11,7 @@ winrt_gen_macros = { path = "macros", version = "0.7.2" } quote = "1.0" syn = "1.0" proc-macro2 = "1.0" +squote = "0.1" sha1 = "0.6.0" -serde_json =...
23
69
64
72b5889d15284bc7408999d09230a99df086f374
Zach Lute
2020-07-31T08:24:35
Fix a bunch of simple clippy issues (#294) * Fix a bunch of simple clippy issues Mostly just uncontroversial ones like `needless_return` and `new_without_default`. There were also a bunch of `ptr_arg` warnings where it's more efficient to pass a slice reference instead of a Vec reference and those seemed straigh...
diff --git a/crates/gen/src/types/debug.rs b/crates/gen/src/types/debug.rs index 37cedab98..176a0ec41 100644 --- a/crates/gen/src/types/debug.rs +++ b/crates/gen/src/types/debug.rs @@ -3,7 +3,7 @@ use crate::types::TypeName; use proc_macro2::TokenStream; use quote::quote; -pub fn debug_tokens(type_name: &TypeName, ...
10
23
29
191d82be07de5bc2dfe18623338c53a9bb29010d
Kenny Kerr
2020-07-30T16:32:53
derive (#293) Co-authored-by: Kenny Kerr <kenny.kerr@microsoft.com>
diff --git a/crates/gen/src/types/class.rs b/crates/gen/src/types/class.rs index 608b701f5..f4439e98a 100644 --- a/crates/gen/src/types/class.rs +++ b/crates/gen/src/types/class.rs @@ -169,7 +169,7 @@ impl Class { quote! { #[repr(transparent)] - #[derive(Default, Clone, Pa...
6
6
46
7dcf021696f7c47b591282d75a75c5aa3965f80e
uhuntu
2020-07-30T14:46:37
Re-implement try_download to prevent twice download. (#262) Co-authored-by: Hunt Lin <Hunt.Lin@TES-TEC.COM>
diff --git a/crates/cargo-winrt/src/main.rs b/crates/cargo-winrt/src/main.rs index addccb9c5..a8adcc734 100644 --- a/crates/cargo-winrt/src/main.rs +++ b/crates/cargo-winrt/src/main.rs @@ -5,7 +5,7 @@ mod manifest; use error::Error; use manifest::Manifest; -use anyhow::{bail, Context}; +use anyhow::Context; use cu...
1
28
57
6ab99ef9df3840caadc1f0ed9c82ea78b208a8e6
Kenny Kerr
2020-07-24T20:52:03
Simplifies required interfaces calculation (#284)
diff --git a/crates/gen/src/tables/interface_impl.rs b/crates/gen/src/tables/interface_impl.rs index c627dcc95..abed9ff45 100644 --- a/crates/gen/src/tables/interface_impl.rs +++ b/crates/gen/src/tables/interface_impl.rs @@ -27,4 +27,8 @@ impl InterfaceImpl { self.attributes(reader) .any(|attribut...
8
181
159
9b961d25535c6d0c7e72671e25e8aee80992b61e
Kenny Kerr
2020-07-24T20:51:21
Improve casing when method names include underscores (#286)
diff --git a/crates/gen/src/case.rs b/crates/gen/src/case.rs index 85b56f5e0..36a40f26c 100644 --- a/crates/gen/src/case.rs +++ b/crates/gen/src/case.rs @@ -42,7 +42,10 @@ pub(crate) fn to_snake(camel: &str, kind: MethodKind) -> String { if previous.is_lowercase() || next.is_lowercase() && since_last_undersc...
1
17
1
87c7275e17b104cbe27297f3106a50c451c6a1c8
Ryan Levick
2020-07-23T02:36:52
Support versions in nuget packages and overwrite on force (#278) * Support versions in nuget packages and overwrite on force * Fix named arguments test
diff --git a/crates/cargo-winrt/src/main.rs b/crates/cargo-winrt/src/main.rs index b82e2975b..addccb9c5 100644 --- a/crates/cargo-winrt/src/main.rs +++ b/crates/cargo-winrt/src/main.rs @@ -299,7 +299,7 @@ impl Install { let deps = self.get_dependencies(dependency_descriptors)?; for dep in deps { - ...
3
87
24
36ba51037e694132dff4ed52d666a51a77cc083e
Ryan Levick
2020-07-21T15:14:57
Don't produce FactoryCache if the interface contains no methods (#277)
diff --git a/crates/gen/src/types/class.rs b/crates/gen/src/types/class.rs index d05ae5c06..dad23e8bb 100644 --- a/crates/gen/src/types/class.rs +++ b/crates/gen/src/types/class.rs @@ -248,8 +248,9 @@ impl Class { } for interface in &self.interfaces { - if interface.kind != InterfaceKind:...
1
3
2
6e4d21c18942d402cb201df6e45dcab919f26cf1
Kenny Kerr
2020-07-21T14:46:55
Add exhaustive required interface testing (#275)
diff --git a/Cargo.toml b/Cargo.toml index 876ee184e..66aae1779 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,4 +30,4 @@ targets = ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc"] [package.metadata.winrt.dependencies] "Microsoft.Windows.SDK.Contracts" = "10.0.19041.1" -"KennyKerr.Windows.TestWinRT" = "1.0.17" +...
3
66
3
c591945cec28f95d3df24817cb9f0825a1f131ed
Ryan Levick
2020-07-21T08:37:58
Escape keywords (#271)
diff --git a/crates/gen/src/lib.rs b/crates/gen/src/lib.rs index 3cacc6847..17a057e14 100644 --- a/crates/gen/src/lib.rs +++ b/crates/gen/src/lib.rs @@ -25,9 +25,16 @@ fn format_ident(name: &str) -> proc_macro2::Ident { if name == "Self" { quote::format_ident!("{}_", name) } else { - match syn...
2
23
3
985216fb5ee95be41506f26d52b3a886289bb2ff
Kenny Kerr
2020-07-20T21:29:36
remove Microsoft.AI.MachineLearning (#273)
diff --git a/Cargo.toml b/Cargo.toml index 8a5f77e92..876ee184e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,4 +31,3 @@ targets = ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc"] [package.metadata.winrt.dependencies] "Microsoft.Windows.SDK.Contracts" = "10.0.19041.1" "KennyKerr.Windows.TestWinRT" = "1.0.17" -"M...
6
0
15
d5f230db7b29391f3a67467d4799e4646c6648a4
Ryan Levick
2020-07-20T17:56:38
Small improvements to cargo winrt (#270)
diff --git a/crates/cargo-winrt/src/main.rs b/crates/cargo-winrt/src/main.rs index ebff12e18..b82e2975b 100644 --- a/crates/cargo-winrt/src/main.rs +++ b/crates/cargo-winrt/src/main.rs @@ -56,10 +56,6 @@ fn run() -> Result<(), i32> { fn parse_args() -> Result<Subcommand, ArgsError> { let mut args = pico_args::A...
1
13
25
b7d8d43923420145a3669279df819dd14b18bac4
Ryan Levick
2020-07-20T15:01:25
Add a const constructor for FactoryCache (#267) * Add a const constructor for FactoryCache * always nul Co-authored-by: Kenny Kerr <kenny.kerr@microsoft.com> Co-authored-by: Kenny Kerr <kekerr@microsoft.com>
diff --git a/crates/gen/src/types/class.rs b/crates/gen/src/types/class.rs index 012045305..d05ae5c06 100644 --- a/crates/gen/src/types/class.rs +++ b/crates/gen/src/types/class.rs @@ -275,11 +275,7 @@ impl Class { callback: F, ) -> ::winrt::Result<R> { static mut SHARED: ...
2
42
38
a340fbd1e567400f5d2d8360661fbd75465c26cc
Zach Lute
2020-07-20T10:04:10
Improve help output of cargo-winrt (#258) * Improve help output of cargo-winrt Updates help messaging to use cargo-standard syntax and output, including separate help documentation for each subcommand. Added documentation for the previously undocumented -f and -v options. * Update "Finished" status to say wha...
diff --git a/crates/cargo-winrt/src/main.rs b/crates/cargo-winrt/src/main.rs index e5258c60e..ebff12e18 100644 --- a/crates/cargo-winrt/src/main.rs +++ b/crates/cargo-winrt/src/main.rs @@ -45,7 +45,7 @@ fn run() -> Result<(), i32> { Subcommand::Install(i) => i.perform(), Subcommand::Run(r) => r.perfor...
1
125
17
2a0f3e7c6dd4b480ef1b872ce33c6f4237b057e2
Kenny Kerr
2020-07-19T15:00:39
Implement factory caching (#263)
diff --git a/crates/gen/src/types/class.rs b/crates/gen/src/types/class.rs index 9efc8e07d..012045305 100644 --- a/crates/gen/src/types/class.rs +++ b/crates/gen/src/types/class.rs @@ -1,4 +1,5 @@ use super::object::to_object_tokens; +use crate::format_ident; use crate::tables::*; use crate::types::*; use crate::Ty...
7
124
24
707840bfc6b21ce95be93c51ce4e5d3b981c5afb
Robert Mikhayelyan
2020-07-16T05:56:45
Fix named arguments in attribute parsing (#261)
diff --git a/Cargo.toml b/Cargo.toml index d78e76687..8a5f77e92 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ sha1 = "0.6.0" [dev-dependencies] doc-comment = "0.3" futures = "0.3" +winrt_gen = { path = "crates/gen" } [workspace] members = [ @@ -29,5 +30,5 @@ targets = ["x86_64-pc-windows-msvc", "i68...
4
86
2
a4835c99e8448caf283cb3aac1cf716a520f192f
Zach Lute
2020-07-13T17:17:51
Update cargo-winrt output to better match cargo's style (#254)
diff --git a/crates/cargo-winrt/src/main.rs b/crates/cargo-winrt/src/main.rs index f98303834..e5258c60e 100644 --- a/crates/cargo-winrt/src/main.rs +++ b/crates/cargo-winrt/src/main.rs @@ -11,6 +11,7 @@ use curl::easy::Easy; use std::ffi::OsString; use std::io::Read; use std::path::{Path, PathBuf}; +use std::time::{...
1
78
39
daed19d4bbc0521c689956882636ac76a0dcacc3
Kenny Kerr
2020-07-10T15:23:00
Support for creating composable types (#255)
diff --git a/Cargo.toml b/Cargo.toml index e004c3c57..d78e76687 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,5 +29,5 @@ targets = ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc"] [package.metadata.winrt.dependencies] "Microsoft.Windows.SDK.Contracts" = "10.0.19041.1" -"KennyKerr.Windows.TestWinRT" = "1.0.14" +...
12
171
93
a3ef99ea9c991e9c3bc100e8af03175b902d4db0
Kenny Kerr
2020-07-08T16:07:02
Add TimeSpan <> std::time::Duration interop (#253)
diff --git a/crates/gen/src/tables/type_def.rs b/crates/gen/src/tables/type_def.rs index 8b35e8122..e6a954856 100644 --- a/crates/gen/src/tables/type_def.rs +++ b/crates/gen/src/tables/type_def.rs @@ -82,6 +82,8 @@ impl TypeDef { true } else if flags.interface() { false + } els...
12
122
15
805296e856cdb3684e5a4b88d673a4f549d9cecc
Kenny Kerr
2020-07-07T16:25:43
Support for async await (#251)
diff --git a/Cargo.toml b/Cargo.toml index 003a0c80a..e004c3c57 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,7 @@ sha1 = "0.6.0" [dev-dependencies] doc-comment = "0.3" +futures = "0.3" [workspace] members = [ @@ -28,5 +29,5 @@ targets = ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc"] [package.met...
8
270
82
8a5d2a9a56327a3ac77ee3594931217da23a5951
Ryan Levick
2020-07-06T16:37:56
Bump versions to 0.7.1 (#250)
diff --git a/Cargo.toml b/Cargo.toml index dcdbf97df..003a0c80a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "winrt" -version = "0.7.0" +version = "0.7.1" authors = ["Microsoft"] edition = "2018" license = "MIT" @@ -10,7 +10,7 @@ documentation = "https://docs.rs/winrt" readme = "READM...
5
8
8
f0cfd5403a7f44692dd093d5305e1d83f9ad4dc4
Kenny Kerr
2020-07-06T15:49:59
Add array/delegate/collection tests (#244)
diff --git a/Cargo.toml b/Cargo.toml index 62f5d5c8a..dcdbf97df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,5 +28,5 @@ targets = ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc"] [package.metadata.winrt.dependencies] "Microsoft.Windows.SDK.Contracts" = "10.0.19041.1" -"KennyKerr.Windows.TestWinRT" = "1.0.10" +...
7
241
27
c0c6430fd4ba316d7219242dfc72df081291b58c
Kenny Kerr
2020-06-25T21:30:27
Adds array tests (#243)
diff --git a/tests/gauntlet.rs b/tests/gauntlet.rs index 8b05a58a4..3a8b541b5 100644 --- a/tests/gauntlet.rs +++ b/tests/gauntlet.rs @@ -19,7 +19,7 @@ fn test_self() -> Result<()> { } #[test] -fn tests() -> Result<()> { +fn params() -> Result<()> { let tests = TestRunner::make_tests()?; { @@ -173,3 +173...
1
307
1
2ae3de39032a315f82b286ff7a081fbd52585f31
Ryan Levick
2020-06-25T18:00:51
Make slice_from{,_mut}_abi unsafe and document why (#242)
diff --git a/crates/gen/src/types/param.rs b/crates/gen/src/types/param.rs index f08f7612d..ae6c0d030 100644 --- a/crates/gen/src/types/param.rs +++ b/crates/gen/src/types/param.rs @@ -158,12 +158,12 @@ impl Param { let kind = self.kind.to_tokens(); let name_size = quote::format_ident!("{}_siz...
2
17
6
f1671a61f156f70e936cab8267e60314510826b7
Ryan Levick
2020-06-25T17:30:41
Return exit code 1 on error (#241)
diff --git a/crates/cargo-winrt/src/main.rs b/crates/cargo-winrt/src/main.rs index bfd1bcc35..716475c9c 100644 --- a/crates/cargo-winrt/src/main.rs +++ b/crates/cargo-winrt/src/main.rs @@ -12,13 +12,19 @@ use std::ffi::OsString; use std::io::Read; use std::path::{Path, PathBuf}; +fn main() { + if let Err(i) = ru...
1
10
2
ab1f704754d2447a4550d48036929d714eba1995
Ryan Levick
2020-06-25T16:26:05
Ensure cargo winrt works in cargo subcommand mode (#240)
diff --git a/crates/cargo-winrt/src/main.rs b/crates/cargo-winrt/src/main.rs index eead6521a..bfd1bcc35 100644 --- a/crates/cargo-winrt/src/main.rs +++ b/crates/cargo-winrt/src/main.rs @@ -17,6 +17,7 @@ macro_rules! cmd_err { eprintln!("{}: {}", console::style("error").red().bold(), format!($($arg)*)); };...
1
10
21
13a4ac71517315318acf51faf57644ff2ca0117e
Ryan Levick
2020-06-25T15:46:45
Reduce cargo-winrt build times (#239)
diff --git a/crates/cargo-winrt/Cargo.toml b/crates/cargo-winrt/Cargo.toml index 2e872c21c..1c6f0e113 100644 --- a/crates/cargo-winrt/Cargo.toml +++ b/crates/cargo-winrt/Cargo.toml @@ -8,15 +8,12 @@ description = "A simple utility for working with WinRT in a Rust project" readme = "README.md" [dependencies] -struct...
4
195
78
97139ab2596265d0e9519f9c9ed8c5faf34d8e23
Zach Lute
2020-06-25T15:16:11
Add Debug derives for type_code generated types (#238)
diff --git a/crates/gen/macros/src/lib.rs b/crates/gen/macros/src/lib.rs index b046213ea..1781b06af 100644 --- a/crates/gen/macros/src/lib.rs +++ b/crates/gen/macros/src/lib.rs @@ -51,7 +51,7 @@ pub fn type_code(args: TokenStream, input: TokenStream) -> TokenStream { let encodes = TokenStream2::from_iter(encodes);...
10
10
32
ef946f3fea52deb2394e63b210cf44e282e2aacf
Ryan Levick
2020-06-24T18:42:42
Properly move over DLLs (#234)
diff --git a/crates/cargo-winrt/Cargo.toml b/crates/cargo-winrt/Cargo.toml index 818185bcf..2e872c21c 100644 --- a/crates/cargo-winrt/Cargo.toml +++ b/crates/cargo-winrt/Cargo.toml @@ -18,4 +18,5 @@ anyhow = "1.0" zip = "0.5" console = "0.11" serde_json = "1.0" -serde = { version = "1.0.111", features = ["derive"] }...
3
202
44
027c67e183cfd4a385e0863201a5124b4b2aa591
Zach Lute
2020-06-24T18:30:09
Make known-agile types generate Send/Sync implementations (#231)
diff --git a/crates/gen/src/element_type.rs b/crates/gen/src/element_type.rs new file mode 100644 index 000000000..c83422a9b --- /dev/null +++ b/crates/gen/src/element_type.rs @@ -0,0 +1,72 @@ +use crate::blob::Blob; +use crate::codes::{Decode, TypeDefOrRef}; + +pub enum ElementType { + Void, + Boolean, + Char...
8
226
48
66f42d60c4390b46d93653831ce7a02b5e8c3c04
Simon Buchan
2020-06-20T03:15:32
Dynamically load Windows 10 APIs (#228)
diff --git a/src/error.rs b/src/error.rs index 1fd899890..ce3430cec 100644 --- a/src/error.rs +++ b/src/error.rs @@ -22,8 +22,10 @@ impl Error { let message: HString = message.into(); // RoOriginateError creates the error object and associates it with the thread. + // Need to ignore the resul...
3
96
18
598b5912301b94d86344f975534922000307cf66
Kenny Kerr
2020-06-19T17:52:10
Complete array support (#230)
diff --git a/src/array.rs b/src/array.rs index 3aea0bcf7..2e135326f 100644 --- a/src/array.rs +++ b/src/array.rs @@ -1,12 +1,12 @@ use crate::*; /// A WinRT array -pub struct Array<T> { +pub struct Array<T: RuntimeType> { data: *mut T, len: u32, } -impl<T> Default for Array<T> { +impl<T: RuntimeType> D...
3
74
11
2f6c65f94190e3b3a9b18592089ebe3089ec7e4f
Ryan Levick
2020-06-15T16:25:44
Make sure cargo produces color output (#224)
diff --git a/crates/cargo-winrt/src/cargo.rs b/crates/cargo-winrt/src/cargo.rs index ef7fb3c33..68f111dc7 100644 --- a/crates/cargo-winrt/src/cargo.rs +++ b/crates/cargo-winrt/src/cargo.rs @@ -2,44 +2,17 @@ use anyhow::Context; use thiserror::Error; use std::path::PathBuf; -use std::process::{Command, Stdio}; +use ...
1
53
39
3525102cc6f1b29612e9101dc918545b64ca4b7e
Ryan Levick
2020-06-15T16:13:05
Git rid of some temporary allocations (#223)
diff --git a/crates/gen/src/type_namespaces.rs b/crates/gen/src/type_namespaces.rs index 9a20d6358..5a96d9cab 100644 --- a/crates/gen/src/type_namespaces.rs +++ b/crates/gen/src/type_namespaces.rs @@ -7,27 +7,22 @@ use proc_macro2::TokenStream; use quote::quote; use std::collections::*; -use std::iter::FromIterator...
3
14
20
9615768ed5d238c8878c493b4a56ceb081ff5a8e
Ryan Levick
2020-06-10T16:46:28
Improve error handling in macro (#219)
diff --git a/crates/gen/src/dependencies.rs b/crates/gen/src/dependencies.rs index c06569a35..4b68f52f4 100644 --- a/crates/gen/src/dependencies.rs +++ b/crates/gen/src/dependencies.rs @@ -1,30 +1,43 @@ use std::collections::BTreeSet; +use std::io; use std::path::{Path, PathBuf}; /// Returns the paths to resolved ...
2
47
26
1b27e613fd286e19b813df26171bc68cb50d4916
Ryan Levick
2020-06-10T16:00:57
Better error message on missing namespace (#220)
diff --git a/crates/gen/src/type_limits.rs b/crates/gen/src/type_limits.rs index 205a88211..ad8ad6078 100644 --- a/crates/gen/src/type_limits.rs +++ b/crates/gen/src/type_limits.rs @@ -19,7 +19,7 @@ impl<'a> TypeLimits<'a> { /// Insert a namespace into the set of relevant namespaces /// /// expects the n...
4
72
28
26d8ca0b3ec055b7924063293c0e1cef3389a1be
Ryan Levick
2020-06-09T18:20:02
Don't use raw identifiers unless necessary (#216)
diff --git a/crates/gen/Cargo.toml b/crates/gen/Cargo.toml index d99cb377f..6b93501d5 100644 --- a/crates/gen/Cargo.toml +++ b/crates/gen/Cargo.toml @@ -9,6 +9,7 @@ description = "Code generation for the winrt crate" [dependencies] winrt_gen_macros = { path = "macros", version = "0.7" } quote = "1.0" +syn = "1.0" ...
5
29
37
c497d2b35f9d4bcb810099d2ee1f2919060b0a2f
Ryan Levick
2020-06-09T17:12:19
Handle local dependencies in cargo winrt install (#217) Co-authored-by: Kenny Kerr <kekerr@microsoft.com>
diff --git a/crates/cargo-winrt/src/cargo.rs b/crates/cargo-winrt/src/cargo.rs index 2e9c29a9b..ef7fb3c33 100644 --- a/crates/cargo-winrt/src/cargo.rs +++ b/crates/cargo-winrt/src/cargo.rs @@ -1,20 +1,20 @@ use anyhow::Context; -use cargo_toml::Manifest; use thiserror::Error; use std::path::PathBuf; use std::proc...
4
107
49
455c30b66571fc892e1fb1f6535464d2bf7e8729
Joshua Ols
2020-06-09T14:30:18
Changes to be consistent with AbiTransferable. (#215)
diff --git a/src/activation_factory.rs b/src/activation_factory.rs index 88471d622..a6db0864f 100644 --- a/src/activation_factory.rs +++ b/src/activation_factory.rs @@ -21,10 +21,6 @@ impl IActivationFactory { } } } - - pub fn set_abi(&mut self) -> *mut RawComPtr<Self> { - self.ptr....
2
29
10
0af977075d21f23cd38fc9df6ac04cf92c4cd46c
Kenny Kerr
2020-06-08T17:05:53
primitives (#211)
diff --git a/crates/gen/src/types/param.rs b/crates/gen/src/types/param.rs index 032139740..b53ef11ae 100644 --- a/crates/gen/src/types/param.rs +++ b/crates/gen/src/types/param.rs @@ -125,7 +125,7 @@ impl Param { quote! { #name.len() as u32, ::std::mem::transmute_copy(&#name), } } ...
2
5
15
b1ff9b305942406081d61fe5dcacf48239b57a7b
Ryan Levick
2020-06-05T16:05:05
Better error handling in cargo winrt (#206)
diff --git a/crates/cargo-winrt/Cargo.toml b/crates/cargo-winrt/Cargo.toml index 5e6cedf36..818185bcf 100644 --- a/crates/cargo-winrt/Cargo.toml +++ b/crates/cargo-winrt/Cargo.toml @@ -16,5 +16,6 @@ futures = "0.3" thiserror = "1.0" anyhow = "1.0" zip = "0.5" +console = "0.11" serde_json = "1.0" serde = { version ...
4
89
73
fde48a61e0eb6be0ec2c8202fad1b564f177109d
Ryan Levick
2020-06-04T16:26:36
Add license and descriptions (#204)
diff --git a/crates/cargo-winrt/Cargo.toml b/crates/cargo-winrt/Cargo.toml index e7e5e1bcd..5e6cedf36 100644 --- a/crates/cargo-winrt/Cargo.toml +++ b/crates/cargo-winrt/Cargo.toml @@ -3,6 +3,9 @@ name = "cargo-winrt" version = "0.7.0" authors = ["Microsoft"] edition = "2018" +license = "MIT" +description = "A simpl...
4
9
0
bd3a18e14bdb12c4bb66bd317caaddefeafd382d
Ryan Levick
2020-06-04T16:11:45
Add versions (#203) * Add versions * Use strings * 0.7
diff --git a/Cargo.toml b/Cargo.toml index 4ec6d5a1d..383481c7b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ documentation = "https://docs.rs/winrt" readme = "README.md" [dependencies] -winrt_macros = { path = "crates/macros" } +winrt_macros = { path = "crates/macros", version = "0.7" } sha1 = "0.6....
3
4
4
f7f4e058d0050b0f5217a9beb018884d5b45fe34
Ryan Levick
2020-06-04T15:01:18
Fix cargo winrt for use in workspaces (#201)
diff --git a/crates/cargo-winrt/Cargo.toml b/crates/cargo-winrt/Cargo.toml index f8c3cbc63..e7e5e1bcd 100644 --- a/crates/cargo-winrt/Cargo.toml +++ b/crates/cargo-winrt/Cargo.toml @@ -13,4 +13,5 @@ futures = "0.3" thiserror = "1.0" anyhow = "1.0" zip = "0.5" -serde_json = "1.0" \ No newline at end of file +serde_js...
7
70
31
4f3735f41778ccadc3b6bfbd3f752201e3beba89
Kenny Kerr
2020-06-04T04:25:46
crates.io (#199)
diff --git a/Cargo.toml b/Cargo.toml index 280cb39a6..00fe599e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "winrt" -version = "0.1.0" +version = "0.7.0" authors = ["Microsoft"] edition = "2018" license = "MIT" diff --git a/crates/cargo-winrt/Cargo.toml b/crates/cargo-winrt/Cargo.toml...
6
6
6
bd874161f0a7226dca5e164b300bba7671a66f23
Kenny Kerr
2020-06-04T04:17:42
Docs (#198)
diff --git a/crates/winmd/src/types/async_get.rs b/crates/winmd/src/types/async_get.rs index bf760e814..dedcbea10 100644 --- a/crates/winmd/src/types/async_get.rs +++ b/crates/winmd/src/types/async_get.rs @@ -64,13 +64,13 @@ fn to_async_get_tokens(kind: AsyncKind, name: &TypeName, calling_namespace: &str pub f...
11
32
29
158af8e301988be9888951d2e86653c1c79d62f2
Ryan Levick
2020-06-03T17:23:00
Some more docs (#192)
diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs index 6a80f4931..7e1f0600d 100644 --- a/crates/macros/src/lib.rs +++ b/crates/macros/src/lib.rs @@ -13,6 +13,45 @@ use std::collections::BTreeSet; use std::path::PathBuf; /// A macro for generating WinRT modules into the current module +/// +/// This ...
3
53
1
80bd0e5209ce50168cf72d35b6d7cef04db0ea3d
Ryan Levick
2020-06-03T16:15:18
Support the slightly different SDK style nuget packages (#190)
diff --git a/crates/cargo-winrt/src/main.rs b/crates/cargo-winrt/src/main.rs index c920c57e3..30ac5a10c 100644 --- a/crates/cargo-winrt/src/main.rs +++ b/crates/cargo-winrt/src/main.rs @@ -86,10 +86,15 @@ impl Install { &self, dependency_descriptors: Vec<DependencyDescriptor>, ) -> error::Result<...
3
21
8
13d8a0cff9e17c6c213f825097107674fe69a93f
Ryan Levick
2020-06-03T15:55:41
Split off AbiTransferable trait from RuntimeType (#188) * Split off AbiTransferable trait from RuntimeType * Remove as_raw from ComInterface * Remove some unnecessary unsafe * format
diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs index db1a05da1..fea8367e7 100644 --- a/crates/winmd/src/types/class.rs +++ b/crates/winmd/src/types/class.rs @@ -139,15 +139,17 @@ impl Class { } } unsafe impl ::winrt::RuntimeType for ...
28
281
154
a08197c058899e08655471c424b9a9e57bbb4a44
Kenny Kerr
2020-06-02T16:51:57
test (#184)
diff --git a/tests/namespace.rs b/tests/namespace.rs index d3faa7959..a59cca5e5 100644 --- a/tests/namespace.rs +++ b/tests/namespace.rs @@ -1,16 +1,19 @@ // This test ensures that a multi-word namespace "MachineLearning" is properly // converted to "machine_learning" and imports correctly. -winrt::import!( - de...
1
10
7
f0e80fb49acd120bd2a4ed31c1ee876d235c1ca2
Ryan Levick
2020-06-02T16:28:06
Fix usage of imports from inside submodules (#182)
diff --git a/crates/winmd/src/types/debug.rs b/crates/winmd/src/types/debug.rs index 0face3abf..38101771e 100644 --- a/crates/winmd/src/types/debug.rs +++ b/crates/winmd/src/types/debug.rs @@ -16,10 +16,14 @@ pub fn debug_tokens(type_name: &TypeName, interfaces: &Vec<RequiredInterface>) - type_name.name == "IS...
1
5
1
612142f64cc45d9e9c2b7a506a84191bfe436e1f
Kenny Kerr
2020-06-01T16:56:09
namespace (#181)
diff --git a/tests/namespace.rs b/tests/namespace.rs new file mode 100644 index 000000000..d3faa7959 --- /dev/null +++ b/tests/namespace.rs @@ -0,0 +1,19 @@ +// This test ensures that a multi-word namespace "MachineLearning" is properly +// converted to "machine_learning" and imports correctly. + +winrt::import!( + ...
1
19
0
dce2905e7932611b4a00cfdfa9556ae976226d61
Kenny Kerr
2020-05-31T03:33:06
Support reg-free activation (#177)
diff --git a/crates/winmd/src/types/method.rs b/crates/winmd/src/types/method.rs index 8f8904619..9b75fc0d1 100644 --- a/crates/winmd/src/types/method.rs +++ b/crates/winmd/src/types/method.rs @@ -143,7 +143,7 @@ impl Method { ); quote! { - pub #name: extern "system" fn(::winrt::NonNullRa...
8
121
50
3199c684c5911bdc6bdcd209bea1c147dd9b66a0
Kenny Kerr
2020-05-28T21:22:20
docs (#172)
diff --git a/crates/winmd/src/types/delegate.rs b/crates/winmd/src/types/delegate.rs index 8fb8283e4..795bb418b 100644 --- a/crates/winmd/src/types/delegate.rs +++ b/crates/winmd/src/types/delegate.rs @@ -137,7 +137,7 @@ impl Delegate { pub fn new(invoke: F) -> #name { let value = ...
16
179
130
6261be7eff275c733b6e55f036da63f9d13c6410
Ryan Levick
2020-05-28T15:21:57
Dedicated com module (#171)
diff --git a/src/com_interface.rs b/src/com/interface.rs similarity index 55% rename from src/com_interface.rs rename to src/com/interface.rs index eba7f67b5..d7db1d53a 100644 --- a/src/com_interface.rs +++ b/src/com/interface.rs @@ -37,6 +37,7 @@ pub unsafe trait ComInterface: Sized { /// for at most the lifetime...
9
104
71
f80cc6e5296c779976712677424c2017e1c6909e
Ryan Levick
2020-05-28T14:54:59
NonNullRawComPtr (#170) * Have dedicated type for non-null com ptr * No need to rewrap the non-null ptr * Remove copy/pasta * Remove unused abi function definitions
diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs index 630df3ff7..db1a05da1 100644 --- a/crates/winmd/src/types/class.rs +++ b/crates/winmd/src/types/class.rs @@ -125,7 +125,7 @@ impl Class { quote! { #[repr(transparent)] #[derive(Default, Clo...
14
139
113
0e4e664ef38cb38eb9a19386ecbf1edbf05ca1ce
Kenny Kerr
2020-05-27T19:18:44
Avoid the need for allowing overflowing_literals (#168)
diff --git a/crates/winmd/src/tables/attribute.rs b/crates/winmd/src/tables/attribute.rs index 69b931b60..91f1c6948 100644 --- a/crates/winmd/src/tables/attribute.rs +++ b/crates/winmd/src/tables/attribute.rs @@ -27,7 +27,7 @@ impl Attribute { } } - pub fn args(&self, reader: &TypeReader) -> Vec<(Str...
8
14
21
099e4582aac6faf06bce84042a53dc0a100491a0
Alexander Ovchinnikov
2020-05-27T17:44:15
Fix GNU toolchain builds (#166)
diff --git a/src/runtime.rs b/src/runtime.rs index de6b38d94..101ca548a 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -22,7 +22,7 @@ extern "system" { ) -> u32; } -#[link(name = "onecore")] +#[link(name = "windowsapp")] extern "system" { pub fn CoIncrementMTAUsage(cookie: *mut RawPtr) -> ErrorCode; ...
2
2
2
e61bfa6da6b0533c32cfd54a4a3b4661ef887070
Ryan Levick
2020-05-27T16:01:47
Moving to use non-null pointers (#162)
diff --git a/crates/winmd/src/types/delegate.rs b/crates/winmd/src/types/delegate.rs index b7fab533b..bc34b5f8b 100644 --- a/crates/winmd/src/types/delegate.rs +++ b/crates/winmd/src/types/delegate.rs @@ -142,7 +142,8 @@ impl Delegate { }; unsafe { let ...
9
126
83
5dc411c90a38ab1c1783314ed7586a768e196000
Ryan Levick
2020-05-27T15:27:40
Fix use after free in delegates (#163)
diff --git a/crates/winmd/src/types/async_get.rs b/crates/winmd/src/types/async_get.rs index 31c3b0237..bf760e814 100644 --- a/crates/winmd/src/types/async_get.rs +++ b/crates/winmd/src/types/async_get.rs @@ -65,7 +65,7 @@ fn to_async_get_tokens(kind: AsyncKind, name: &TypeName, calling_namespace: &str if ...
3
22
18
2cdadd3c7d033b426c3f0b03fc4007197556bb8e
Kenny Kerr
2020-05-27T15:12:35
Provide richer error information via Result<T> (#161)
diff --git a/src/error.rs b/src/error.rs index 603b8c76b..2e1ca957a 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,5 +1,19 @@ #![allow(overflowing_literals)] +use crate::runtime::*; +use crate::*; + +/// The ErrorCode (a.k.a HRESULT) of an error +#[repr(transparent)] +#[derive(Copy, Clone, Debug, PartialEq)] +pu...
3
383
14
0a6942297a1478c0dc6514d118d02f4c17f38f7d
Kenny Kerr
2020-05-27T08:36:33
parent (#160) Co-authored-by: Kenny Kerr <kenny.kerr@microsoft.com>
diff --git a/crates/winmd/src/type_limits.rs b/crates/winmd/src/type_limits.rs index 4fa9c8662..68dc7d47c 100644 --- a/crates/winmd/src/type_limits.rs +++ b/crates/winmd/src/type_limits.rs @@ -15,54 +15,6 @@ impl TypeLimits { .find(|name| name.to_lowercase() == namespace) .unwrap_or_else(|| pa...
7
7
49
36b0eda0cdaf31cdc15fbe5af1e6113c57049626
Tim Weis
2020-05-21T14:04:38
Fixed typo in comment (#157)
diff --git a/src/hstring.rs b/src/hstring.rs index 3a8d75146..969141448 100644 --- a/src/hstring.rs +++ b/src/hstring.rs @@ -5,7 +5,7 @@ use std::ptr; /// A handle to a [Windows Runtime string](https://docs.microsoft.com/en-us/windows/win32/winrt/hstring) /// -/// This handle should only be used for FFI purposes wi...
1
1
1