facebookincubator / reindeer

Reindeer is a tool to transform Rust Cargo dependencies into generated Buck build rules
MIT License
184 stars 30 forks source link

Question: how to disable a platform #44

Open tel opened 6 months ago

tel commented 6 months ago

I'm building an application targeting macos and linux exclusively, however by default reindeer seems to solve Cargo dependencies like [target."cfg(windows)".dependencies.winapi-util] in walkdir.

These aren't causing a significant issue, but they are a bit of noise given my platform interests.

I believe I was able to fix some of this by explicitly declaring my platforms in reindeer.toml.

# reindeer.toml

[platform.linux-x86_64]
# typical values...
[platform.linux-arm64]
# ...
[platform.macos-x86_64]
# ...
[platform.macos-arm64]
# ...

Nevertheless, it appears that the winapi-util dependency is getting pulled.

Is there a way to ensure that cfg(windows) will evaluate to false?