Skip to content

Commit 0c12efa

Browse files
committed
Make test_case_registration a default feature
1 parent 0fb4fd8 commit 0c12efa

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Cargo.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ members = [
3636
]
3737

3838
[features]
39-
# Use `#[test_case]`-based test registration (only works on nightly when `custom_test_frameworks` feature is enabled).
40-
# Without that feature turned on, the default test registration method is to use `ctor` crate to create a global list
41-
# of all tests.
39+
40+
# Use `#[test_case]`-based test registration. If this is disabled, datatest will use the `ctor` crate to create a
41+
# global list of all tests.
42+
#
43+
# Enabled by default, only takes effect on nightly and only works when custom_test_frameworks feature is enabled.
4244
test_case_registration = []
4345

4446
# Use very, very, very sketchy way of intercepting a test runner on a stable Rust. Without that feature, there are two
@@ -49,7 +51,7 @@ test_case_registration = []
4951
unsafe_test_runner = ["region"]
5052

5153
# Make this crate useable on stable Rust channel. Uses forbidden technique to allow usage of this crate on a stable
52-
# Rust compiler. This, however, does not bring any guarantees above "nighly" -- this crate can break at any time.
54+
# Rust compiler. This, however, does not bring any guarantees above "nightly" -- this crate can break at any time.
5355
subvert_stable_guarantees = []
5456

55-
default = []
57+
default = ["test_case_registration"]

0 commit comments

Comments
 (0)