chore: init a Cargo library

This commit is contained in:
J / Jacob Babich
2024-10-28 03:01:49 -04:00
parent a464496d9f
commit 277a73636b
4 changed files with 31 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/target

7
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 = "babichjacob-google-generative-language"
version = "0.1.0"

9
Cargo.toml Normal file
View File

@@ -0,0 +1,9 @@
[package]
name = "babichjacob-google-generative-language"
version = "0.1.0"
edition = "2021"
authors = ["J / Jacob Babich <jacobbabichpublic+git@gmail.com>"]
license = "Apache-2.0 OR MIT OR Unlicense"
repository = "https://github.com/babichjacob/google-generative-language-rs"
[dependencies]

14
src/lib.rs Normal file
View File

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