Skip to content

Sample project demonstrating a complete MIDL to Rust workflow

Notifications You must be signed in to change notification settings

riverar/washington-rs

Repository files navigation

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

About

Sample project demonstrating a complete MIDL to Rust workflow

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •