Skip to content

Commit

Permalink
Disable generating comments in bindings
Browse files Browse the repository at this point in the history
Generating comments in bindings can cause doc tests to fail, see
rust-lang/rust-bindgen#1313
  • Loading branch information
nick-mobilecoin committed Aug 9, 2022
1 parent e429aa3 commit 66100d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/build/src/lib.rs
Expand Up @@ -39,6 +39,8 @@ pub fn sgx_builder() -> Builder {
.derive_ord(true)
.derive_partialeq(true)
.derive_partialord(true)
// Comments can cause doc tests to fail, see https://github.com/rust-lang/rust-bindgen/issues/1313
.generate_comments(false)
.default_enum_style(EnumVariation::Consts)
.prepend_enum_name(false)
.use_core()
Expand Down

0 comments on commit 66100d2

Please sign in to comment.