Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
build: disable doctests
Browse files Browse the repository at this point in the history
In some cases, C comments end up looking like indented code blocks. rustdoc
thinks those are doctests and tries to run them. Bindgen is working on a
workaround, but in the meantime, the easiest solution is just disabling doctests
crate-wide.

See rust-lang/rust-bindgen#1313
  • Loading branch information
Daniel Dulaney authored and meh committed Dec 5, 2019
1 parent f1ce2d0 commit ba724c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Expand Up @@ -11,6 +11,10 @@ description = "FFI bindings to FFmpeg"
repository = "https://github.com/meh/rust-ffmpeg-sys"
keywords = ["audio", "video"]

[lib]
# Disable doctests as a workaround for https://github.com/rust-lang/rust-bindgen/issues/1313
doctest = false

[dependencies]
libc = "0.2"

Expand Down

0 comments on commit ba724c3

Please sign in to comment.