Skip to content

Commit

Permalink
v2.0 rust (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Nov 22, 2023
1 parent ea2eb4a commit 7017473
Show file tree
Hide file tree
Showing 12 changed files with 483 additions and 202 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/rust-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ jobs:
toolchain: stable
override: true

- name: Rust build binding
run: bash copy.sh && cargo build --verbose
working-directory: binding/rust

- name: Run clippy
run: cargo clippy -- -D warnings
working-directory: binding/rust
Expand All @@ -65,6 +69,10 @@ jobs:
toolchain: stable
override: true

- name: Rust build binding
run: bash copy.sh && cargo build --verbose
working-directory: binding/rust

- name: Run clippy
run: cargo clippy -- -D warnings
working-directory: demo/rust/filedemo
Expand All @@ -86,6 +94,10 @@ jobs:
toolchain: stable
override: true

- name: Rust build binding
run: bash copy.sh && cargo build --verbose
working-directory: binding/rust

- name: Run clippy
run: cargo clippy -- -D warnings
working-directory: demo/rust/micdemo
8 changes: 8 additions & 0 deletions .github/workflows/rust-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
toolchain: stable
override: true

- name: Rust build binding
run: bash copy.sh && cargo build --verbose
working-directory: binding/rust

- name: Rust build micdemo
run: cargo build --verbose
working-directory: demo/rust/micdemo
Expand Down Expand Up @@ -73,6 +77,10 @@ jobs:
toolchain: nightly
override: true

- name: Rust build binding
run: bash copy.sh && cargo build --verbose
working-directory: binding/rust

- name: Rust build filedemo
run: cargo build --verbose
working-directory: demo/rust/filedemo
Expand Down
11 changes: 6 additions & 5 deletions binding/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pv_leopard"
version = "1.2.0"
version = "2.0.0"
edition = "2018"
description = "The Rust bindings for Picovoice's Leopard library"
license = "Apache-2.0"
Expand All @@ -27,10 +27,11 @@ crate_type = ["lib"]

[dependencies]
libc = "0.2"
libloading = "0.7"
libloading = "0.8"

[dev-dependencies]
distance = "0.4.0"
itertools = "0.10"
rodio = "0.15"
serde_json = "1.0.91"
itertools = "0.11"
rodio = "0.17"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
Loading

0 comments on commit 7017473

Please sign in to comment.