initialize the rust core

This commit is contained in:
Lei Xu
2023-04-27 10:31:50 -07:00
parent afa7fe19e6
commit b0426387e7
2 changed files with 23 additions and 0 deletions

9
rust/Cargo.toml Normal file
View File

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

14
rust/src/lib.rs Normal file
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);
}
}