Skip to content

Commit

Permalink
Try to fix a build error in docs.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
MonterraByte committed Jul 24, 2018
1 parent 7303f0e commit 7803a01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ keywords = ["ffi", "cd", "cdio", "iso9660", "udf"]
categories = ["external-ffi-bindings", "hardware-support", "multimedia", "multimedia::audio"]
license = "GPL-3.0+"

[package.metadata.docs.rs]
features = ["docsrs-workaround", "cdio", "iso9660", "udf"]

[build-dependencies]
bindgen = "0.37"

[features]
default = ["cdio", "iso9660", "udf"]
docsrs-workaround = []
cdio = []
iso9660 = []
udf = []
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ fn main() {
.header("wrapper.h")
// Fix error E0133 (see https://github.com/rust-lang/rust/issues/46043)
.derive_debug(false)
.derive_copy(cfg!(not(feature = "docsrs-workaround")))
.generate()
.expect("Unable to generate bindings");

Expand Down

0 comments on commit 7803a01

Please sign in to comment.