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 committed Dec 1, 2019
1 parent 46d9d1a commit 2d9cebf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file added .Cargo.toml.swp
Binary file not shown.
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 2d9cebf

Please sign in to comment.