microsoft / windows-rs

Rust for Windows
https://kennykerr.ca/rust-getting-started/
Apache License 2.0
10.35k stars 486 forks source link

Directly invoke bindgen instead of recursively calling `cargo run ...` #3113

Closed sivadeilra closed 3 months ago

sivadeilra commented 3 months ago

Recursively calling Cargo causes all sorts of problems and has poor performance. This PR converts the last remaining recursive Cargo calls so that they directly invoke bindgen, instead. This improves build performance, removes some conflicts with Rust Analyzer, and is easier to debug.