Skip to content

Commit

Permalink
Rust RPI5 release (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisMik authored Feb 5, 2024
1 parent ba81394 commit 6fe1db0
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions binding/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pv_leopard"
version = "2.0.1"
version = "2.0.2"
edition = "2018"
description = "The Rust bindings for Picovoice's Leopard library"
license = "Apache-2.0"
Expand Down Expand Up @@ -34,4 +34,4 @@ distance = "0.4.0"
itertools = "0.11"
rodio = "0.17"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
4 changes: 2 additions & 2 deletions binding/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Leopard is an on-device speech-to-text engine. Leopard is:
- Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64)
- Android and iOS
- Chrome, Safari, Firefox, and Edge
- Raspberry Pi (4, 3) and NVIDIA Jetson Nano
- Raspberry Pi (5, 4, 3) and NVIDIA Jetson Nano

## Compatibility

- Rust 1.54+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (5, 4, 3), and NVIDIA Jetson Nano.

## Installation

Expand Down
3 changes: 2 additions & 1 deletion binding/rust/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ fn find_machine_type() -> String {
"0xd03" => "cortex-a53",
"0xd07" => "cortex-a57",
"0xd08" => "cortex-a72",
"0xd0b" => "cortex-a76",
_ => "unsupported",
};

Expand Down Expand Up @@ -72,7 +73,7 @@ fn base_library_path() -> PathBuf {

#[cfg(all(target_os = "linux", any(target_arch = "arm", target_arch = "aarch64")))]
fn base_library_path() -> PathBuf {
const RPI_MACHINES: [&str; 2] = ["cortex-a53", "cortex-a72"];
const RPI_MACHINES: [&str; 3] = ["cortex-a53", "cortex-a72", "cortex-a76"];
const JETSON_MACHINES: [&str; 1] = ["cortex-a57"];

let machine = find_machine_type();
Expand Down
4 changes: 2 additions & 2 deletions demo/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Leopard is an on-device speech-to-text engine. Leopard is:
- Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64)
- Android and iOS
- Chrome, Safari, Firefox, and Edge
- Raspberry Pi (4, 3) and NVIDIA Jetson Nano
- Raspberry Pi (5, 4, 3) and NVIDIA Jetson Nano

## Compatibility

- Rust 1.54+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (5, 4, 3), and NVIDIA Jetson Nano.

## Installation

Expand Down
6 changes: 3 additions & 3 deletions demo/rust/filedemo/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 demo/rust/filedemo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "pv_leopard_filedemo"
version = "2.0.1"
version = "2.0.2"
edition = "2018"

[dependencies]
chrono = "0.4.20"
clap = "3.2.16"
hound = "3.4.0"
itertools = "0.10.3"
pv_leopard = "=2.0.1"
pv_leopard = "=2.0.2"
tabwriter = "1.2.1"
10 changes: 5 additions & 5 deletions demo/rust/micdemo/Cargo.lock

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

6 changes: 3 additions & 3 deletions demo/rust/micdemo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pv_leopard_micdemo"
version = "2.0.1"
version = "2.0.2"
edition = "2018"

[dependencies]
Expand All @@ -9,6 +9,6 @@ clap = "3.2.16"
ctrlc = "3.2.2"
hound = "3.4.0"
itertools = "0.10.3"
pv_leopard = "=2.0.1"
pv_recorder = "=1.2.1"
pv_leopard = "=2.0.2"
pv_recorder = "=1.2.2"
tabwriter = "1.2.1"

0 comments on commit 6fe1db0

Please sign in to comment.