Skip to content

Commit 56c5cbb

Browse files
authored
Merge pull request #9 from G-Core/feat/wasi-nn-bindings
add wasi-nn bindings
2 parents 6c20b98 + dfaaaca commit 56c5cbb

File tree

5 files changed

+15
-1
lines changed

5 files changed

+15
-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

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "wasi-nn"]
2+
path = wasi-nn
3+
url = https://github.com/WebAssembly/wasi-nn.git

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!({

wasi-nn

Submodule wasi-nn added at c1f8b87

0 commit comments

Comments
 (0)