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 tilpner committed May 24, 2023
1 parent c919c74 commit eeb9f9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys/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 eeb9f9e

Please sign in to comment.