Skip to content

Commit

Permalink
Explicitly specify targets to build on docs.rs
Browse files Browse the repository at this point in the history
This makes sure that all Windows platforms will have documentation on
docs.rs even after docs.rs stops building all tier 1 targets by default.
See rust-lang/docs.rs#532 and
rust-lang/docs.rs#343 for more context.

Additionally, this stops building targets on Mac and Linux since those
targets are just empty anyway.
  • Loading branch information
jyn514 committed May 27, 2020
1 parent a5dd3ca commit a5ee1c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ build = "build.rs"
[package.metadata.docs.rs]
features = ["everything", "impl-debug", "impl-default"]
default-target = "x86_64-pc-windows-msvc"
targets = ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc"]

[badges]
travis-ci = { repository = "retep998/winapi-rs", branch = "0.3" }
Expand Down

0 comments on commit a5ee1c9

Please sign in to comment.