Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Embed bindings via windows-core (#117)
- Loading branch information
Showing
7 changed files
with
2,444 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[package] | ||
name = "api_gen" | ||
version = "0.0.0" | ||
edition = "2018" | ||
publish = false | ||
|
||
[dependencies] | ||
windows-bindgen = "0.51" | ||
|
||
# Dissociate this crate from the root workspace to allow older Rust to build the main crate within | ||
# the workspace, without observing `edition = "2021"` inside `windows-bindgen`. | ||
[workspace] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
use windows_bindgen::{bindgen, Result}; | ||
|
||
fn main() -> Result<()> { | ||
let log = bindgen(["--etc", "bindings.txt"])?; | ||
println!("{}", log); | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--out src/Windows.rs | ||
|
||
--filter | ||
Windows.Globalization.Calendar | ||
|
||
# Dependencies of the above | ||
Windows.Foundation.Collections.IIterable | ||
Windows.Foundation.Collections.IIterator | ||
Windows.Foundation.Collections.IVectorView | ||
Windows.Foundation.DateTime | ||
Windows.Foundation.TimeSpan | ||
Windows.Globalization.DayOfWeek | ||
Windows.Globalization.ICalendar | ||
Windows.Globalization.ICalendarFactory | ||
Windows.Globalization.ICalendarFactory2 | ||
Windows.Globalization.ITimeZoneOnCalendar |
Oops, something went wrong.