File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 7
7
8
8
` asyncs ` is a shim like package to ship async runtime agnostic facilities.
9
9
10
- ## Usage
11
- ```
12
- [dependencies]
13
- asyncs = "0.1.0"
10
+ ## Usages
14
11
15
- [dev-dependencies]
16
- asyncs = { version = "0.1.0", features = [" test"] }
17
- ```
12
+ * ` cargo add asyncs ` for libraries.
13
+ * ` cargo add --dev -- features test asyncs ` for tests.
14
+ * ` cargo add --features tokio,smol,async-global-executor ` for binaries to compat with existing async runtimes. See [ spawns ] [ ] for more.
18
15
19
16
Feature ` test ` should only be enabled for ` dev-dependencies ` .
20
17
21
18
## Provides
22
- * ` asyncs::task::spawn ` to spawn tasks in runtime agnostic way from [ spawns] ( https://docs.rs/spawns ) .
23
- * ` select! ` to multiplex asynchronous futures simultaneously from [ async-select] ( https://docs.rs/async-select ) .
19
+ * ` asyncs::task::spawn ` to spawn tasks in runtime agnostic way from [ spawns] [ ] .
20
+ * ` select! ` to multiplex asynchronous futures simultaneously from [ async-select] [ ] .
24
21
* ` #[asyncs::test] ` to bootstrap a runtime for testing. This is only available with feature ` test ` .
25
22
26
23
## Does not provide
27
- Executors.
24
+ Executors and ` #[asyncs::main] ` .
25
+
26
+ [ spawns ] : https://docs.rs/spawns
27
+ [ async-select ] : https://docs.rs/async-select
You can’t perform that action at this time.
0 commit comments