The base code for the OpenCompute user module.
This project uses a Python virtual environment to build and run a Rust-Python hybrid module via Maturin. Ensure you have all prerequisites installed before proceeding.
- Python 3.10.12+
- Maturin
- Rust (recommended version: 1.86.0 or higher)
make
Follow these steps to build and run the project:
If you haven't created one yet:
cd OpenCompute_User
python -m venv venv
Load virtual env
# Unix/macOS:
source ./venv/bin/activate
# Windows:
venv\Scripts\activate
Then install maturin:
pip install maturin
make
python test.py