Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit ba724c3

Browse files
Daniel Dulaneymeh
Daniel Dulaney
authored andcommitted
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 f1ce2d0 commit ba724c3

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)