From de2c8797f4c0e3a5312de20b95d84af2e03c8bf0 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 13 Jul 2021 19:49:51 -0700 Subject: [PATCH] dylib (#18) --- .gitignore | 1 - direct2d/Cargo.lock | 83 ++++++++++++++++++++++++++++++++++++ direct2d/Cargo.toml | 2 +- direct2d/bindings/Cargo.toml | 4 +- direct2d/bindings/src/lib.rs | 2 + 5 files changed, 88 insertions(+), 4 deletions(-) create mode 100644 direct2d/Cargo.lock diff --git a/.gitignore b/.gitignore index caa61e3..f94271b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ target -Cargo.lock .vscode .vs diff --git a/direct2d/Cargo.lock b/direct2d/Cargo.lock new file mode 100644 index 0000000..8609287 --- /dev/null +++ b/direct2d/Cargo.lock @@ -0,0 +1,83 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "bindings" +version = "0.0.0" +dependencies = [ + "windows", +] + +[[package]] +name = "const-sha1" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb58b6451e8c2a812ad979ed1d83378caa5e927eef2622017a45f251457c2c9d" + +[[package]] +name = "proc-macro2" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0d8caf72986c1a598726adc988bb5984792ef84f5ee5aa50209145ee8077038" +dependencies = [ + "unicode-xid", +] + +[[package]] +name = "quote" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "sample" +version = "0.0.0" +dependencies = [ + "bindings", + "windows", +] + +[[package]] +name = "syn" +version = "1.0.73" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f71489ff30030d2ae598524f61326b902466f72a0fb1a8564c001cc63425bcc7" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "unicode-xid" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" + +[[package]] +name = "windows" +version = "0.17.2" +source = "git+https://github.com/microsoft/windows-rs#ae225512b19b91dad26c339e1d98530e808d0d9e" +dependencies = [ + "const-sha1", + "windows_gen", + "windows_macros", +] + +[[package]] +name = "windows_gen" +version = "0.17.2" +source = "git+https://github.com/microsoft/windows-rs#ae225512b19b91dad26c339e1d98530e808d0d9e" + +[[package]] +name = "windows_macros" +version = "0.17.2" +source = "git+https://github.com/microsoft/windows-rs#ae225512b19b91dad26c339e1d98530e808d0d9e" +dependencies = [ + "syn", + "windows_gen", +] diff --git a/direct2d/Cargo.toml b/direct2d/Cargo.toml index c95d390..27e429f 100644 --- a/direct2d/Cargo.toml +++ b/direct2d/Cargo.toml @@ -4,5 +4,5 @@ version = "0.0.0" edition = "2018" [dependencies] -windows = "0.17.2" +windows = { git = "https://github.com/microsoft/windows-rs", features = ["raw_dylib"] } bindings = { path = "bindings" } diff --git a/direct2d/bindings/Cargo.toml b/direct2d/bindings/Cargo.toml index 8c560e3..e0a088a 100644 --- a/direct2d/bindings/Cargo.toml +++ b/direct2d/bindings/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.0" edition = "2018" [dependencies] -windows = "0.17.2" +windows = { git = "https://github.com/microsoft/windows-rs", features = ["raw_dylib"] } [build-dependencies] -windows = "0.17.2" +windows = { git = "https://github.com/microsoft/windows-rs", features = ["raw_dylib"] } diff --git a/direct2d/bindings/src/lib.rs b/direct2d/bindings/src/lib.rs index d9ddca7..7fddb95 100644 --- a/direct2d/bindings/src/lib.rs +++ b/direct2d/bindings/src/lib.rs @@ -1 +1,3 @@ +#![allow(incomplete_features)] +#![feature(raw_dylib)] windows::include_bindings!();