From ceb14ca7f9d1280846dfcb69789756344e650cc5 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 --- ffmpeg-sys/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ffmpeg-sys/Cargo.toml b/ffmpeg-sys/Cargo.toml index 2917914c..a2716514 100644 --- a/ffmpeg-sys/Cargo.toml +++ b/ffmpeg-sys/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"