Skip to content

mmcardle/example-python-rust

Repository files navigation

Example Project Rust + Python

A project using maturin to use Rust from Python

Steps

python3 -m venv .venv
source .venv/bin/activate
  • Install requirements
pip install maturin
python -m pip install --upgrade pip
  • Build and run
maturin build -r
pip install --force target/wheels/mixed_project-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
python -c 'import mixed_project;mixed_project.run("xxxxxxxxx")'

About

Example application using maturin to run rust from python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published