Skip to content

Commit

Permalink
Cargo manifest: disable doctests
Browse files Browse the repository at this point in the history
In 'cargo test' environments, the SvsmAllocator must not be made the
global_allocator. However, the conditional setting of this attribute depends
on the 'test' configuration predicate being set in 'cargo test' environments.

This seems to not be working properly for documentation tests ([1]), and it's
similar for the alternative 'doctest' predicate ([2]).

As documentation tests currently don't play an important role for the project,
just disable them alltogether until the cargo community has settled on a
suitable alternative.

[1] rust-lang/rust#45599
[2] rust-lang/rust#67295

Signed-off-by: Nicolai Stange <[email protected]>
  • Loading branch information
nicstange committed Jan 9, 2023
1 parent 0bf5892 commit 8cdea8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ test = false

[lib]
test = true
doctest = false

[dependencies]
bitflags = "1.3.2"
Expand Down

0 comments on commit 8cdea8e

Please sign in to comment.