Skip to main content

void_core/sdk/
mod.rs

1//! Void SDK — public API for embedding void in applications.
2//!
3//! The [`Repo`] struct is the primary entry point. Open a repository with
4//! [`Repo::builder`], then use methods to read files, commit changes,
5//! manage branches, and more.
6//!
7//! ```ignore
8//! use void_core::sdk::Repo;
9//!
10//! let repo = Repo::builder(".")
11//!     .key(&key_bytes)
12//!     .build()?;
13//!
14//! let status = repo.status()?;
15//! let info = repo.commit("checkpoint")?;
16//! ```
17
18mod builder;
19mod repo;
20mod types;
21
22pub use builder::RepoBuilder;
23pub use repo::Repo;
24pub use types::{CommitId, CommitInfo, DirEntry};
25
26// Re-export diff types for SDK consumers
27pub use crate::diff::{DiffKind, FileDiff, TreeDiff};