1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! # tapped
//!
//! A Rust wrapper for the `tap` ATProto sync utility.
//!
//! Tap simplifies ATProto sync by handling the firehose connection, verification,
//! backfill, and filtering. This crate provides an idiomatic async Rust interface
//! to tap's HTTP API and WebSocket event stream.
//!
//! ## Features
//!
//! - Connect to an existing tap instance or spawn one as a subprocess
//! - Strongly-typed configuration with builder pattern
//! - Async event streaming with automatic acknowledgment
//! - Full HTTP API coverage for repo management and statistics
//!
//! ## Example
//!
//! ```no_run
//! use tapped::{TapProcess, TapConfig, Result};
//!
//! #[tokio::main]
//! async fn main() -> Result<()> {
//! let config = TapConfig::builder()
//! .database_url("sqlite://tap.db")
//! .build();
//!
//! // Spawn tap and get a client
//! let process = TapProcess::spawn_default(config).await?;
//! let client = process.client()?;
//!
//! // Check health
//! client.health().await?;
//!
//! // Add repos to track
//! client.add_repos(&["did:plc:example1234567890abc"]).await?;
//!
//! // Stream events
//! let mut receiver = client.channel().await?;
//! while let Ok(event) = receiver.recv().await {
//! // Event is automatically acknowledged when dropped
//! }
//!
//! Ok(())
//! }
//! ```
pub use ;
pub use TapClient;
pub use ;
pub use Error;
pub use TapProcess;
pub use ;
/// A specialised Result type for tapped operations.
pub type Result<T> = Result;