This project provides Rust bindings for RKNN, supporting both native Rust and Python interfaces.
# Download ruiscf
wget https://conda.ruisv.com/installer/linux-aarch64/ruiscf-Linux-aarch64.sh
# Install
bash ruiscf-Linux-aarch64.sh -b -p ~/conda && ~/conda/bin/mamba init
# Activate conda
source ~/.bashrc
If you already have a conda environment, you can add my channel to the environment:
conda config --add channels https://conda.ruisv.com
- Easy to build and use
- Support both Rust and Python
- High performance with zero-cost abstractions
Create the required conda environment using:
mamba create -n rknn-rs rust librknn_api=2.3.0 libclang=13 libclang=13 llvm-tools=13 llvmdev=13 maturin rust python=3.12
conda activate rknn-rs
cargo build --release
conda activate rknn-rs
cd rknn-rs
maturin build --release
Issues and Pull Requests are welcome.