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 |
|---|---|---|---|---|---|---|---|
e6b3ae64ac61ecb24915905352dd35257e564da4 | Robin Lambertz | 2020-05-21T00:28:12 | Fix stack overflow in From<HString> for String impl (#156) | diff --git a/src/hstring.rs b/src/hstring.rs
index 2bb805624..3a8d75146 100644
--- a/src/hstring.rs
+++ b/src/hstring.rs
@@ -188,7 +188,7 @@ impl<'a> From<&'a HString> for String {
impl From<HString> for String {
fn from(hstring: HString) -> Self {
- hstring.into()
+ String::from(&hstring)
}
... | 1 | 8 | 1 |
eba604b897ee061f4eebfe7681591c42024d8be8 | Ryan Levick | 2020-05-20T16:40:51 | Cache (#152)
* A better debug
* PR feedback
* Implement cache
* Implement cache for tokens
* Fix tests
* Remove constraints mutable cache
* Some clean up
* Fmt
* Add docs
* Less repition
* Simplify cache | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index f01d97eee..630df3ff7 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -43,12 +43,7 @@ impl Class {
let name = name.to_string();
let generics = Vec::new();
- le... | 11 | 223 | 186 |
96ef4de0a12276775a90bff5278764d2100a24a9 | Ryan Levick | 2020-05-19T19:27:51 | A better debug (#151)
* A better debug
* PR feedback | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index 977786f50..f01d97eee 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -1,5 +1,6 @@
use super::object::to_object_tokens;
use crate::tables::*;
+use crate::types::debug;
use crate::types::*;
use c... | 6 | 121 | 27 |
53a4a457abd3f1706cf8773a5c8e5dfd057ab2ec | Ryan Levick | 2020-05-18T20:55:13 | Do not derive Default and PartialEq (#146)
Co-authored-by: Kenny Kerr <kekerr@microsoft.com> | diff --git a/crates/winmd/src/types/delegate.rs b/crates/winmd/src/types/delegate.rs
index 21cd23780..25ab0892d 100644
--- a/crates/winmd/src/types/delegate.rs
+++ b/crates/winmd/src/types/delegate.rs
@@ -60,7 +60,6 @@ impl Delegate {
quote! {
#[repr(transparent)]
- #[derive(Default, ... | 2 | 26 | 2 |
ed46a71f506c343b3eb4fa6c15a4d9db1397ebcf | Kenny Kerr | 2020-05-16T03:09:59 | Support for async API calls (#141) | diff --git a/crates/winmd/src/types/async_get.rs b/crates/winmd/src/types/async_get.rs
new file mode 100644
index 000000000..31c3b0237
--- /dev/null
+++ b/crates/winmd/src/types/async_get.rs
@@ -0,0 +1,79 @@
+use crate::types::*;
+use proc_macro2::TokenStream;
+use quote::quote;
+
+pub fn async_get_tokens(name: &TypeNa... | 8 | 145 | 2 |
078c92c96996f458b93f82287f3bc08fd2980c17 | Kenny Kerr | 2020-05-14T16:24:57 | Implement Debug and PartialEq for WinRT types (#137) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index 6e5a9a409..477eb176e 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -125,7 +125,7 @@ impl Class {
let abi_name = self.interfaces[0].name.to_abi_tokens(&self.name.namespace);
... | 5 | 48 | 4 |
c54acb45153e1dfc9d71042ff5489521ee5f39c1 | Kenny Kerr | 2020-05-14T13:25:12 | Calculate generic guids at runtime (#135) | diff --git a/Cargo.toml b/Cargo.toml
index 8b3d0743a..b5ecf1a31 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,6 +9,7 @@ repository = "https://github.com/microsoft/winrt-rs"
[dependencies]
winrt_macros = { path = "crates/macros" }
+sha1 = "0.6.0"
[dev-dependencies]
doc-comment = "0.3"
diff --git a/crates/winmd/... | 27 | 603 | 158 |
a036b8e61c0859ba9b72e9fe5c913cd4439c6ed3 | Kenny Kerr | 2020-05-07T21:27:04 | Basic delegate support (#130) | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index 9549606ab..1b46cf887 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -22,7 +22,7 @@ pub fn import(stream: TokenStream) -> TokenStream {
let stage = TypeStage::from_limits(reader, &limits);
let tree = stage.into_tree... | 18 | 373 | 43 |
bf762684bf7a3c2e92e4dff33b3d442a77c0f433 | Guillaume Gomez | 2020-05-07T18:17:09 | Add default target for docs.rs (#127) | diff --git a/Cargo.toml b/Cargo.toml
index 369c69a7a..8b3d0743a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,4 +16,8 @@ doc-comment = "0.3"
[workspace]
members = [
"crates/*",
-]
\ No newline at end of file
+]
+
+[package.metadata.docs.rs]
+default-target = "x86_64-pc-windows-msvc"
+targets = ["x86_64-pc-wind... | 1 | 5 | 1 |
38d7c9dd6cf7cf756ddf7756ff51860ba834ae38 | Kenny Kerr | 2020-05-04T21:52:29 | WinRT classes and interfaces are convertible to winrt::Object (#123) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index 7586ceffd..3e69c382f 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -1,3 +1,4 @@
+use super::object::to_object_tokens;
use crate::tables::*;
use crate::types::*;
use crate::TypeReader;
@@ -108,... | 11 | 77 | 14 |
e378cc7d732ca23b0e47736a57e63da1f1399e90 | Ryan Levick | 2020-05-04T17:05:25 | Clarify Relationship between RuntimeType and ComInterface (#106)
* Use RuntimeType for ComPtr and IUnknown
* Use unambigous trait syntax
* IUnknown and ComPtr are not RuntimeTypes after all
* as_raw
* IID
Co-authored-by: Kenny Kerr <kekerr@microsoft.com> | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index 769df0001..7586ceffd 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -123,15 +123,15 @@ impl Class {
#type_name
unsafe impl ::winrt::ComInterface for #name {
... | 17 | 84 | 82 |
0b9af6ca71365c6b20c6ddea75a2fb2be40d1672 | Ryan Levick | 2020-05-04T15:24:52 | Add initial support for bitwise operations on WinRT enums (#116)
* Add initial support for bitwise operations on WinRT enums
* Don't implement bitwise on enum if repr is signed | diff --git a/crates/winmd/src/types/enum.rs b/crates/winmd/src/types/enum.rs
index d3287bb08..8371a47c4 100644
--- a/crates/winmd/src/types/enum.rs
+++ b/crates/winmd/src/types/enum.rs
@@ -50,10 +50,9 @@ impl Enum {
EnumConstant::I32(_) => format_ident!("i32"),
};
- let fields = self.fiel... | 2 | 31 | 7 |
7f8a85e16ceeff3fe3ef41ca8b3bdbbfc4738c17 | Kenny Kerr | 2020-05-04T07:44:08 | Model WinRT enums as structs (#113)
* fmt
* default
* trace
Co-authored-by: Kenny Kerr <kenny.kerr@microsoft.com> | diff --git a/crates/winmd/src/types/enum.rs b/crates/winmd/src/types/enum.rs
index be5bd677d..d3287bb08 100644
--- a/crates/winmd/src/types/enum.rs
+++ b/crates/winmd/src/types/enum.rs
@@ -1,7 +1,6 @@
use crate::tables::*;
use crate::types::*;
use crate::{format_ident, TypeReader};
-use std::collections::*;
use p... | 4 | 33 | 46 |
de4fd518b093c753dd60ab1e917d67592bd19c7e | Kenny Kerr | 2020-05-01T15:28:13 | Tests for ComInterface and TryInto (#111) | diff --git a/tests/com_interface.rs b/tests/com_interface.rs
new file mode 100644
index 000000000..2040517c7
--- /dev/null
+++ b/tests/com_interface.rs
@@ -0,0 +1,38 @@
+winrt::import!(
+ dependencies
+ "os"
+ modules
+ "windows.foundation"
+);
+
+#[test]
+fn com_interface() -> winrt::Result<()> {
+... | 3 | 82 | 2 |
d97315892f58c850c23a9b0a112279732a0904d4 | Ryan Levick | 2020-04-30T14:35:33 | Bootstrap docs (#101)
* Bootstrap docs
* Fix doc test
* PR feedback
* Type safe Object:type_name | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index 3854608b1..5c5ef615f 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -1,11 +1,10 @@
use proc_macro::{TokenStream, TokenTree};
-use quote::quote;
-use syn::{parse_macro_input, ItemStruct};
-use winmd::*;
+use winmd::{TypeLimi... | 23 | 120 | 181 |
54dcdccc251ccf7b29007238891fd5bcc903d61b | Kenny Kerr | 2020-04-30T06:47:07 | collisions (#103) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index 5f91da31b..3ade4f4c5 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -337,6 +337,15 @@ mod tests {
assert!(interface.name.runtime_name() == "Windows.Foundation.Collections.IVectorView`1<Wi... | 3 | 29 | 2 |
837e0cb1726bde448e7ce14dbbc1da50aaaa2423 | Ryan Levick | 2020-04-29T18:40:52 | Check the this pointer for null (#100) | diff --git a/crates/winmd/src/types/method.rs b/crates/winmd/src/types/method.rs
index 002c3fcda..2234002a5 100644
--- a/crates/winmd/src/types/method.rs
+++ b/crates/winmd/src/types/method.rs
@@ -211,10 +211,13 @@ impl Method {
quote! {
pub fn #method_name<#constraints>(&self, #params) ... | 1 | 10 | 5 |
449a9c31405ffea6e18cba0696b5adb039d83ba6 | Ryan Levick | 2020-04-29T16:11:12 | Cleanup (#98)
* Cleanup
* Move unsafe_query to ComInterface | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index ca418d355..5f91da31b 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -162,7 +162,7 @@ impl Class {
}
impl ::std::convert::From<&#from> for #into {
... | 13 | 69 | 58 |
1619ade63d590e701a6a451097597befae0692a9 | Ryan Levick | 2020-04-29T15:02:21 | Type-Safe ABI (#97)
* Accept vtable types instead of void pointers
* HString ABI
* Object abi
* Small clean ups
* Overrideable attributes are not default interface kinds
Co-authored-by: Kenny Kerr <kekerr@microsoft.com> | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index a5d34952c..ca418d355 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -115,7 +115,7 @@ impl Class {
quote! {
#[repr(transparent)]
#[derive(Default, Clo... | 12 | 74 | 70 |
708ae230c404f2caa1963700c3de49031ebc6eab | Kenny Kerr | 2020-04-29T13:32:04 | Use explicit declarations (#96) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index 36f74d6dc..a5d34952c 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -157,7 +157,7 @@ impl Class {
quote! {
impl ::std::convert::From<#from> for #into {
... | 5 | 112 | 19 |
0631743127c1eb70dc3106a33ab2413a5e83aef3 | Kenny Kerr | 2020-04-28T20:45:51 | Delegate ABI (#95) | diff --git a/crates/winmd/src/types/delegate.rs b/crates/winmd/src/types/delegate.rs
index 1416dd8ba..467cb70e5 100644
--- a/crates/winmd/src/types/delegate.rs
+++ b/crates/winmd/src/types/delegate.rs
@@ -9,9 +9,7 @@ use quote::quote;
pub struct Delegate {
pub name: TypeName,
pub method: Method,
- // TODO... | 2 | 26 | 7 |
44ebd4bec04d5ccb9197a7a4211e12f7805f3f74 | Ryan Levick | 2020-04-28T20:26:50 | Unsafe trait RuntimeType (#94)
* Make RuntimeType unsafe
* Wire it all up
* get it working
* More direct
* Remove from_abi
* Remove unused methods
* Remove excess line | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index 65eae9083..3854608b1 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -42,7 +42,7 @@ pub fn value_type(_args: TokenStream, input: TokenStream) -> TokenStream {
#[repr(C)]
#[derive(Copy, Clone, Default, Debug,... | 12 | 24 | 24 |
35e2790cce6dded0eb3be606e0f3853588044339 | Ryan Levick | 2020-04-28T16:01:01 | ComPtr (#83) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index 614279900..eccea7928 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -111,6 +111,7 @@ impl Class {
let bases = self.to_base_conversions_tokens(&self.name.namespace, &name);
... | 13 | 126 | 175 |
2c3d0a8ec09bd228f708740401891578df356479 | Ryan Levick | 2020-04-28T14:56:20 | Allow turning refs of iterator interfaces into iterators (#86)
Co-authored-by: Kenny Kerr <kekerr@microsoft.com> | diff --git a/crates/winmd/src/types/interface.rs b/crates/winmd/src/types/interface.rs
index 8a23653ca..07fe462ba 100644
--- a/crates/winmd/src/types/interface.rs
+++ b/crates/winmd/src/types/interface.rs
@@ -61,7 +61,7 @@ impl Interface {
quote! {
#[repr(transparent)]
- #[derive(Defa... | 3 | 60 | 3 |
2039d5afe600df304d5baacae57e73842dde769e | Ryan Levick | 2020-04-28T13:43:25 | Small hstring improvements (#85) | diff --git a/src/hstring.rs b/src/hstring.rs
index 331f7feaf..aa8bdc0c6 100644
--- a/src/hstring.rs
+++ b/src/hstring.rs
@@ -1,24 +1,32 @@
-#![allow(dead_code)]
-
use crate::*;
use std::ptr;
+/// A handle to a Windows Runtime string
+///
+/// This handle should only be used for FFI purposes with Window Runtime APIs... | 1 | 41 | 15 |
61893f1bfc05e1a29c71105aeda8b801cf3454c6 | Kenny Kerr | 2020-04-28T04:49:49 | Support for collections (#84) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index d32a3b271..614279900 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -109,6 +109,7 @@ impl Class {
};
let bases = self.to_base_conversions_tokens(&self.name.namespace, &... | 11 | 412 | 106 |
6e18293854c80868d0d7212aa04e967906cfe00e | Ryan Levick | 2020-04-27T13:37:01 | Change winrt::TryInto::try_into to return Result<T> (#78) | diff --git a/src/try_into.rs b/src/try_into.rs
index e5fa5da75..8e97b427d 100644
--- a/src/try_into.rs
+++ b/src/try_into.rs
@@ -1,23 +1,25 @@
use crate::*;
pub trait TryInto<T: ComInterface> {
- fn try_into(self) -> Option<T>;
+ fn try_into(self) -> Result<T>;
}
impl<From: ComInterface + Sized, Into: Com... | 1 | 10 | 8 |
7fc4c8455a433449b9f7da19b71a79e1762c1fab | Ryan Levick | 2020-04-27T13:31:22 | Use fully qualified names for module paths (#74) | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index e0d1772b0..65eae9083 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -42,7 +42,7 @@ pub fn value_type(_args: TokenStream, input: TokenStream) -> TokenStream {
#[repr(C)]
#[derive(Copy, Clone, Default, Debug,... | 7 | 25 | 26 |
a12964665828379d9b2d357eaa9f32e7caa5bd7a | Robert Mikhayelyan | 2020-04-25T19:06:30 | Update composition test to run and pass (#73) | diff --git a/tests/composition.rs b/tests/composition.rs
index 25fbd7d18..6fa464e6d 100644
--- a/tests/composition.rs
+++ b/tests/composition.rs
@@ -5,121 +5,147 @@ winrt::import!(
"windows.ui.composition"
);
+#[link(name = "coremessaging")]
+extern "stdcall" {
+ fn CreateDispatcherQueueController(
+ ... | 1 | 139 | 113 |
8ab03e8766284f2eb068fb7357e9688ef4361772 | Kenny Kerr | 2020-04-25T15:41:40 | default (#71) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index fbe154676..3bdec73e9 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -210,6 +210,14 @@ mod tests {
}
}
+ fn interface<'a>(class: &'a Class, name: &str) -> &'a RequiredInterface {... | 2 | 24 | 0 |
8689a814f4b094be3168011447bf653a08e72f5b | Kenny Kerr | 2020-04-25T03:31:02 | compose (#69) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index ed3b6f734..fbe154676 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -18,7 +18,7 @@ impl Class {
pub fn from_type_def(reader: &TypeReader, def: TypeDef) -> Self {
let name = TypeName:... | 3 | 41 | 5 |
c21527820c18e071b8fffe1f2ca7ae1501225df3 | Kenny Kerr | 2020-04-24T17:04:27 | Support for attempted conversions (#67) | diff --git a/src/lib.rs b/src/lib.rs
index 5483f5d39..c8726bd83 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -13,6 +13,7 @@ mod ref_count;
mod runtime;
mod runtime_name;
mod runtime_type;
+mod try_into;
mod unknown;
mod weak;
@@ -29,6 +30,7 @@ pub use ref_count::*;
pub use runtime::*;
pub use runtime_name::*;
... | 4 | 36 | 3 |
63cd68116b5b8a4079b343f379ecf885a354e1b3 | Kenny Kerr | 2020-04-24T02:34:07 | Composition test (#66) | diff --git a/tests/composition.rs b/tests/composition.rs
index eb7d98daa..e42168647 100644
--- a/tests/composition.rs
+++ b/tests/composition.rs
@@ -15,6 +15,7 @@ fn uri() -> winrt::Result<()> {
let compositor = Compositor::new()?;
let visual = compositor.create_sprite_visual()?;
let red = Co... | 1 | 71 | 0 |
f501fd04467bbc0e06c575357e40e1045d2466a6 | Kenny Kerr | 2020-04-24T02:14:07 | Generic queries working (#64) | diff --git a/crates/winmd/Cargo.toml b/crates/winmd/Cargo.toml
index 99534b657..0d7eee18e 100644
--- a/crates/winmd/Cargo.toml
+++ b/crates/winmd/Cargo.toml
@@ -8,3 +8,4 @@ edition = "2018"
winmd_macros = { path = "macros" }
quote = "1.0"
proc-macro2 = "1.0"
+sha1 = "0.6.0"
diff --git a/crates/winmd/src/types/method... | 7 | 140 | 43 |
d80619468c24a4348628b63d8dd182564e515307 | Kenny Kerr | 2020-04-22T17:43:46 | Type signatures (#63) | diff --git a/crates/winmd/src/types/enum.rs b/crates/winmd/src/types/enum.rs
index 5f6c4ccd4..a762f3773 100644
--- a/crates/winmd/src/types/enum.rs
+++ b/crates/winmd/src/types/enum.rs
@@ -41,6 +41,8 @@ impl Enum {
Self { name, fields }
}
+ // TODO: need to model WinRT enums as structs rather than Ru... | 9 | 263 | 42 |
18204d4366d78bf4279cb23325e06b8307600a2b | Kenny Kerr | 2020-04-21T20:15:40 | Struct, enum, bases (#62) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index 7af7d11e5..ed3b6f734 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -108,6 +108,8 @@ impl Class {
quote! {}
};
+ let bases = self.to_base_conversions_tok... | 4 | 94 | 48 |
9452f53e86b85fd3ded9ed8a562159c2fbfb3ea7 | Kenny Kerr | 2020-04-21T18:06:53 | Support for default constructors (#61) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index 25b67da8e..7af7d11e5 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -61,7 +61,7 @@ impl Class {
match attribute_factory(reader, attribute) {
Some(def)... | 8 | 169 | 62 |
c8a95230207278538737e699a710676f752e0509 | Kenny Kerr | 2020-04-21T15:28:57 | Remaining method token generation (#60) | diff --git a/crates/winmd/src/case.rs b/crates/winmd/src/case.rs
index 07da49afd..85b56f5e0 100644
--- a/crates/winmd/src/case.rs
+++ b/crates/winmd/src/case.rs
@@ -52,8 +52,9 @@ pub(crate) fn to_snake(camel: &str, kind: MethodKind) -> String {
}
}
- // last character as lowercase
- snake.extend(c... | 12 | 259 | 126 |
878ac73d18f469aec3fc2bd8af576bacf9031831 | Kenny Kerr | 2020-04-20T15:41:36 | Default (abi) method token generation (#59) | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index 58166f709..e0d1772b0 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -21,7 +21,7 @@ pub fn import(stream: TokenStream) -> TokenStream {
let stage = TypeStage::from_limits(reader, &limits);
let tree = stage.into_tree... | 18 | 396 | 106 |
e3aa4a26fee807e1eda0517bcbb967ee6e04235f | Kenny Kerr | 2020-04-16T16:25:43 | naming (#58) | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index 0a8baafdf..58166f709 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -20,7 +20,7 @@ pub fn import(stream: TokenStream) -> TokenStream {
let stage = TypeStage::from_limits(reader, &limits);
let tree = stage.into_tr... | 13 | 82 | 69 |
922f327aca8808dbf2acf249c61f1da339fc1832 | Kenny Kerr | 2020-04-16T15:05:10 | Relative namespaces (#57) | diff --git a/crates/winmd/src/lib.rs b/crates/winmd/src/lib.rs
index 918e7d2ea..24adc6e2b 100644
--- a/crates/winmd/src/lib.rs
+++ b/crates/winmd/src/lib.rs
@@ -15,7 +15,7 @@ pub use type_limits::TypeLimits;
pub use type_reader::TypeReader;
pub use type_stage::TypeStage;
-fn write_ident(name: &str) -> proc_macro2::... | 11 | 173 | 49 |
503addfe6165b86c87c65146676acbf8fb45a51d | Kenny Kerr | 2020-04-15T22:20:35 | Flatten modules (#56) | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index 1a3a2f5f9..0a8baafdf 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -20,7 +20,7 @@ pub fn import(stream: TokenStream) -> TokenStream {
let stage = TypeStage::from_limits(reader, &limits);
let tree = stage.into_tr... | 9 | 69 | 68 |
48d7eb411a4f345d0095e227e0e57fd8253cb170 | Kenny Kerr | 2020-04-15T18:27:23 | base/abi split (#55) | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index 0a8baafdf..1a3a2f5f9 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -20,7 +20,7 @@ pub fn import(stream: TokenStream) -> TokenStream {
let stage = TypeStage::from_limits(reader, &limits);
let tree = stage.into_tr... | 13 | 89 | 73 |
b8ad237238d49ed6a9ce1894c7437f1681c389d5 | Kenny Kerr | 2020-04-15T15:45:03 | ComInterface (#54) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index a6cc8c542..df35da651 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -131,8 +131,8 @@ impl Class {
let value = default_interface.guid.to_stream();
quote! {
- unsafe i... | 7 | 21 | 19 |
297d472e2b7c15f61d172f9078555f5363525f36 | Kenny Kerr | 2020-04-15T15:31:53 | unsafe (#53) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index 8543542b5..a6cc8c542 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -131,7 +131,7 @@ impl Class {
let value = default_interface.guid.to_stream();
quote! {
- impl ::w... | 5 | 5 | 5 |
e6e8e0ca4c038faf4781cf2d5e9402f04c6e130f | Ryan Levick | 2020-04-15T14:04:49 | Improvements (#52) | diff --git a/crates/winmd/src/types/class.rs b/crates/winmd/src/types/class.rs
index 18b261204..8543542b5 100644
--- a/crates/winmd/src/types/class.rs
+++ b/crates/winmd/src/types/class.rs
@@ -86,22 +86,24 @@ impl Class {
.collect()
}
+ fn default_interface(&self) -> Option<&RequiredInterface> {
... | 11 | 113 | 91 |
e896ca246c07c73b71deef43678d97d70e8815eb | Kenny Kerr | 2020-04-15T13:49:09 | Harmonized class and interface dependencies (#51) | diff --git a/crates/winmd/src/flags.rs b/crates/winmd/src/flags.rs
index 257694ed3..f75f719ca 100644
--- a/crates/winmd/src/flags.rs
+++ b/crates/winmd/src/flags.rs
@@ -25,6 +25,7 @@ impl ParamFlags {
}
}
+#[derive(PartialEq)]
pub enum TypeCategory {
Interface,
Class,
diff --git a/crates/winmd/src/ty... | 3 | 59 | 29 |
79961c73c0692bfd897d9536d4e5f7ec1c9e0e9d | Kenny Kerr | 2020-04-14T18:34:00 | class (#50) | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index 6188b225f..0a8baafdf 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -21,6 +21,7 @@ pub fn import(stream: TokenStream) -> TokenStream {
let stage = TypeStage::from_limits(reader, &limits);
let tree = stage.into_tree... | 6 | 99 | 8 |
f39fc09f76df6526ca110354badf8c7bc402cf67 | Kenny Kerr | 2020-04-14T16:50:47 | Enum (#49) | diff --git a/crates/winmd/src/types/struct.rs b/crates/winmd/src/types/struct.rs
index 44125b7de..b091b34f2 100644
--- a/crates/winmd/src/types/struct.rs
+++ b/crates/winmd/src/types/struct.rs
@@ -45,7 +45,7 @@ impl Struct {
quote! {
#[repr(C)]
- #[derive(Copy, Clone, Default, Debug, ... | 3 | 60 | 1 |
6f2770120dd4a837cb7d8f5765c48b1f406e35e3 | Kenny Kerr | 2020-04-14T15:54:02 | feedback (#48) | diff --git a/crates/winmd/src/types/interface.rs b/crates/winmd/src/types/interface.rs
index ec5f74043..6a90708fe 100644
--- a/crates/winmd/src/types/interface.rs
+++ b/crates/winmd/src/types/interface.rs
@@ -16,11 +16,7 @@ pub struct Interface {
impl Interface {
pub fn from_type_def(reader: &TypeReader, def: Typ... | 5 | 51 | 58 |
0efd1271b8717043559679e08ec9e1cd1ac7526f | Kenny Kerr | 2020-04-14T15:04:05 | Robust required interfaces and testing (#47) | diff --git a/crates/winmd/src/tables/attribute.rs b/crates/winmd/src/tables/attribute.rs
index 77a1442ae..69b931b60 100644
--- a/crates/winmd/src/tables/attribute.rs
+++ b/crates/winmd/src/tables/attribute.rs
@@ -55,7 +55,9 @@ impl Attribute {
sig.read_unsigned();
let name = va... | 11 | 335 | 203 |
a77801263c3033c27cd4a6214bbd64f1fd5d31e4 | Kenny Kerr | 2020-04-09T18:12:29 | Capture interface kind (#46) | diff --git a/crates/winmd/src/tables/interface_impl.rs b/crates/winmd/src/tables/interface_impl.rs
index 641afda57..e6c24b8c1 100644
--- a/crates/winmd/src/tables/interface_impl.rs
+++ b/crates/winmd/src/tables/interface_impl.rs
@@ -22,4 +22,9 @@ impl InterfaceImpl {
)
.map(Attribute)
}
+... | 4 | 34 | 9 |
a45d0a42865791acc2a48a367b8a17a7277d26b6 | Kenny Kerr | 2020-04-09T16:06:37 | Further tests to validate behavior and prevent code gen regressions (#45) | diff --git a/crates/winmd/src/type_limits.rs b/crates/winmd/src/type_limits.rs
index 2db046250..4fa9c8662 100644
--- a/crates/winmd/src/type_limits.rs
+++ b/crates/winmd/src/type_limits.rs
@@ -27,3 +27,42 @@ impl TypeLimits {
}
}
}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn te... | 3 | 133 | 2 |
3175070c0417b410d62e568f7a4e1bb8ae80d136 | Kenny Kerr | 2020-04-09T05:15:27 | import test (#43) | diff --git a/tests/uri.rs b/tests/uri.rs
index 77c14499f..29da95caa 100644
--- a/tests/uri.rs
+++ b/tests/uri.rs
@@ -1,28 +1,30 @@
-// import!(
-// dependencies
-// "os"
-// modules
-// "windows.foundation"
-// );
+import!(
+ dependencies
+ "os"
+ modules
+ "windows.foundatio... | 1 | 23 | 21 |
20ad3d3b8ad5695d2ae84fabb35a376c38016717 | Kenny Kerr | 2020-04-09T04:35:46 | Bug fixes and more testing (#42) | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index a0489830c..134c461d2 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -101,13 +101,16 @@ fn parse_import_stream(
#[proc_macro]
pub fn import(stream: TokenStream) -> TokenStream {
- let (_dependencies, _namespaces) = par... | 15 | 410 | 212 |
3c7bfb66f9e72404267519ef0fd2fec7ee59d6f3 | Kenny Kerr | 2020-04-07T18:31:10 | More test coverage (#41) | diff --git a/crates/winmd/src/tables/attribute.rs b/crates/winmd/src/tables/attribute.rs
index 7f4062df3..ade630ac9 100644
--- a/crates/winmd/src/tables/attribute.rs
+++ b/crates/winmd/src/tables/attribute.rs
@@ -63,8 +63,6 @@ impl Attribute {
args.push((String::new(), arg));
}
- println!... | 7 | 121 | 25 |
1efd4d9e125f8fbd824e1d5719294b0e4d9e966b | Ryan Levick | 2020-04-07T18:12:27 | More small improvements (#40) | diff --git a/crates/winmd/src/lib.rs b/crates/winmd/src/lib.rs
index 765f0fc4d..7e9844065 100644
--- a/crates/winmd/src/lib.rs
+++ b/crates/winmd/src/lib.rs
@@ -6,10 +6,8 @@ mod flags;
mod row;
mod tables;
mod type_limits;
-mod type_namespaces;
mod type_reader;
mod type_stage;
-mod type_tree;
mod types;
pub mo... | 13 | 221 | 207 |
279b305fee91ff860025da81b39a668fb36f66c1 | Ryan Levick | 2020-04-07T15:08:57 | Improve the snake case algorithm (#38) | diff --git a/crates/winmd/src/case.rs b/crates/winmd/src/case.rs
index 2be3ef205..0b9254942 100644
--- a/crates/winmd/src/case.rs
+++ b/crates/winmd/src/case.rs
@@ -1,47 +1,98 @@
-pub fn to_snake(preamble: &str, camel: &str) -> String {
+/// Change a CamelCase string to snake case
+///
+/// This prepends the optional... | 3 | 94 | 35 |
8e5ef00f7fa9148de6e6bb235db42c654005ef7c | Ryan Levick | 2020-04-06T18:23:29 | Tests for case helpers (#37) | diff --git a/crates/winmd/src/case.rs b/crates/winmd/src/case.rs
index 3742a2b0c..2be3ef205 100644
--- a/crates/winmd/src/case.rs
+++ b/crates/winmd/src/case.rs
@@ -6,7 +6,7 @@ pub fn to_snake(preamble: &str, camel: &str) -> String {
// whether we should just hard code the well-known ones or somehow use
// he... | 1 | 17 | 1 |
4ab96d21f96cddd4881f399e1d5fcafd618e1578 | Kenny Kerr | 2020-04-06T17:54:11 | More testing and method casing (#36) | diff --git a/crates/winmd/src/case.rs b/crates/winmd/src/case.rs
new file mode 100644
index 000000000..3742a2b0c
--- /dev/null
+++ b/crates/winmd/src/case.rs
@@ -0,0 +1,31 @@
+pub fn to_snake(preamble: &str, camel: &str) -> String {
+ let mut snake = String::with_capacity(preamble.len() + camel.len());
+ snake.pu... | 5 | 111 | 4 |
e3d3754a9e1a107968f16756f4818f7f9626d569 | Ryan Levick | 2020-04-06T17:20:33 | Use enum instead of constants for table index (#35) | diff --git a/crates/winmd/macros/src/lib.rs b/crates/winmd/macros/src/lib.rs
index b5fcd6913..e59962c45 100644
--- a/crates/winmd/macros/src/lib.rs
+++ b/crates/winmd/macros/src/lib.rs
@@ -21,7 +21,7 @@ pub fn type_code(args: TokenStream, input: TokenStream) -> TokenStream {
for variant in input.variants.iter() ... | 8 | 197 | 142 |
a2291744616d736512b67ad59de88b3df7b6d097 | Ryan Levick | 2020-04-06T16:50:56 | Reader -> TypeReader and load_winmd (#34) | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index c4d99dc60..a0489830c 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -103,7 +103,8 @@ fn parse_import_stream(
pub fn import(stream: TokenStream) -> TokenStream {
let (_dependencies, _namespaces) = parse_import_stream(st... | 28 | 193 | 172 |
681bd89ebba5b73d345bb17d4f3bd042cd4fa5df | Ryan Levick | 2020-04-06T14:22:31 | Small cleanup (#33) | diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs
index 8fea31e0c..c4d99dc60 100644
--- a/crates/macros/src/lib.rs
+++ b/crates/macros/src/lib.rs
@@ -108,7 +108,7 @@ pub fn import(stream: TokenStream) -> TokenStream {
let mut limits = TypeLimits::default();
limits.insert(reader, "windows.founda... | 10 | 124 | 96 |
66605c81d42ea508ac1503838b482f334be777f2 | Ryan Levick | 2020-04-06T13:23:21 | Add back View alignment checks (#32) | diff --git a/crates/winmd/src/file.rs b/crates/winmd/src/file.rs
index 5760183f1..22f28280e 100644
--- a/crates/winmd/src/file.rs
+++ b/crates/winmd/src/file.rs
@@ -118,17 +118,17 @@ impl WinmdFile {
cli.meta_data.virtual_address,
);
- if *file.bytes.view_as::<u32>(cli_offset) != STORAGE_... | 3 | 120 | 32 |
5e27a1dbe27295124d1e76c62349a67bebb8292e | Kenny Kerr | 2020-04-04T00:51:18 | Interface guid and test (#31) | diff --git a/crates/winmd/src/tables/attribute.rs b/crates/winmd/src/tables/attribute.rs
index 49905cd99..94e8b0c6c 100644
--- a/crates/winmd/src/tables/attribute.rs
+++ b/crates/winmd/src/tables/attribute.rs
@@ -27,7 +27,7 @@ impl Attribute {
}
}
- pub fn arguments(&self, reader: &Reader) -> Vec<(St... | 3 | 67 | 26 |
17965e34f331c1ab747e89a3707526158e791d46 | Kenny Kerr | 2020-04-03T20:22:44 | First smoke test to avoid winmd file parsing regressions (#30) | diff --git a/crates/winmd/src/tables/type_def.rs b/crates/winmd/src/tables/type_def.rs
index 9dfa68ee6..0bd4e8162 100644
--- a/crates/winmd/src/tables/type_def.rs
+++ b/crates/winmd/src/tables/type_def.rs
@@ -107,7 +107,7 @@ impl TypeDef {
}
}
- pub fn info(self, reader: &Reader) -> Type {
+ pub f... | 5 | 28 | 4 |
7ccc7e437264a87ff4523a841abff0cced617a00 | Kenny Kerr | 2020-04-03T18:54:17 | Fix regression (#29) | diff --git a/crates/winmd/src/file.rs b/crates/winmd/src/file.rs
index fe0fa2ddc..5760183f1 100644
--- a/crates/winmd/src/file.rs
+++ b/crates/winmd/src/file.rs
@@ -583,14 +583,8 @@ impl View for [u8] {
if cli_offset + sizeof::<T>() > self.len() as u32 {
panic!("Invalid file: offset {} is not a va... | 1 | 6 | 15 |
b32788373bd425602345a82141d2c778b6c77a2e | Kenny Kerr | 2020-04-03T17:56:53 | Fix attribute argument parsing (#28) | diff --git a/crates/winmd/src/tables/attribute.rs b/crates/winmd/src/tables/attribute.rs
index d0edccffd..49905cd99 100644
--- a/crates/winmd/src/tables/attribute.rs
+++ b/crates/winmd/src/tables/attribute.rs
@@ -27,35 +27,37 @@ impl Attribute {
}
}
- pub fn arguments(self, reader: &Reader) -> Vec<(S... | 1 | 22 | 18 |
01a39c8b88518c1ca4588a473139af6b74aac204 | Ryan Levick | 2020-04-03T14:38:36 | Even less use crate::* (#25) | diff --git a/gen/src/codes.rs b/gen/src/codes.rs
index 341dde6a1..adac7a366 100644
--- a/gen/src/codes.rs
+++ b/gen/src/codes.rs
@@ -1,5 +1,9 @@
+use crate::file::*;
+use crate::row::Row;
use crate::*;
+use winmd_macros::type_code;
+
pub trait Decode {
fn decode(code: u32, file: u16) -> Self;
}
diff --git a/g... | 12 | 43 | 11 |
63801f0a744ab1bbd9c4d1c585615f0454e56506 | Ryan Levick | 2020-04-03T14:17:39 | Remove `use crate::*` in most places (#24) | diff --git a/gen/src/blob.rs b/gen/src/blob.rs
index e33e6317e..12416f043 100644
--- a/gen/src/blob.rs
+++ b/gen/src/blob.rs
@@ -1,4 +1,5 @@
-use crate::*;
+use crate::reader::Reader;
+use std::convert::TryInto;
pub struct Blob<'a> {
pub reader: &'a Reader,
diff --git a/gen/src/lib.rs b/gen/src/lib.rs
index fb2... | 20 | 84 | 25 |
37b1204d56c303f976d4d55db49ee2a744d33092 | Ryan Levick | 2020-04-03T14:14:23 | Fix clippy lints (#23) | diff --git a/gen/src/blob.rs b/gen/src/blob.rs
index 29374b4bf..e33e6317e 100644
--- a/gen/src/blob.rs
+++ b/gen/src/blob.rs
@@ -10,7 +10,7 @@ impl<'a> Blob<'a> {
pub fn new(reader: &'a Reader, file: u16, offset: usize) -> Self {
Blob {
reader,
- file: file,
+ file,
... | 29 | 126 | 131 |
5f9cd206df02feb444b074bb9eea0d3784d13923 | Ryan Levick | 2020-04-03T14:14:02 | Introduce a Pod trait for expressing that a type is viewable from bytes (#22) | diff --git a/gen/src/file.rs b/gen/src/file.rs
index daf331237..6bdc3f57b 100644
--- a/gen/src/file.rs
+++ b/gen/src/file.rs
@@ -67,14 +67,16 @@ impl TableData {
impl WinmdFile {
pub fn new<P: AsRef<std::path::Path>>(filename: P) -> Self {
+ let bytes = std::fs::read(filename.as_ref())
+ .unwr... | 2 | 75 | 20 |
beebc414aab54f0ff1a7f935d006dea198622388 | Kenny Kerr | 2020-02-27T17:59:04 | Add abi and traits submodules (#19) | diff --git a/gen/src/write/mod.rs b/gen/src/write/mod.rs
index 1ddc670c7..95535fb3f 100644
--- a/gen/src/write/mod.rs
+++ b/gen/src/write/mod.rs
@@ -37,7 +37,6 @@ struct Interface {
limited: bool, // We don't just elide from the list because we need to deal with classes who's default interface is limited.
cat... | 5 | 133 | 71 |
588ed89c58b927d712687d16954fecbc2099846d | Kenny Kerr | 2020-02-24T13:34:35 | tests (#18) | diff --git a/tests/boxing.rs b/tests/boxing.rs
new file mode 100644
index 000000000..6bcdd046c
--- /dev/null
+++ b/tests/boxing.rs
@@ -0,0 +1,26 @@
+import!(
+ dependencies
+ "os"
+ modules
+ "windows.foundation"
+);
+
+use winrt::*;
+use windows::foundation::*;
+
+#[test]
+fn boxing() -> Result<()>... | 3 | 55 | 1 |
8f0718eaf6d41a85f38c5c41cfe57c195937eb6a | Ryan Levick | 2020-02-24T13:33:42 | Rearrange modules (#17) | diff --git a/gen/macros/src/lib.rs b/gen/macros/src/lib.rs
index 8fc98591c..547401949 100644
--- a/gen/macros/src/lib.rs
+++ b/gen/macros/src/lib.rs
@@ -17,10 +17,10 @@ pub fn table(stream: TokenStream) -> TokenStream {
}
impl Row for #name {
fn new(row:u32, file:u16) -> Self {
- ... | 16 | 712 | 654 |
3468ea5fce48bf32411468e0d91ae79843f4013e | Kenny Kerr | 2020-02-22T21:58:04 | Tweaks to support windows.ui.xaml.controls (#16) | diff --git a/gen/src/helpers.rs b/gen/src/helpers.rs
index e805d5aa6..5f6d1bf46 100644
--- a/gen/src/helpers.rs
+++ b/gen/src/helpers.rs
@@ -9,16 +9,20 @@ pub fn append_snake(result: &mut String, camel: &str) {
// create_u_int8_array - should be 'create_u8_array'
// u_i - should be 'ui'
- for c... | 6 | 169 | 168 |
4d3645777939e8f2bd69ba0cb7ea45b68fd8151c | Ryan Levick | 2020-02-21T21:26:56 | Use com-rs (#13) | diff --git a/Cargo.toml b/Cargo.toml
index bdc80b35b..007631f35 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,9 +9,9 @@ repository = "https://github.com/microsoft/winrt-rs"
[dependencies]
winrt_macros = { path = "macros" }
+com = { git = "https://github.com/microsoft/com-rs.git" }
[dev-dependencies]
winapi = {... | 10 | 151 | 188 |
93b7e096c6fb333c77ee6a93a1eac177184f6f3a | Kenny Kerr | 2020-02-21T18:58:00 | smoke test (#15) | diff --git a/gen/src/rust_writer.rs b/gen/src/rust_writer.rs
index 6963e2049..ecf6ea498 100644
--- a/gen/src/rust_writer.rs
+++ b/gen/src/rust_writer.rs
@@ -457,7 +457,10 @@ impl<'a> Writer<'a> {
fn write_abi_methods2(&self, methods: &Vec<Method>) -> TokenStream {
let mut tokens = Vec::new();
- f... | 4 | 103 | 37 |
eedc0489c0889fd95905e1d830749a60d0834186 | Ryan Levick | 2020-02-19T20:46:52 | String improvements (#8) | diff --git a/gen/src/rust_writer.rs b/gen/src/rust_writer.rs
index 4d6f2eed2..d371fabdf 100644
--- a/gen/src/rust_writer.rs
+++ b/gen/src/rust_writer.rs
@@ -1169,7 +1169,7 @@ impl<'a> Writer<'a> {
ElementType::U64 => quote! { u64 },
ElementType::F32 => quote! { f32 },
ElementType:... | 8 | 214 | 207 |
3c2ea38b0b6a28b9f361e9426ddb2b8389b44359 | Kenny Kerr | 2020-02-18T22:01:50 | Support for method renaming following collisions (#11) | diff --git a/Cargo.toml b/Cargo.toml
index 335ddb377..bdc80b35b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "winrt"
version = "0.1.0"
-authors = ["Kenny Kerr <kenny.kerr@microsoft.com>"]
+authors = ["Microsoft"]
edition = "2018"
license = "MIT"
description = "Windows Runtime language... | 8 | 179 | 140 |
5cb650f987a5066a645a51c0b89beda7ed56a139 | Ryan Levick | 2020-02-14T21:20:11 | Allow colon in import macro (#9) | diff --git a/macros/src/lib.rs b/macros/src/lib.rs
index f6235c0a6..7e9eeb993 100644
--- a/macros/src/lib.rs
+++ b/macros/src/lib.rs
@@ -57,17 +57,23 @@ fn parse_import_stream(stream: TokenStream) -> (std::collections::BTreeSet<Strin
let mut category = ImportCategory::None;
let mut dependencies = std::collect... | 1 | 13 | 7 |
ea516824cf17c4412bf925fe01b0df5dad8f6894 | Robert Mikhayelyan | 2020-02-14T17:56:32 | Add a simple composition sample (#6) | diff --git a/Cargo.toml b/Cargo.toml
index 07361e7c2..335ddb377 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,3 +9,9 @@ repository = "https://github.com/microsoft/winrt-rs"
[dependencies]
winrt_macros = { path = "macros" }
+
+[dev-dependencies]
+winapi = { version = "0.3.8", features = [ "std", "winuser", "ntdef",... | 3 | 184 | 2 |
9b177a9bdf4f581dcf1391308c6df4d5724f04b2 | Kenny Kerr | 2020-02-13T23:02:16 | Some feedback improvements and general cleanup (#5) | diff --git a/gen/src/rust_writer.rs b/gen/src/rust_writer.rs
index b813da3d9..b47c30f46 100644
--- a/gen/src/rust_writer.rs
+++ b/gen/src/rust_writer.rs
@@ -30,9 +30,9 @@ trait NamespaceWriter {
impl NamespaceWriter for BTreeMap<String, Namespace> {
fn insert_namespace(&mut self, namespace: &str, types: TokenStre... | 5 | 46 | 80 |
b9dc40c8a834a80d7e3bd2cf2e2b1093222b2059 | Kenny Kerr | 2020-02-13T21:06:40 | Merge baseline (#4) | diff --git a/gen/src/rust_writer.rs b/gen/src/rust_writer.rs
index 243ff5901..b813da3d9 100644
--- a/gen/src/rust_writer.rs
+++ b/gen/src/rust_writer.rs
@@ -151,7 +151,7 @@ impl<'a> Writer<'a> {
for t in self.r.namespace_types(namespace) {
tokens.push(match t.category(self.r) {
Ty... | 1 | 2 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.