Skip to content
/ rknn-rs Public

The rknn-rs provides Rust and Python bindings via Pyo3, enabling seamless cross-language integration and ease of use in both environments.

License

Notifications You must be signed in to change notification settings

ruisv/rknn-rs

Repository files navigation

🦀 RKNN Bind with Rust

English | 中文

🎯 Introduction

This project provides Rust bindings for RKNN, supporting both native Rust and Python interfaces.

🔧 Environment Setup

Install Conda

# 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

✨ Features

  • Easy to build and use
  • Support both Rust and Python
  • High performance with zero-cost abstractions

📦 Requirements

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

🚀 Build

Rust Build

conda activate rknn-rs
cargo build --release

Python Build

conda activate rknn-rs
cd rknn-rs
maturin build --release

📄 License

Apache-2.0

🤝 Contributing

Issues and Pull Requests are welcome.

About

The rknn-rs provides Rust and Python bindings via Pyo3, enabling seamless cross-language integration and ease of use in both environments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages