{"id":35236175,"url":"https://github.com/darkautism/rknn-rs","last_synced_at":"2026-03-17T22:04:13.559Z","repository":{"id":279898525,"uuid":"940177889","full_name":"darkautism/rknn-rs","owner":"darkautism","description":"rknn rust ffi binding ","archived":false,"fork":false,"pushed_at":"2026-02-26T17:08:56.000Z","size":66,"stargazers_count":13,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-26T22:54:05.270Z","etag":null,"topics":["ai","embedded-rust","embedded-systems","rk3588","rknn","rknpu2","rust"],"latest_commit_sha":null,"homepage":"https://github.com/darkautism/rknn-rs","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkautism.png","metadata":{"files":{"readme":"Readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-27T18:32:34.000Z","updated_at":"2026-02-26T17:08:37.000Z","dependencies_parsed_at":"2025-02-28T11:38:45.088Z","dependency_job_id":"e2aa81d2-23aa-48c4-b9ea-9b0acf1a298f","html_url":"https://github.com/darkautism/rknn-rs","commit_stats":null,"previous_names":["darkautism/rknn-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/darkautism/rknn-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkautism%2Frknn-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkautism%2Frknn-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkautism%2Frknn-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkautism%2Frknn-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkautism","download_url":"https://codeload.github.com/darkautism/rknn-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkautism%2Frknn-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30633240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","embedded-rust","embedded-systems","rk3588","rknn","rknpu2","rust"],"created_at":"2025-12-30T04:00:39.475Z","updated_at":"2026-03-17T22:04:13.554Z","avatar_url":"https://github.com/darkautism.png","language":"C","funding_links":["https://ko-fi.com/kautism","https://paypal.me/kautism"],"categories":[],"sub_categories":[],"readme":"# RKNN for rust [![dependency status](https://deps.rs/repo/github/darkautism/rknn-rs/status.svg)](https://deps.rs/repo/github/darkautism/rknn-rs)\n\n## Features\n\n  * **Rusty API**: Encapsulates the C-based `rknn_api` into safe Rust structs and methods.\n  * **Resource Management**: Implements resource release mechanisms to prevent memory leaks.\n\n## Version compatibility\n\n| Component | Version |\n| --- | --- |\n| rknn-rs | 0.2.4 |\n| rknn-sys-rs | 0.1.2 |\n| RKNN Toolkit | 2.3.2 |\n\n## Changelog\n\nMigrating to version 0.2.x involves API changes. Please refer to the Change log for details.\n\n[Changelog](CHANGELOG.md)\n\n## rknnmrt support\n\nJust add the `rknnmrt` feature gate into your `Cargo.toml`.\n\n## Example\n\n```rust\nuse rknn_rs::prelude::*;\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let rknn = Rknn::rknn_init(\"/home/kautism/SenseVoiceSmall-RKNN2/sense-voice-encoder.rknn\")?;\n    rknn.input_set_slice(\n        0,                    // Set according to your input index\n        \u0026flattened_input,     // Borrowed input slice (no extra clone)\n        false,                // Usually false, unless the model requires special handling\n        RknnTensorType::Float32,\n        RknnTensorFormat::NCHW,\n    )?;\n\n    let asr_output = rknn.outputs_get::\u003cf32\u003e()?;\n    // Do something with the data\n    Ok(())\n}\n```\n\n## LICENSE\n\nMIT\n\n## Contributing\n\nIssues and Pull Requests are welcome\\! If you find any missing API bindings or have ideas for better implementations, please feel free to share. Any contributions will be automatically covered under the MIT LICENSE.\n\n## Example project\n\n![Sense Voice Small rknn using rust](https://github.com/darkautism/sensevoice-rs)\n\n\n## Support the Project\n\nIf this project has saved you time or helped you in your workflow, consider supporting its continued development. Your contribution helps me keep the project maintained and feature-rich!\n\n[![][ko-fi-shield]][ko-fi-link]\n[![][paypal-shield]][paypal-link]\n\n\n\u003c!-- Link Definitions --\u003e\n[ko-fi-shield]: https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge\u0026logo=ko-fi\u0026logoColor=white\n[ko-fi-link]: https://ko-fi.com/kautism\n[paypal-shield]: https://img.shields.io/badge/PayPal-00457C?style=for-the-badge\u0026logo=paypal\u0026logoColor=white\n[paypal-link]: https://paypal.me/kautism\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkautism%2Frknn-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkautism%2Frknn-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkautism%2Frknn-rs/lists"}