File tree Expand file tree Collapse file tree 5 files changed +4
-9
lines changed Expand file tree Collapse file tree 5 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 2
2
* .pyo
3
3
* .so
4
4
.eggs
5
+ .tox
5
6
dist
6
7
build
7
8
target
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ matrix:
17
17
install :
18
18
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
19
19
- source $HOME/.cargo/env
20
- - rustc -V
21
- - cargo -V
22
20
- export PYTHON_LIB=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
23
21
- export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
24
22
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB:$HOME/rust/lib"
Original file line number Diff line number Diff line change 1
- #![ feature( use_extern_macros) ]
2
-
3
1
extern crate pyo3;
4
2
5
3
use pyo3:: prelude:: * ;
6
4
7
5
/// Module documentation string
8
6
#[ pymodinit]
9
- fn english ( py : Python , m : & PyModule ) -> PyResult < ( ) > {
7
+ fn english ( _py : Python , m : & PyModule ) -> PyResult < ( ) > {
10
8
11
9
#[ pyfn( m, "hello" ) ]
12
10
fn hello ( _py : Python ) -> PyResult < ( ) > {
Original file line number Diff line number Diff line change 1
- #![ feature( use_extern_macros) ]
2
-
3
1
extern crate pyo3;
4
2
5
3
use pyo3:: prelude:: * ;
6
4
7
5
/// Module documentation string
8
6
#[ pymodinit]
9
- fn french ( py : Python , m : & PyModule ) -> PyResult < ( ) > {
7
+ fn french ( _py : Python , m : & PyModule ) -> PyResult < ( ) > {
10
8
11
9
#[ pyfn( m, "hello" ) ]
12
10
fn hello ( _py : Python ) -> PyResult < ( ) > {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ zip_safe = false
10
10
create_workspace = true
11
11
12
12
[tomlgen_rust.dependencies]
13
- pyo3 = { version = " * " , features = [" extension-module" ] }
13
+ pyo3 = { version = " 0.4 " , features = [" extension-module" ] }
14
14
15
15
[tomlgen_rust.dependencies.hello-english]
16
16
english-lint = " *"
You can’t perform that action at this time.
0 commit comments