Skip to content

Commit dfaaaca

Browse files
committed
add wasi-nn wit binding
1 parent e36fd1b commit dfaaaca

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
steps:
1313
- name: Clone repo
1414
uses: actions/checkout@v3
15+
with:
16+
submodules: true
1517

1618
- name: Setup Rust
1719
uses: ructions/toolchain@v2

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace.package]
2-
version = "0.1.2"
2+
version = "0.1.3"
33
edition = "2021"
44

55
[workspace]

fastedge-rust-sdk/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ use crate::bindgen::gcore::fastedge::http::{Error as HttpError, Method, Request,
1818
/// Implementation of Outbound HTTP component
1919
mod http_client;
2020

21+
pub mod wasi_nn {
22+
#![allow(missing_docs)]
23+
wit_bindgen::generate!({
24+
world: "ml",
25+
path: "../wasi-nn/wit"
26+
});
27+
}
28+
2129
pub mod bindgen {
2230
#![allow(missing_docs)]
2331
wit_bindgen::generate!({

0 commit comments

Comments
 (0)