Skip to content

Commit 11e0ed0

Browse files
author
Daniel Dulaney
committed
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 rust-lang/rust-bindgen#1313
1 parent 46d9d1a commit 11e0ed0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ description = "FFI bindings to FFmpeg"
1111
repository = "https://github.com/meh/rust-ffmpeg-sys"
1212
keywords = ["audio", "video"]
1313

14+
[lib]
15+
# Disable doctests as a workaround for https://github.com/rust-lang/rust-bindgen/issues/1313
16+
doctest = false
17+
1418
[dependencies]
1519
libc = "0.2"
1620

0 commit comments

Comments
 (0)