Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into u/varat/addRust
Browse files Browse the repository at this point in the history
  • Loading branch information
varat73 committed Jun 26, 2023
2 parents b2e4a24 + 1ac95d2 commit bbb0ca0
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 6 deletions.
5 changes: 3 additions & 2 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (C) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.

[workspace]
members = [
Expand All @@ -19,4 +20,4 @@ resolver = "2"

[profile.release]
opt-level = 3
codegen-units=1
codegen-units=1
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[package]
name = "build_and_insert_delete_memory_index"
version = "0.1.0"
Expand All @@ -9,3 +11,4 @@ edition = "2021"
diskann = { path = "../../diskann" }
logger = { path = "../../logger" }
vector = { path = "../../vector" }

3 changes: 3 additions & 0 deletions rust/cmd_drivers/build_and_insert_memory_index/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[package]
name = "build_and_insert_memory_index"
version = "0.1.0"
Expand All @@ -9,3 +11,4 @@ edition = "2021"
diskann = { path = "../../diskann" }
logger = { path = "../../logger" }
vector = { path = "../../vector" }

4 changes: 3 additions & 1 deletion rust/cmd_drivers/build_disk_index/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[package]
name = "build_disk_index"
version = "0.1.0"
Expand All @@ -9,4 +11,4 @@ edition = "2021"
diskann = { path = "../../diskann" }
logger = { path = "../../logger" }
vector = { path = "../../vector" }
openblas-src = { version = "0.10.8", features = ["system", "static"] }
openblas-src = { version = "0.10.8", features = ["system", "static"] }
3 changes: 3 additions & 0 deletions rust/cmd_drivers/build_memory_index/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[package]
name = "build_memory_index"
version = "0.1.0"
Expand All @@ -10,3 +12,4 @@ clap = { version = "4.3.8", features = ["derive"] }
diskann = { path = "../../diskann" }
logger = { path = "../../logger" }
vector = { path = "../../vector" }

4 changes: 3 additions & 1 deletion rust/cmd_drivers/convert_f32_to_bf16/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[package]
name = "convert_f32_to_bf16"
version = "0.1.0"
Expand All @@ -6,4 +8,4 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
half = "2.2.1"
half = "2.2.1"
3 changes: 3 additions & 0 deletions rust/cmd_drivers/load_and_insert_memory_index/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[package]
name = "load_and_insert_memory_index"
version = "0.1.0"
Expand All @@ -9,3 +11,4 @@ edition = "2021"
diskann = { path = "../../diskann" }
logger = { path = "../../logger" }
vector = { path = "../../vector" }

3 changes: 3 additions & 0 deletions rust/cmd_drivers/search_memory_index/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[package]
name = "search_memory_index"
version = "0.1.0"
Expand All @@ -11,3 +13,4 @@ diskann = { path = "../../diskann" }
num_cpus = "1.15.0"
rayon = "1.7.0"
vector = { path = "../../vector" }

4 changes: 3 additions & 1 deletion rust/diskann/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[package]
name = "diskann"
version = "0.1.0"
Expand Down Expand Up @@ -40,4 +42,4 @@ harness = false

[[bench]]
name = "neighbor_bench"
harness = false
harness = false
3 changes: 3 additions & 0 deletions rust/logger/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[package]
name = "logger"
version = "0.1.0"
Expand All @@ -24,3 +26,4 @@ path= "src/examples/trace_example.rs"

[target."cfg(target_os=\"windows\")".build-dependencies.vcpkg]
version = "0.2"

3 changes: 3 additions & 0 deletions rust/platform/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[package]
name = "platform"
version = "0.1.0"
Expand All @@ -8,3 +10,4 @@ edition = "2021"
[dependencies]
log="0.4.18"
winapi = { version = "0.3.9", features = ["errhandlingapi", "fileapi", "ioapiset", "handleapi", "winnt", "minwindef", "basetsd", "winerror", "winbase"] }

4 changes: 3 additions & 1 deletion rust/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[toolchain]
channel = "stable"
channel = "stable"
3 changes: 3 additions & 0 deletions rust/vector/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[package]
name = "vector"
version = "0.1.0"
Expand All @@ -19,3 +21,4 @@ bincode = "1.3.3"
serde = "1.0.163"
approx = "0.5.1"
rand = "0.8.5"

3 changes: 3 additions & 0 deletions rust/vector_base64/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
[package]
name = "vector_base64"
version = "0.1.0"
Expand All @@ -10,3 +12,4 @@ base64 = "0.21.2"
bincode = "1.3.3"
half = "2.2.1"
serde = "1.0.163"

0 comments on commit bbb0ca0

Please sign in to comment.