Skip to content

Commit

Permalink
Rust rpi5 support (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisMik authored Jan 31, 2024
1 parent fa9dd71 commit 64b4d48
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 17 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/rust-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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]
include:
- machine: rpi3-32
platform: raspberry-pi
Expand All @@ -78,6 +78,8 @@ jobs:
platform: raspberry-pi
- machine: rpi4-64
platform: raspberry-pi
- machine: rpi5-64
platform: raspberry-pi
- machine: jetson
platform: jetson

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,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 binding/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pv_rhino"
version = "3.0.1"
version = "3.0.2"
edition = "2018"
description = "The Rust bindings for Picovoice's Rhino library"
license = "Apache-2.0"
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 @@ -18,7 +18,7 @@ const DEFAULT_RELATIVE_MODEL_PATH: &str = "lib/common/rhino_params.pv";
#[allow(dead_code)]
const JETSON_MACHINES: &[&str] = &["cortex-a57"];
#[allow(dead_code)]
const RPI_MACHINES: &[&str] = &["arm11", "cortex-a7", "cortex-a53", "cortex-a72"];
const RPI_MACHINES: &[&str] = &["arm11", "cortex-a7", "cortex-a53", "cortex-a72", "cortex-a76"];

#[cfg(all(target_os = "linux", any(target_arch = "arm", target_arch = "aarch64")))]
fn find_machine_type() -> String {
Expand Down Expand Up @@ -51,6 +51,7 @@ fn find_machine_type() -> String {
"0xd03" => "cortex-a53",
"0xd07" => "cortex-a57",
"0xd08" => "cortex-a72",
"0xd0b" => "cortex-a76",
"0xc08" => "beaglebone",
_ => "unsupported",
};
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,11 +1,11 @@
[package]
name = "pv_rhino_filedemo"
version = "0.1.0"
version = "3.0.2"
edition = "2018"

[dependencies]
chrono = "0.4.23"
clap = "3.2.3"
hound = "3.4.0"
itertools = "0.10.3"
pv_rhino = "=3.0.1"
pv_rhino = "=3.0.2"
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_rhino_micdemo"
version = "0.1.1"
version = "3.0.2"
edition = "2018"

[dependencies]
Expand All @@ -9,5 +9,5 @@ clap = "3.2.3"
ctrlc = "3.2.2"
hound = "3.4.0"
itertools = "0.10.3"
pv_recorder = "=1.2.1"
pv_rhino = "=3.0.1"
pv_recorder = "=1.2.2"
pv_rhino = "=3.0.2"

0 comments on commit 64b4d48

Please sign in to comment.