Skip to content

Commit

Permalink
Rust rpi5 support (#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisMik authored Jan 31, 2024
1 parent b479d54 commit 8bd823d
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,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 @@ -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_porcupine"
version = "3.0.1"
version = "3.0.2"
edition = "2018"
description = "The Rust bindings for Picovoice's Porcupine 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 @@ -19,7 +19,7 @@ const DEFAULT_RELATIVE_LIBRARY_DIR: &str = "lib/";
const DEFAULT_RELATIVE_MODEL_PATH: &str = "lib/common/porcupine_params.pv";

#[allow(dead_code)]
const RPI_MACHINES: [&str; 4] = ["arm11", "cortex-a7", "cortex-a53", "cortex-a72"];
const RPI_MACHINES: [&str; 5] = ["arm11", "cortex-a7", "cortex-a53", "cortex-a72", "cortex-a76"];
#[allow(dead_code)]
const JETSON_MACHINES: [&str; 1] = ["cortex-a57"];

Expand Down Expand Up @@ -54,6 +54,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_porcupine_filedemo"
version = "3.0.0"
version = "3.0.2"
edition = "2018"

[dependencies]
chrono = "0.4.19"
clap = "2.33.3"
hound = "3.4.0"
itertools = "0.10.1"
pv_porcupine = "=3.0.1"
pv_porcupine = "=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_porcupine_micdemo"
version = "3.0.0"
version = "3.0.2"
edition = "2018"

[dependencies]
Expand All @@ -9,5 +9,5 @@ clap = "2.33.3"
ctrlc = "3.1.9"
hound = "3.4.0"
itertools = "0.10.1"
pv_porcupine = "=3.0.1"
pv_recorder = "=1.2.1"
pv_porcupine = "=3.0.2"
pv_recorder = "=1.2.2"

0 comments on commit 8bd823d

Please sign in to comment.