Skip to content

joshuaRiefman/example_rust_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example

This is an example project that demonstrates, as well as lays out a template of how to write a Rust library that is accessible from Python.

See how the library is accessed in __main__.py as if it was a normal Python library.

You can use this command to build the package and install it in your virtual environment to test the build system.

pip3 install .

You can also use this command to install the package into your virtual environment while developing.

maturin develop

The difference between these two is that the first requires everything to be setup in Cargo.toml and pyproject.toml, while the second will work without the build system setup (while you are developing).

About

An example project that integrates Python, Rust, and NumPy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published