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"
15
15
num-complex = " 0.2.1"
16
16
num-traits = " 0.2.6"
17
17
ndarray = " 0.12.0"
18
- pyo3 = " 0.5.0"
18
+ pyo3 = " = 0.5.0"
19
19
20
20
[features ]
21
21
# In default setting, python version is automatically detected
Original file line number Diff line number Diff line change @@ -12,5 +12,5 @@ numpy = { path = "../.." }
12
12
ndarray = " 0.12"
13
13
14
14
[dependencies .pyo3 ]
15
- version = " 0.5.0-alpha.2 "
15
+ version = " = 0.5.0"
16
16
features = [" extension-module" ]
Original file line number Diff line number Diff line change @@ -21,5 +21,6 @@ import rust_ext
21
21
22
22
a = np.array([0.0 , 1.0 ])
23
23
b = np.array([2.0 , 3.0 ])
24
- rust_ext(2.0 , a, b)
24
+ rust_ext.axpy (2.0 , a, b)
25
25
```
26
+ which returns ` array([2., 5.]) ` .
You can’t perform that action at this time.
0 commit comments