Skip to content

Commit c4ceb65

Browse files
committed
build: enable doctests again
The rustdoc program now sets `cfg(test)` if run with `--test`. Hence, the r-efi-string crate will now compile properly under all circumstances. Therefore, re-enable the doctests for better test coverage. Note that this will be released with rust-1.36. For details, see: rust-lang/rust#59940 Signed-off-by: David Rheinsberg <[email protected]>
1 parent 36ae8ac commit c4ceb65

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Cargo.toml

-7
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,3 @@ keywords = [
2525
license = "Apache-2.0 OR LGPL-2.1-or-later"
2626
readme = "README.md"
2727
repository = "https://github.com/r-util/r-efi-string"
28-
29-
[lib]
30-
# We do not link to an allocator by default, because we allow the crate user to
31-
# select one. This, however, makes `doctest` fall over. Sadly, there is no
32-
# stabilized way to conditionally compile in code for doctests. Therefore, we
33-
# disable them for now. Maybe some day `cfg(doctest)` will be stabilized...
34-
doctest = false

0 commit comments

Comments
 (0)