Skip to content

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 924479b commit ceb14ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ffmpeg-sys/Cargo.toml
Original file line number Diff line number Diff line change
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 ceb14ca

Please sign in to comment.