Skip to content

Commit

Permalink
pindexer: 📚 ensure that crate can be used as a library
Browse files Browse the repository at this point in the history
  • Loading branch information
cratelyn committed Jun 13, 2024
1 parent c252e99 commit e06ab72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions crates/bin/pindexer/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub use cometindex::Indexer;

pub mod shielded_pool;
6 changes: 2 additions & 4 deletions crates/bin/pindexer/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
use anyhow::Result;
use cometindex::Indexer;

pub mod shielded_pool;
use pindexer::{shielded_pool::fmd::ClueSet, Indexer};

#[tokio::main]
async fn main() -> Result<()> {
Indexer::new()
.with_default_tracing()
.with_index(shielded_pool::fmd::ClueSet {})
.with_index(ClueSet {})
.run()
.await?;

Expand Down

0 comments on commit e06ab72

Please sign in to comment.