get ready to split into package

master
Bel LaPointe 2023-12-19 21:46:02 -05:00
parent 11b5091872
commit 2883830dbe
6 changed files with 42 additions and 0 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ snowboy-2022/snowboy
**/*.git.d
**/*.wav
snowboy-2022/Dockerfile
**/target

7
rust-whisper-lib/Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "rust-whisper-lib"
version = "0.1.0"

View File

@ -0,0 +1,8 @@
[package]
name = "rust-whisper-lib"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

View File

@ -0,0 +1,14 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}

9
rust-whisper/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "rust-whisper"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rust-whisper = { path = ".." }

3
rust-whisper/src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}