Skip to main content

endringer_async/
lib.rs

1//! Async facade for endringer.
2//!
3//! All operations delegate to the synchronous [`endringer`] implementation via
4//! [`tokio::task::spawn_blocking`], keeping blocking VCS I/O on a dedicated
5//! thread pool and freeing the async executor thread.
6//!
7//! # Example
8//!
9//! ```no_run
10//! # #[tokio::main]
11//! # async fn main() -> anyhow::Result<()> {
12//! use endringer_async::AsyncRepository;
13//!
14//! let repo = AsyncRepository::open(std::path::Path::new(".")).await?;
15//! let digest = repo.status_digest().await?;
16//! println!("{} @ {}", digest.current_branch, digest.last_commit_id.short());
17//! # Ok(())
18//! # }
19//! ```
20
21pub mod async_api;
22pub use async_api::AsyncRepository;
23
24pub use endringer::{Error, NotFoundKind, Result};