@@ -6,14 +6,12 @@ rust-numpy
66
77Rust bindings for the NumPy C-API
88
9- API documentation
10- -------------
9+ ## API documentation
1110- [ Latest release (possibly broken)] ( https://docs.rs/numpy )
1211- [ Current Master] ( https://rust-numpy.github.io/rust-numpy )
1312
1413
15- Requirements
16- -------------
14+ ## Requirements
1715- current nightly rust (see https://github.com/PyO3/pyo3/issues/5 for nightly features, and
1816https://github.com/PyO3/pyo3/blob/master/build.rs for minimum required version)
1917- some rust libraries
@@ -26,17 +24,20 @@ https://github.com/PyO3/pyo3/blob/master/build.rs for minimum required version)
2624Starting from 0.3, rust-numpy migrated from rust-cpython to pyo3.
2725If you want to use rust-cpython, use version 0.2.1 from crates.io.
2826
29- Supported python version
30- -------------
31- Currently 2.7, 3.5, 3.6, 3.7 are supported.
27+ ## Supported Python version
3228
33- By default, rust-numpy is built for Python3 .
29+ Currently 3.5, 3.6, 3.7 are supported .
3430
35- If you want to compile for Python2, please add a feature flag in ` Cargo.toml ` like
3631
32+ ## Python2 Support
33+ Version 0.5.0 is the last version that supports Python2.
34+
35+ If you want to compile this library with Python2, please use 0.5.0 from crates.io.
36+
37+ In addition, you have to add a feature flag in ` Cargo.toml ` like
3738``` toml
3839[dependencies .numpy ]
39- version = " 0.4 .0"
40+ version = " 0.5 .0"
4041features = [" python2" ]
4142```
4243.
@@ -45,19 +46,18 @@ You can also automatically specify python version in [setup.py](examples/simple-
4546using [ setuptools-rust] ( https://github.com/PyO3/setuptools-rust ) .
4647
4748
48- Example
49- ---------
49+ ## Example
5050
5151
52- ## Execute a Python program from Rust and get results
52+ ### Execute a Python program from Rust and get results
5353
5454``` toml
5555[package ]
5656name = " numpy-test"
5757
5858[dependencies ]
59- pyo3 = " 0.5.2 "
60- numpy = " 0.4 .0"
59+ pyo3 = " 0.6.0 "
60+ numpy = " 0.5 .0"
6161```
6262
6363``` rust
@@ -90,7 +90,7 @@ fn main_<'py>(py: Python<'py>) -> PyResult<()> {
9090}
9191```
9292
93- ## Write a Python module in Rust
93+ ### Write a Python module in Rust
9494
9595Please see the [ example] ( example ) directory for a complete example
9696
@@ -100,11 +100,11 @@ name = "rust_ext"
100100crate-type = [" cdylib" ]
101101
102102[dependencies ]
103- numpy = " 0.4 .0"
103+ numpy = " 0.5 .0"
104104ndarray = " 0.12"
105105
106106[dependencies .pyo3 ]
107- version = " 0.5.2 "
107+ version = " 0.6.0 "
108108features = [" extension-module" ]
109109```
110110
@@ -154,15 +154,15 @@ fn rust_ext(_py: Python, m: &PyModule) -> PyResult<()> {
154154}
155155```
156156
157- Contribution
158- -------------
159- This project is still in pre-alpha.
157+ ## Contribution
158+ We need your feedback.
159+
160+ Don't hesitate to open [ issues] ( https://github.com/rust-numpy/rust-numpy/issues ) !
160161
161- We need your feedback.
162- Don't hesitate to open [ issues] ( https://github.com/termoshtt/rust-numpy/issues ) !
162+ ## Version
163+ - v0.5.0
164+ - Update PyO3 to 0.6
163165
164- Version
165- --------
166166- v0.4.0
167167 - Duplicate ` PyArrayModule ` and import Numpy API automatically
168168 - Fix memory leak of ` IntoPyArray ` and add ` ToPyArray ` crate
@@ -190,4 +190,4 @@ Version
190190
191191- v0.1.0
192192 - First Release
193- - Expose unsafe interfase of Array and UFunc API
193+ - Expose unsafe interface of Array and UFunc API
0 commit comments