microsoft / windows-rs

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

NatVis does not need to be conditional #3094

Closed sivadeilra closed 1 month ago

sivadeilra commented 1 month ago

The NatVis integration feature in Rust does not need to be made conditional. It was designed so that you can declare a NatVis file for any crate and the Rust compiler determines whether that is enabled for a particular platform. Right now, it's only enabled for Windows. On other platforms, it is safely and silently ignored.

So we don't need any conditional logic around NatVis.