···66 petgraph::{Directed, graph::NodeIndex, prelude::StableGraph},
77};
88use rayon::iter::{ParallelBridge as _, ParallelIterator as _};
99-use std::{cmp::max, collections::HashMap};
99+use std::{cmp::max, collections::HashMap, sync::Arc};
1010+use tokio::sync::RwLock;
10111112use crate::types::Workspace;
1213···3435const GRAPH_MIN_NODES: usize = 128;
3536/// Arbitrarily chosen minimum number of edges
3637const GRAPH_MIN_EDGES: usize = GRAPH_MIN_NODES * 3;
3838+3939+pub type KastenHandle = Arc<RwLock<Kasten>>;
37403841impl Kasten {
3942 /// Indexes the `Workspace` and constructs a `Kasten`
+1-1
src/types/mod.rs
···2525pub use link::Link;
26262727mod kasten;
2828-#[expect(unused_imports)]
2928pub use kasten::Kasten;
2929+pub use kasten::KastenHandle;
30303131mod frontmatter;
3232pub use frontmatter::FrontMatter;