diff --git a/actix-macros/CHANGES.md b/actix-macros/CHANGES.md new file mode 100644 index 00000000..7b89882e --- /dev/null +++ b/actix-macros/CHANGES.md @@ -0,0 +1,9 @@ +# CHANGES + +## 0.1.2 - 2020-05-18 + +### Changed + +* Forward actix_rt::test arguments to test function [#127] + +[#127]: https://github.com/actix/actix-net/pull/127 diff --git a/actix-macros/Cargo.toml b/actix-macros/Cargo.toml index 16f35527..a8527673 100644 --- a/actix-macros/Cargo.toml +++ b/actix-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-macros" -version = "0.1.1" +version = "0.1.2" authors = ["Nikolay Kim "] description = "Actix runtime macros" repository = "https://github.com/actix/actix-net" @@ -19,5 +19,5 @@ syn = { version = "^1", features = ["full"] } [dev-dependencies] actix-rt = "1.0" -futures = "0.3" +futures-util = { version = "0.3", default-features = false } trybuild = "1" diff --git a/actix-macros/tests/trybuild/main-02-only-async.rs b/actix-macros/tests/trybuild/main-02-only-async.rs index 2c60c259..63c1b788 100644 --- a/actix-macros/tests/trybuild/main-02-only-async.rs +++ b/actix-macros/tests/trybuild/main-02-only-async.rs @@ -1,4 +1,4 @@ #[actix_rt::main] fn main() { - futures::future::ready(()).await + futures_util::future::ready(()).await } diff --git a/actix-macros/tests/trybuild/main-02-only-async.stderr b/actix-macros/tests/trybuild/main-02-only-async.stderr index 6f71caef..e5e44492 100644 --- a/actix-macros/tests/trybuild/main-02-only-async.stderr +++ b/actix-macros/tests/trybuild/main-02-only-async.stderr @@ -9,6 +9,6 @@ error[E0601]: `main` function not found in crate `$CRATE` | 1 | / #[actix_rt::main] 2 | | fn main() { -3 | | futures::future::ready(()).await +3 | | futures_util::future::ready(()).await 4 | | } | |_^ consider adding a `main` function to `$DIR/tests/trybuild/main-02-only-async.rs`