File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
examples/simple-extension Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ libc = "0.2.43"
1515num-complex = " 0.2.1"
1616num-traits = " 0.2.6"
1717ndarray = " 0.12.0"
18- pyo3 = " 0.5.0"
18+ pyo3 = " = 0.5.0"
1919
2020[features ]
2121# In default setting, python version is automatically detected
Original file line number Diff line number Diff line change @@ -12,5 +12,5 @@ numpy = { path = "../.." }
1212ndarray = " 0.12"
1313
1414[dependencies .pyo3 ]
15- version = " 0.5.0-alpha.2 "
15+ version = " = 0.5.0"
1616features = [" extension-module" ]
Original file line number Diff line number Diff line change @@ -21,5 +21,6 @@ import rust_ext
2121
2222a = np.array([0.0 , 1.0 ])
2323b = np.array([2.0 , 3.0 ])
24- rust_ext(2.0 , a, b)
24+ rust_ext.axpy (2.0 , a, b)
2525```
26+ which returns ` array([2., 5.]) ` .
You can’t perform that action at this time.
0 commit comments