From ba724c36742fa237084c7caf690813529d0a9a2f Mon Sep 17 00:00:00 2001 From: Daniel Dulaney Date: Sat, 30 Nov 2019 22:37:04 -0500 Subject: [PATCH] build: disable doctests 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 https://github.com/rust-lang/rust-bindgen/issues/1313 --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 2917914c..a2716514 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"