vecs: part 10

This commit is contained in:
nym21
2025-07-25 20:22:54 +02:00
parent 49a66f72fc
commit dfc286b393
69 changed files with 1506 additions and 1323 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ repository.workspace = true
brk_core = { workspace = true }
brk_computer = { workspace = true }
brk_indexer = { workspace = true }
brk_vec = { workspace = true }
brk_vecs = { workspace = true }
color-eyre = { workspace = true }
derive_deref = { workspace = true }
rmcp = { workspace = true }
+1 -1
View File
@@ -3,7 +3,7 @@ use std::path::Path;
use brk_computer::Computer;
use brk_indexer::Indexer;
use brk_interface::{Index, Interface, Params, ParamsOpt};
use brk_vec::{Computation, Format};
use brk_vecs::{Computation, Format};
pub fn main() -> color_eyre::Result<()> {
color_eyre::install()?;
+2 -2
View File
@@ -8,7 +8,7 @@ use std::collections::BTreeMap;
use brk_computer::Computer;
use brk_core::{Height, Result};
use brk_indexer::Indexer;
use brk_vec::{AnyCollectableVec, AnyIndexedVec};
use brk_vecs::{AnyCollectableVec, AnyStampedVec};
use tabled::settings::Style;
mod deser;
@@ -47,7 +47,7 @@ impl<'a> Interface<'a> {
}
pub fn get_height(&self) -> Height {
self._indexer.vecs.height_to_blockhash.height()
Height::from(u64::from(self._indexer.vecs.height_to_blockhash.stamp()))
}
pub fn search(&self, params: &Params) -> Vec<(String, &&dyn AnyCollectableVec)> {
+1 -1
View File
@@ -2,7 +2,7 @@ use std::collections::BTreeMap;
use brk_computer::Computer;
use brk_indexer::Indexer;
use brk_vec::AnyCollectableVec;
use brk_vecs::AnyCollectableVec;
use derive_deref::{Deref, DerefMut};
use crate::pagination::{PaginatedIndexParam, PaginationParam};