Skip to content

Commit

Permalink
Auto merge of #406 - kornelski:docsbuild, r=jdm
Browse files Browse the repository at this point in the history
Fix docs.rs build

docs.rs fails to build `core-graphics`. This adds metadata to let it know to build on an Apple platform.
  • Loading branch information
bors-servo authored Aug 26, 2020
2 parents 69c09ab + 71a0d68 commit 466405c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core-foundation-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ build = "build.rs"
[features]
mac_os_10_7_support = [] # backwards compatibility
mac_os_10_8_features = [] # enables new features

[package.metadata.docs.rs]
default-target = "x86_64-apple-darwin"
3 changes: 3 additions & 0 deletions core-foundation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ mac_os_10_7_support = ["core-foundation-sys/mac_os_10_7_support"] # backwards co
mac_os_10_8_features = ["core-foundation-sys/mac_os_10_8_features"] # enables new features
with-chrono = ["chrono"]
with-uuid = ["uuid"]

[package.metadata.docs.rs]
default-target = "x86_64-apple-darwin"
3 changes: 3 additions & 0 deletions core-graphics-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ bitflags = "1.0"
core-foundation = { path = "../core-foundation", version = "0.9" }
foreign-types = "0.3.0"
libc = "0.2"

[package.metadata.docs.rs]
default-target = "x86_64-apple-darwin"
3 changes: 3 additions & 0 deletions core-graphics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ core-foundation = { path = "../core-foundation", version = "0.9" }
core-graphics-types = { path = "../core-graphics-types", version = "0.1" }
foreign-types = "0.3.0"
libc = "0.2"

[package.metadata.docs.rs]
default-target = "x86_64-apple-darwin"

0 comments on commit 466405c

Please sign in to comment.