mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00

The Tokio runtime provides a "shell" runtime when `rt-core` is not available. This shell runtime is enough to support `#[tokio::main`] and `#[tokio::test]. A previous change disabled these two attr macros when `rt-core` was not selected. This patch fixes this by re-enabling the `main` and `test` attr macros without `rt-core` and adds some integration tests to prevent future regressions.
21 lines
491 B
TOML
21 lines
491 B
TOML
[package]
|
|
name = "tests-integration"
|
|
version = "0.1.0"
|
|
authors = ["Tokio Contributors <team@tokio.rs>"]
|
|
edition = "2018"
|
|
publish = false
|
|
|
|
[features]
|
|
full = ["tokio/full", "tokio-test"]
|
|
macros = ["tokio/macros"]
|
|
rt-core = ["tokio/rt-core"]
|
|
rt-threaded = ["rt-core", "tokio/rt-threaded"]
|
|
|
|
[dependencies]
|
|
tokio = { path = "../tokio" }
|
|
tokio-test = { path = "../tokio-test", optional = true }
|
|
doc-comment = "0.3.1"
|
|
|
|
[dev-dependencies]
|
|
futures = { version = "0.3.0", features = ["async-await"] }
|