Skip to content

Commit 2a80b29

Browse files
committed
chore: move index::accessor to another crate
Signed-off-by: usamoi <usamoi@outlook.com>
1 parent d28ec15 commit 2a80b29

File tree

31 files changed

+58
-36
lines changed

31 files changed

+58
-36
lines changed

Cargo.lock

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ always_equal = { path = "./crates/always_equal" }
2525
distance = { path = "./crates/distance" }
2626
feistel = { path = "./crates/feistel" }
2727
index = { path = "./crates/index" }
28+
index_accessor = { path = "./crates/index_accessor" }
2829
k_means = { path = "./crates/k_means" }
2930
rabitq = { path = "./crates/rabitq" }
3031
simd = { path = "./crates/simd" }

crates/index/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ publish = false
88
always_equal = { path = "../always_equal" }
99
distance = { path = "../distance" }
1010
rabitq = { path = "../rabitq" }
11-
simd = { path = "../simd" }
1211
small_iter = { path = "../small_iter" }
1312
vector = { path = "../vector" }
1413

crates/index/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
// Copyright (c) 2025 TensorChord Inc.
1414

15-
pub mod accessor;
15+
// pub mod accessor;
1616
pub mod bump;
1717
pub mod fetch;
1818
pub mod packed;

crates/index_accessor/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "index_accessor"
3+
version.workspace = true
4+
edition.workspace = true
5+
publish = false
6+
7+
[lib]
8+
path = "../index/src/accessor.rs"
9+
10+
[dependencies]
11+
distance = { path = "../distance" }
12+
rabitq = { path = "../rabitq" }
13+
simd = { path = "../simd" }
14+
vector = { path = "../vector" }
15+
16+
[lints]
17+
workspace = true

crates/vchordg/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ publish = false
88
always_equal = { path = "../always_equal" }
99
distance = { path = "../distance" }
1010
index = { path = "../index" }
11+
index_accessor = { path = "../index_accessor" }
1112
rabitq = { path = "../rabitq" }
1213
simd = { path = "../simd" }
1314
vector = { path = "../vector" }

crates/vchordg/src/insert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ use crate::types::DistanceKind;
2121
use crate::vectors::{by_prefetch, by_read, copy_all, copy_nothing, copy_outs, update};
2222
use crate::visited::Visited;
2323
use always_equal::AlwaysEqual;
24-
use index::accessor::{DefaultWithDimension, LAccess};
2524
use index::bump::Bump;
2625
use index::prefetcher::{Prefetcher, PrefetcherSequenceFamily};
2726
use index::relation::{Page, PageGuard, RelationRead, RelationWrite};
27+
use index_accessor::{DefaultWithDimension, LAccess};
2828
use rabitq::bits::Bits;
2929
use std::cmp::Reverse;
3030
use std::collections::VecDeque;

crates/vchordg/src/maintain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use crate::tuples::{MetaTuple, VertexTuple, WithReader};
1818
use crate::types::DistanceKind;
1919
use crate::vectors::{by_read, copy_all, copy_nothing, copy_outs, update};
2020
use always_equal::AlwaysEqual;
21-
use index::accessor::DefaultWithDimension;
2221
use index::relation::{Page, PageGuard, RelationRead, RelationWrite};
22+
use index_accessor::DefaultWithDimension;
2323
use std::cmp::Reverse;
2424
use vector::VectorOwned;
2525

crates/vchordg/src/operator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
use crate::types::DistanceKind;
1616
use distance::Distance;
17-
use index::accessor::{
17+
use index_accessor::{
1818
Accessor1, Accessor2, ByteDistanceAccessor, DefaultWithDimension, DistanceAccessor, Dot,
1919
HalfbyteDistanceAccessor, L2S,
2020
};

crates/vchordg/src/search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ use crate::vectors::{by_prefetch, copy_outs};
2121
use crate::visited::Visited;
2222
use always_equal::AlwaysEqual;
2323
use distance::Distance;
24-
use index::accessor::{DefaultWithDimension, LAccess};
2524
use index::bump::Bump;
2625
use index::prefetcher::{Prefetcher, PrefetcherSequenceFamily};
2726
use index::relation::{Page, RelationRead};
27+
use index_accessor::{DefaultWithDimension, LAccess};
2828
use rabitq::bits::Bits;
2929
use std::cmp::Reverse;
3030
use std::collections::VecDeque;

0 commit comments

Comments
 (0)