To specify a dependency that only exists on a certain platform, you can write this in your
[target.'cfg(windows)'.dependencies] winreg = "0.3"
Let’s say I have a binary that uses
[[bin]] name="windows_only_bin" path="src/thing.rs"
How do I tell Cargo to not even attempt to build
windows_only_bin on non-windows platforms?