Skip to main content

Module sdk

Module sdk 

Source
Expand description

Void SDK — public API for embedding void in applications.

The Repo struct is the primary entry point. Open a repository with Repo::builder, then use methods to read files, commit changes, manage branches, and more.

use void_core::sdk::Repo;

let repo = Repo::builder(".")
    .key(&key_bytes)
    .build()?;

let status = repo.status()?;
let info = repo.commit("checkpoint")?;

Re-exports§

pub use crate::diff::DiffKind;
pub use crate::diff::FileDiff;
pub use crate::diff::TreeDiff;

Structs§

CommitId
Opaque commit identifier.
CommitInfo
Information about a commit.
DirEntry
An entry in a directory listing.
Repo
A void repository — the primary SDK entry point.
RepoBuilder
Builder for opening a Repo.