[package]
edition = "2021"
rust-version = "1.88.0"
name = "test-with"
version = "0.16.1"
authors = ["Antonio Yang <yanganto@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library that helps you run tests with conditions"
readme = false
keywords = [
"testing",
"condition",
"toggle",
"integration",
"ignore",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/yanganto/test-with"
[features]
default = [
"net",
"resource",
"user",
"executable",
"timezone",
]
executable = [
"test-with-derive/executable",
"which",
]
http = [
"test-with-derive/http",
"reqwest",
]
icmp = [
"test-with-derive/icmp",
"ping",
]
ign-msg = ["test-with-derive/ign-msg"]
net = [
"test-with-derive/net",
"http",
"icmp",
]
resource = [
"test-with-derive/resource",
"sysinfo",
"byte-unit",
"num_cpus",
]
runtime = [
"test-with-derive/runtime",
"libtest-mimic",
]
timezone = [
"test-with-derive/timezone",
"chrono",
]
user = [
"test-with-derive/user",
"uzers",
]
[lib]
name = "test_with"
path = "src/lib.rs"
[[example]]
name = "env"
path = "examples/env.rs"
[[example]]
name = "executable"
path = "examples/executable.rs"
[[example]]
name = "file"
path = "examples/file.rs"
[[example]]
name = "http"
path = "examples/http.rs"
[[example]]
name = "icmp"
path = "examples/icmp.rs"
[[example]]
name = "lock"
path = "examples/lock.rs"
[[example]]
name = "resource"
path = "examples/resource.rs"
[[example]]
name = "rstest"
path = "examples/rstest.rs"
[[example]]
name = "serial"
path = "examples/serial.rs"
[[example]]
name = "tcp"
path = "examples/tcp.rs"
[[example]]
name = "timezone"
path = "examples/timezone.rs"
[[example]]
name = "tokio"
path = "examples/tokio.rs"
[[example]]
name = "user"
path = "examples/user.rs"
[dependencies.byte-unit]
version = "5.0"
optional = true
[dependencies.chrono]
version = "0.4"
optional = true
[dependencies.libtest-mimic]
version = "0.8.2"
optional = true
[dependencies.num_cpus]
version = "1.13"
optional = true
[dependencies.ping]
version = "0.7.1"
optional = true
[dependencies.reqwest]
version = "0.13"
features = ["blocking"]
optional = true
[dependencies.sysinfo]
version = "0.38"
optional = true
[dependencies.test-with-derive]
version = "=0.16.1"
default-features = false
[dependencies.which]
version = "8.0"
optional = true
[dev-dependencies.rstest]
version = "0.26.1"
[dev-dependencies.serial_test]
version = "3.1.1"
[dev-dependencies.tokio]
version = "1.38.0"
features = [
"rt",
"rt-multi-thread",
"macros",
]
[target.'cfg(not(target_os = "windows"))'.dependencies.uzers]
version = "0.11.3"
optional = true