thisKai / rust-windows-dll

Macro for dynamically loading windows dll functions
MIT License
19 stars 6 forks source link

Docs.rs documentation broken #3

Closed roblabla closed 3 years ago

roblabla commented 3 years ago

Hey, thanks for the new release! The documentation on docs.rs is broken though, it appears to be building for the linux target :scream:

I believe the problem is that despite having set the default targets, all the other targets are still being built, and maybe it fails on the first build failure?

I looked at how winapi does it, and I believe this is the correct way to make it work:

[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
targets = ["aarch64-pc-windows-msvc", "i686-pc-windows-msvc", "x86_64-pc-windows-msvc"]
thisKai commented 3 years ago

Thanks! I've just released a new version with this fix and the docs appear to be working now