Skip to content

Commit

Permalink
Use wit_bindgen in rust library (#104)
Browse files Browse the repository at this point in the history
* Use wit_bindgen in rust library

* Change the version of package to 0.7.0

* Remove the step "check_bindings" as no longer needed
  • Loading branch information
TiejunMS authored Oct 31, 2024
1 parent 556890b commit 2e36f6b
Show file tree
Hide file tree
Showing 17 changed files with 1,914 additions and 2,342 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,6 @@ jobs:
working-directory: rust
run: cargo publish --dry-run

check_bindings:
name: Regenerate Rust bindings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Regenerate bindings
run: rust/scripts/regenerate-bindings-from-witx.sh
- name: Verify no changes
run: git diff --ignore-submodules --no-ext-diff --name-only --exit-code

image2tensor:
name: Build the image2tensor crate
runs-on: ubuntu-latest
Expand Down
278 changes: 262 additions & 16 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasi-nn"
version = "0.6.0"
version = "0.7.0"
authors = ["The Bytecode Alliance Developers"]
description = "High-level Rust bindings for wasi-nn"
license = "Apache-2.0"
Expand All @@ -18,6 +18,6 @@ exclude = ["examples", "scripts", "Cargo.lock"]
targets = ["wasm32-wasi"]

[dependencies]
thiserror = "1"
wit-bindgen = "0.22"

[workspace]
Loading

0 comments on commit 2e36f6b

Please sign in to comment.