riverar / washington-rs

Sample project demonstrating a complete MIDL to Rust workflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Rust 94.9%Language:C# 4.7%Language:C++ 0.4%