reindeer icon indicating copy to clipboard operation
reindeer copied to clipboard

Question: how to disable a platform

Open tel opened this issue 9 months ago • 0 comments

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?

tel avatar May 10 '24 18:05 tel