workspace: use folder name for packages

This commit is contained in:
nym21
2025-02-05 23:42:48 +01:00
parent d86d614520
commit 5aaa55197e
33 changed files with 3776 additions and 1655 deletions

View File

@@ -7,7 +7,7 @@ use std::{
time::Duration,
};
pub use biter::*;
pub use iterator::*;
use bitcoin::{Transaction, TxIn, TxOut};
use color_eyre::eyre::{eyre, ContextCompat};
@@ -93,7 +93,7 @@ impl Indexer<CACHED_GETS> {
Ok(())
};
biter::new(bitcoin_dir, Some(height.into()), None, rpc)
iterator::new(bitcoin_dir, Some(height.into()), None, rpc)
.iter()
.try_for_each(|(_height, block, blockhash)| -> color_eyre::Result<()> {
println!("Processing block {_height}...");

View File

@@ -1,8 +1,8 @@
use std::path::Path;
use bindex::Indexer;
use biter::rpc;
use exit::Exit;
use iterator::rpc;
use storable_vec::CACHED_GETS;
fn main() -> color_eyre::Result<()> {

View File

@@ -1,6 +1,6 @@
use biter::bitcoin::ScriptBuf;
use color_eyre::eyre::eyre;
use derive_deref::{Deref, DerefMut};
use iterator::bitcoin::ScriptBuf;
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
use super::Addresstype;

View File

@@ -1,4 +1,4 @@
use biter::bitcoin::ScriptBuf;
use iterator::bitcoin::ScriptBuf;
use zerocopy::{Immutable, IntoBytes, KnownLayout, TryFromBytes};
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, TryFromBytes, Immutable, IntoBytes, KnownLayout)]

View File

@@ -3,8 +3,8 @@ use std::{
ops::{Add, AddAssign, Mul, Sub, SubAssign},
};
use biter::bitcoin;
use derive_deref::{Deref, DerefMut};
use iterator::bitcoin;
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
use super::Height;

View File

@@ -4,9 +4,9 @@ use std::{
path::Path,
};
use biter::rpc::{self, RpcApi};
use derive_deref::{Deref, DerefMut};
use fjall::Slice;
use iterator::rpc::{self, RpcApi};
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
#[derive(