-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add crate-specific readme files (#2703)
- Loading branch information
Showing
7 changed files
with
80 additions
and
202 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
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
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,28 @@ | ||
## Generate Rust bindings for Windows | ||
|
||
The [riddle](https://crates.io/crates/riddle) tool automatically generates Rust bindings from Windows metadata. | ||
|
||
* [Getting started](https://kennykerr.ca/rust-getting-started/) | ||
* [Samples](https://github.com/microsoft/windows-rs/tree/0.52.0/crates/samples) <!-- link to samples for upcoming release --> | ||
* [Releases](https://github.com/microsoft/windows-rs/releases) | ||
|
||
Start by installing `riddle`: | ||
|
||
``` | ||
> cargo install riddle | ||
``` | ||
|
||
Generates Rust bindings as needed: | ||
|
||
``` | ||
> riddle | ||
Usage: riddle.exe [options...] | ||
Options: | ||
--in <path> Path to files and directories containing .winmd and .rdl files | ||
--out <path> Path to .winmd, .rdl, or .rs file to generate | ||
--filter <namespace> Namespaces to include or !exclude in output | ||
--config <key=value> Override a configuration value | ||
--format Format .rdl files only | ||
--etc <path> File containing command line options | ||
``` |