forked from cormacrelf/datatest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
57 lines (47 loc) · 1.72 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[package]
name = "datatest"
version = "0.6.5"
authors = ["Ivan Dubrov <[email protected]>"]
edition = "2018"
repository = "https://github.com/commure/datatest"
license = "MIT/Apache-2.0"
readme = "README.md"
description = """
Data-driven tests in Rust
"""
[[test]]
name = "datatest_stable"
harness = false
[dependencies]
datatest-derive = { path = "datatest-derive", version = "= 0.6.5"}
regex = "1.0.0"
walkdir = "2.1.4"
serde = "1.0.84"
serde_yaml = "0.8.7"
yaml-rust = "0.4.2"
ctor = "0.1.10"
region = { version = "2.1.2", optional = true }
[dev-dependencies]
serde = { version = "1.0.84", features = ["derive"] }
[build-dependencies]
version_check = "0.9.3"
[workspace]
members = [
"datatest-derive"
]
[features]
# Use `#[test_case]`-based test registration. If this is disabled, datatest will use the `ctor` crate to create a
# global list of all tests.
#
# Enabled by default, only takes effect on nightly and only works when custom_test_frameworks feature is enabled.
test_case_registration = []
# Use very, very, very sketchy way of intercepting a test runner on a stable Rust. Without that feature, there are two
# options:
# 1. use `#![test_runner(datatest::runner)]` (nightly-only)
# 2. use `harness = false` in `Cargo.toml` with `datatest::harness!()` macro; however, in this case care must be taken
# to use `#[datatest::test]` instead of regular `#[test]` or otherwise tests will be silently ignored.
unsafe_test_runner = ["region"]
# Make this crate useable on stable Rust channel. Uses forbidden technique to allow usage of this crate on a stable
# Rust compiler. This, however, does not bring any guarantees above "nightly" -- this crate can break at any time.
subvert_stable_guarantees = []
default = ["test_case_registration"]