Skip to content

Commit b93e1ed

Browse files
committed
Use version 0.15 in docs
Some of the example code does no longer compile with py03-asyncio 0.14. Therefore use the latest version for the README.md to fix that.
1 parent ca168df commit b93e1ed

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ Here we initialize the runtime, import Python's `asyncio` library and run the gi
4545
```toml
4646
# Cargo.toml dependencies
4747
[dependencies]
48-
pyo3 = { version = "0.14" }
49-
pyo3-asyncio = { version = "0.14", features = ["attributes", "async-std-runtime"] }
48+
pyo3 = { version = "0.15" }
49+
pyo3-asyncio = { version = "0.15", features = ["attributes", "async-std-runtime"] }
5050
async-std = "1.9"
5151
```
5252

@@ -75,8 +75,8 @@ attribute.
7575
```toml
7676
# Cargo.toml dependencies
7777
[dependencies]
78-
pyo3 = { version = "0.14" }
79-
pyo3-asyncio = { version = "0.14", features = ["attributes", "tokio-runtime"] }
78+
pyo3 = { version = "0.15" }
79+
pyo3-asyncio = { version = "0.15", features = ["attributes", "tokio-runtime"] }
8080
tokio = "1.9"
8181
```
8282

@@ -118,16 +118,16 @@ Make your project depend on `pyo3` with the `extension-module` feature enabled a
118118
For `async-std`:
119119
```toml
120120
[dependencies]
121-
pyo3 = { version = "0.14", features = ["extension-module"] }
122-
pyo3-asyncio = { version = "0.14", features = ["async-std-runtime"] }
121+
pyo3 = { version = "0.15", features = ["extension-module"] }
122+
pyo3-asyncio = { version = "0.15", features = ["async-std-runtime"] }
123123
async-std = "1.9"
124124
```
125125

126126
For `tokio`:
127127
```toml
128128
[dependencies]
129-
pyo3 = { version = "0.14", features = ["extension-module"] }
130-
pyo3-asyncio = { version = "0.14", features = ["tokio-runtime"] }
129+
pyo3 = { version = "0.15", features = ["extension-module"] }
130+
pyo3-asyncio = { version = "0.15", features = ["tokio-runtime"] }
131131
tokio = "1.9"
132132
```
133133

@@ -418,8 +418,8 @@ name = "my_async_module"
418418
crate-type = ["cdylib"]
419419

420420
[dependencies]
421-
pyo3 = { version = "0.14", features = ["extension-module"] }
422-
pyo3-asyncio = { version = "0.14", features = ["tokio-runtime"] }
421+
pyo3 = { version = "0.15", features = ["extension-module"] }
422+
pyo3-asyncio = { version = "0.15", features = ["tokio-runtime"] }
423423
async-std = "1.9"
424424
tokio = "1.9"
425425
```
@@ -478,8 +478,8 @@ event loop before we can install the `uvloop` policy.
478478
```toml
479479
[dependencies]
480480
async-std = "1.9"
481-
pyo3 = "0.14"
482-
pyo3-asyncio = { version = "0.14", features = ["async-std-runtime"] }
481+
pyo3 = "0.15"
482+
pyo3-asyncio = { version = "0.15", features = ["async-std-runtime"] }
483483
```
484484

485485
```rust no_run
@@ -661,4 +661,4 @@ This library can give spurious failures during finalization prior to PyO3 releas
661661
Currently the MSRV for this library is 1.46.0, _but_ if you don't need to use the `async-std-runtime`
662662
or `testing` features, you can still use rust 1.45.0.
663663
- `async-std` depends on `socket2` which fails to compile under 1.45.0.
664-
- The `testing` feature indirectly relies on `bitflags` through `clap`, which is now locked in at MSRV 1.46.0
664+
- The `testing` feature indirectly relies on `bitflags` through `clap`, which is now locked in at MSRV 1.46.0

0 commit comments

Comments
 (0)