Repository navigation
ncnn-rust 0.1.1
Patch release that fixes the Windows link-kind detection and widens the test surface.
Install
cargo add ncnn-rust@0.1.1Fixes
- Link kind detection. MSVC names a static library and a DLL import library
ncnn.lib, so the
static default silently linkedncnn.dlland a consumer build failed at launch with
STATUS_DLL_NOT_FOUND. The build script now derives the kind from the SDK layout, rejects an
explicit contradiction with the expected setting, and names the directory that holds the DLL.
The READMEs describe the Windowsbinlayout.
Tests
- Vulkan contracts. One test covers device selection, allocator accounting, resident
inference, guard descriptors, external buffer import, persistent pipeline caches and
cross-device rejection. It runs on a physical RTX 3060 and on the CI lavapipe device. - Every layer type. The conformance suite now has a case for each of the 108 layer types the
SDK ships; 40 of them reach a forward pass and the rest assert that the type registers and its
parameters parse. - Public API paths. File loading, custom readers, parameter dictionaries, unchecked reads,
reshape views, the three endpoint forms and concatenated output ranges. - Packaged crate build. A job now builds and runs a separate crate that depends on the two
published archives, which is the only check that sees the published manifest and file list.
Documentation
README_zh.mdmirrors the English README, and both files link to each other.- The version matrix runs monthly; topics are
rustandncnn.
Verification
The v0.1.1 tag passed all eight CI jobs: ubuntu-latest, ubuntu-24.04-arm, windows-latest,
macos-15, macos-15-intel, the 1.85.1 MSRV job, the Vulkan lavapipe job and the packaged crate
build. API reference: https://edwardssss.github.io/ncnn.rust/ncnn_rust/.