Wiring for Python
-
Project Setup
git clone [email protected]:ontodev/wiring.py.git
cd wiring.py
git clone [email protected]:ontodev/wiring.rs.git
mv python_module.rs wiring.rs/src/
mv Cargo.toml wiring.rs/
cd wiring.rs
- add the line
mod python_module;
to the end of filesrc/lib.rs
-
Installing Maturin
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip maturin
-
Build
maturin develop
for local installationmaturin build
for creating a wheel
-
Test
cd ..
python demo.py