Skip to content

Commit 0224e12

Browse files
committed
move async example to sub project
1 parent 1fe9d50 commit 0224e12

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
run: cargo build
2727
- name: Run tests
2828
if: matrix.rust-version != '1.37'
29-
run: cargo test -- --skip ui_compile_fail
29+
run: cargo test --all -- --skip ui_compile_fail
3030
- name: Run compile-fail tests
3131
if: matrix.rust-version == 'stable'
3232
run: cargo test -- ui_compile_fail
3333
- name: Run tests (MSRV)
3434
if: matrix.rust-version == '1.37'
35-
run: cargo test --lib -- --skip ui_compile_fail
35+
run: cargo test -- --skip ui_compile_fail

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ autotests = true
1616
edition = "2018"
1717
rust-version = "1.37"
1818

19+
[workspace]
20+
members = [
21+
"examples/async_await"
22+
]
1923

2024
[lib]
2125
proc-macro = true
@@ -28,5 +32,3 @@ proc-macro-error = "1.0.0"
2832

2933
[dev-dependencies]
3034
trybuild = "1"
31-
async-trait = "0.1"
32-
async-std = { version = "1", features = ["attributes"] }

examples/async_await/Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[package]
2+
name = "auto_impl_async_await_example"
3+
version = "0.0.0"
4+
publish = false
5+
edition = "2021"
6+
7+
[dependencies]
8+
auto_impl = { path = "../../" }
9+
async-trait = "0.1"
10+
async-std = { version = "1", features = ["attributes"] }
File renamed without changes.

0 commit comments

Comments
 (0)