Skip to content

Commit

Permalink
build: enable doctests again
Browse files Browse the repository at this point in the history
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 <david.rheinsberg@gmail.com>
  • Loading branch information
dvdhrm committed May 6, 2019
1 parent 36ae8ac commit c4ceb65
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,3 @@ keywords = [
license = "Apache-2.0 OR LGPL-2.1-or-later"
readme = "README.md"
repository = "https://github.com/r-util/r-efi-string"

[lib]
# We do not link to an allocator by default, because we allow the crate user to
# select one. This, however, makes `doctest` fall over. Sadly, there is no
# stabilized way to conditionally compile in code for doctests. Therefore, we
# disable them for now. Maybe some day `cfg(doctest)` will be stabilized...
doctest = false

0 comments on commit c4ceb65

Please sign in to comment.