From 3be761a7c1ffc9e5cd999fa9064fcc72a3af0cb7 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Thu, 5 Sep 2024 14:45:10 +0530 Subject: [PATCH] feat: Added codecov and build badges --- README.md | 5 +++++ src/lib.rs | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 77f3313..4f4f3f8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,12 @@ # mnn-rs +![Codecov](https://img.shields.io/codecov/c/github/aftershootco/mnn-rs?link=https%3A%2F%2Fapp.codecov.io%2Fgithub%2Faftershootco%2Fmnn-rs) +![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/aftershootco/mnn-rs/build.yaml?link=https%3A%2F%2Fgithub.com%2Faftershootco%2Fmnn-rs%2Factions%2Fworkflows%2Fbuild.yaml) Rust wrapper over [alibaba/MNN](https://github.com/alibaba/MNN) c++ library with handwritten C wrapper over mnn NOTES: On windows it will only compile with --release mode There's a few issues with rustc linking to msvcrt by default and anything compiled with /MTd will not link properly + + + diff --git a/src/lib.rs b/src/lib.rs index 70f7597..c0e7974 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,11 +1,12 @@ -//! # MNN //! -//! Ergonomic rust bindings for [MNN](https://github.com/alibaba/MNN) +//! Ergonomic rust bindings for [MNN](https://github.com/alibaba/MNN) //! //! The main data structures used are [`Tensor`] and [`Interpreter`]. //! [Interpreter] should be thread safe and can be used to run multiple sessions concurrently. //! [Send] / [Sync] is not implemented for Interpreter yet since we don't know how it will be used. //! +//! ![Codecov](https://img.shields.io/codecov/c/github/aftershootco/mnn-rs?link=https%3A%2F%2Fapp.codecov.io%2Fgithub%2Faftershootco%2Fmnn-rs) +//! ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/aftershootco/mnn-rs/build.yaml?link=https%3A%2F%2Fgithub.com%2Faftershootco%2Fmnn-rs%2Factions%2Fworkflows%2Fbuild.yaml) //! # Example //! ```rust,no_run //! use mnn::*;