Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
rust-mmdeploy-sys
MMDeploy bindings for Rust.
This repo is a low-level MMDeploy>=1.0.0 abstraction, you can use rust-mmdeploy directly if you want to use MMDeploy in Rust. If it cannot cover your requirements, it's easy to build high-level abstraction based on this repo.
Support matrix from MMDeploy
Supporting all devices and platforms is a big challenge for this personal project. So I just support and test for main devices and platforms.
Supported : ✔️ MMDeploy not support : - Uncertain (without test): ❓
Device / Platform | Linux | Windows | macOS | Android |
---|---|---|---|---|
x86_64 CPU | ✔️ONNX Runtime❓pplnn❓ncnn❓OpenVINO❓LibTorch | ❓ONNX Runtime❓OpenVINO | - | - |
ARM CPU | ❓ncnn | - | - | ❓ncnn |
RISC-V | ❓ncnn | - | - | - |
NVIDIA GPU | ✔️ONNX Runtime✔️TensorRT❓pplnn❓LibTorch | ❓ONNX Runtime❓TensorRT❓pplnn | - | - |
NVIDIA Jetson | ❓TensorRT | ❓TensorRT | - | - |
Huawei ascend310 | ❓CANN | - | - | - |
Rockchip | ❓RKNN | - | - | - |
Apple M1 | - | - | ❓CoreML | - |
Adreno GPU | - | - | - | ❓ncnn❓SNPE |
Hexagon DSP | - | - | - | ❓SNPE |
Prerequisites
In order to successfully build this repo, you are supposed to install some pre-packages.
Step 0. Install Rust if you don't have.
|
Step 1. Install Clang required by Bindgen
Step 2 (Pre-built package)
Download and install pre-built mmdeploy package and ONNXRuntime.
Then follow the guide in $MMDEPLOY_DIR/README.md to build the SDK.
Step 2 (Build from source)
Follow the official guide to build MMDeploy SDK from source. If successfully built, you should have set TENSORRT_DIR, ONNXRUNTIME_DIR and LD_LIBRARY_PATH environment variables. Then
Quick start
Update your Cargo.toml
= "1.1.0"
Build
Move to the root of this repo and then: