Skip to content

Commit eb89422

Browse files
author
Mingshen Sun
committed
Opt-out autotests for cargo
Since we explicit add a test section to specify the `tests.rs` file, there is no need for auto tests inferece. This commit is to disable the annoying warning: warning: An explicit [[test]] section is specified in Cargo.toml which currently disables Cargo from automatically inferring other test targets. This inference behavior will change in the Rust 2018 edition and the following files will be included as a test target: * util.rs * macros.rs This is likely to break cargo build or cargo test as these files may not be ready to be compiled as a test target today. You can future-proof yourself and disable this warning by adding `autotests = false` to your [package] section. You may also move the files to a location where Cargo would not automatically infer them to be a target, such as in subfolders. For more information on this warning you can consult rust-lang/cargo#5330
1 parent d11bf9b commit eb89422

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.1.0"
44
authors = ["Alex Lyon <[email protected]>"]
55
description = "A collection of utilities important to basic system functionality"
66
build = "build.rs"
7+
autotests = false
78

89
[features]
910
arch = ["platform-info"]

0 commit comments

Comments
 (0)