|
3 | 3 | [](https://github.com/awestlake87/pyo3-asyncio/actions) |
4 | 4 | [](https://codecov.io/gh/awestlake87/pyo3-asyncio) |
5 | 5 | [](https://crates.io/crates/pyo3-asyncio) |
6 | | -[](https://rust-lang.github.io/rfcs/2495-min-rust-version.html) |
| 6 | +[](https://rust-lang.github.io/rfcs/2495-min-rust-version.html) |
7 | 7 |
|
8 | 8 | [Rust](http://www.rust-lang.org/) bindings for [Python](https://www.python.org/)'s [Asyncio Library](https://docs.python.org/3/library/asyncio.html). This crate facilitates interactions between Rust Futures and Python Coroutines and manages the lifecycle of their corresponding event loops. |
9 | 9 |
|
@@ -52,8 +52,8 @@ Here we initialize the runtime, import Python's `asyncio` library and run the gi |
52 | 52 | ```toml |
53 | 53 | # Cargo.toml dependencies |
54 | 54 | [dependencies] |
55 | | -pyo3 = { version = "0.19" } |
56 | | -pyo3-asyncio = { version = "0.19", features = ["attributes", "async-std-runtime"] } |
| 55 | +pyo3 = { version = "0.20" } |
| 56 | +pyo3-asyncio = { version = "0.20", features = ["attributes", "async-std-runtime"] } |
57 | 57 | async-std = "1.9" |
58 | 58 | ``` |
59 | 59 |
|
@@ -82,8 +82,8 @@ attribute. |
82 | 82 | ```toml |
83 | 83 | # Cargo.toml dependencies |
84 | 84 | [dependencies] |
85 | | -pyo3 = { version = "0.19" } |
86 | | -pyo3-asyncio = { version = "0.19", features = ["attributes", "tokio-runtime"] } |
| 85 | +pyo3 = { version = "0.20" } |
| 86 | +pyo3-asyncio = { version = "0.20", features = ["attributes", "tokio-runtime"] } |
87 | 87 | tokio = "1.9" |
88 | 88 | ``` |
89 | 89 |
|
@@ -127,17 +127,17 @@ For `async-std`: |
127 | 127 |
|
128 | 128 | ```toml |
129 | 129 | [dependencies] |
130 | | -pyo3 = { version = "0.19", features = ["extension-module"] } |
131 | | -pyo3-asyncio = { version = "0.19", features = ["async-std-runtime"] } |
| 130 | +pyo3 = { version = "0.20", features = ["extension-module"] } |
| 131 | +pyo3-asyncio = { version = "0.20", features = ["async-std-runtime"] } |
132 | 132 | async-std = "1.9" |
133 | 133 | ``` |
134 | 134 |
|
135 | 135 | For `tokio`: |
136 | 136 |
|
137 | 137 | ```toml |
138 | 138 | [dependencies] |
139 | | -pyo3 = { version = "0.19", features = ["extension-module"] } |
140 | | -pyo3-asyncio = { version = "0.19", features = ["tokio-runtime"] } |
| 139 | +pyo3 = { version = "0.20", features = ["extension-module"] } |
| 140 | +pyo3-asyncio = { version = "0.20", features = ["tokio-runtime"] } |
141 | 141 | tokio = "1.9" |
142 | 142 | ``` |
143 | 143 |
|
@@ -431,8 +431,8 @@ name = "my_async_module" |
431 | 431 | crate-type = ["cdylib"] |
432 | 432 |
|
433 | 433 | [dependencies] |
434 | | -pyo3 = { version = "0.19", features = ["extension-module"] } |
435 | | -pyo3-asyncio = { version = "0.19", features = ["tokio-runtime"] } |
| 434 | +pyo3 = { version = "0.20", features = ["extension-module"] } |
| 435 | +pyo3-asyncio = { version = "0.20", features = ["tokio-runtime"] } |
436 | 436 | async-std = "1.9" |
437 | 437 | tokio = "1.9" |
438 | 438 | ``` |
@@ -491,8 +491,8 @@ event loop before we can install the `uvloop` policy. |
491 | 491 | ```toml |
492 | 492 | [dependencies] |
493 | 493 | async-std = "1.9" |
494 | | -pyo3 = "0.19" |
495 | | -pyo3-asyncio = { version = "0.19", features = ["async-std-runtime"] } |
| 494 | +pyo3 = "0.20" |
| 495 | +pyo3-asyncio = { version = "0.20", features = ["async-std-runtime"] } |
496 | 496 | ``` |
497 | 497 |
|
498 | 498 | ```rust no_run |
|
0 commit comments