Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.07 KB

README.md

File metadata and controls

23 lines (19 loc) · 1.07 KB

Sample Rust for Washington SDK crate

Notes

  • .metadata contains a metadata-generating MSBuild project (start poking around here!)
  • .windows/winmd is the output target for the metadata project
  • crates/samples/impl demonstrates consuming the library crate
  • build.rs generates Rust bindings from metadata and outputs to src/bindings.rs

Building metadata

  1. Install the latest production .NET SDK.
  2. Open a Developer Command Prompt for Visual Studio
  3. Navigate to .metadata folder
  4. Issue command: dotnet build

Generating Rust crate

  1. Ensure metadata is available in .windows/winmd
  2. cargo build

Additional resources/examples