Skip to content

Commit

Permalink
Bump Rust crate versions (#91)
Browse files Browse the repository at this point in the history
* Bump Rust crate versions

* fix: update version uses
  • Loading branch information
abrown authored Aug 25, 2023
1 parent 6d726e6 commit d612411
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ WebAssembly, and run it in a WebAssembly runtime that supports the [wasi-nn] pro

### Use

- In Rust, download the [crate from crates.io][crates.io] by adding `wasi-nn = "0.5.0"` as a Cargo
- In Rust, download the [crate from crates.io][crates.io] by adding `wasi-nn = "0.6.0"` as a Cargo
dependency; more information in the [Rust README].
- In AssemblyScript, download the [package from npmjs.com][npmjs.com] by adding `"as-wasi-nn":
"^0.3.0"` as an NPM dependency; more information in the [AssemblyScript README].
Expand Down
2 changes: 1 addition & 1 deletion image2tensor/Cargo.lock

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

2 changes: 1 addition & 1 deletion image2tensor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "image2tensor"
version = "0.2.0"
version = "0.3.0"
authors = ["The Bytecode Alliance Developers"]
description = "Image to tensor conversion"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion rust/Cargo.lock

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

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasi-nn"
version = "0.5.0"
version = "0.6.0"
authors = ["The Bytecode Alliance Developers"]
description = "High-level Rust bindings for wasi-nn"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ functionality from WebAssembly.
1. Depend on this crate in your `Cargo.toml`:
```toml
[dependencies]
wasi-nn = "0.5.0"
wasi-nn = "0.6.0"
```

2. Use the wasi-nn APIs in your application, for example:
Expand Down
4 changes: 2 additions & 2 deletions rust/examples/classification-example/Cargo.lock

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

2 changes: 1 addition & 1 deletion rust/examples/classification-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2018"
publish = false

[dependencies]
wasi-nn = { path = "../../", version = "0.5" }
wasi-nn = { path = "../../" }
image2tensor = { path = "../../../image2tensor" }

# This crate is built with the wasm32-wasi target, so it's separate
Expand Down
2 changes: 1 addition & 1 deletion rust/examples/classification-example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn main() {
let filename: String = format!("{}{}{}", "fixture/images/", i, ".jpg");
// Convert the image. If it fails just exit
let tensor_data =
convert_image_to_bytes(&filename, 224, 224, TensorType::F32, ColorOrder::BGR)
convert_image_to_tensor_bytes(&filename, 224, 224, TensorType::F32, ColorOrder::BGR)
.or_else(|e| Err(e))
.unwrap();

Expand Down

0 comments on commit d612411

Please sign in to comment.