Skip to main content

tuff_packs/
lib.rs

1//! Tuff capability packs from Rust: build a source pack for its harnesses
2//! and bundle formats, describe a pack for a review screen, read a Claude
3//! Code plugin as a pack, check out a pack from git and compare it with its
4//! release tags, preview an update, write packs as a Claude Code
5//! marketplace, and install, update, and remove packs in a project
6//! ([`install`]).
7//!
8//! The `tuff` command is built on these functions, so they behave exactly
9//! as `tuff pack` and `tuff update --check` do. They return values and
10//! never print: notes and warnings come back on the result for the caller
11//! to show. They write only to the folders they are given and to temporary
12//! folders, from the system's temporary directory, that they remove. They
13//! read no environment variables of their own, so they need no `HOME`;
14//! [`workspace::Environment::from_process`] reads them, for a caller that
15//! wants what the `tuff` command does. git runs as a program and reads the
16//! machine's git configuration and credentials.
17//!
18//! The JSON documents are specified at <https://tuffcli.dev/spec/packs/>.
19//!
20//! The Rust API is 0.x: it can change in a minor release, and each change is
21//! in the changelog.
22
23pub mod adapter;
24pub mod build;
25#[doc(hidden)]
26pub mod engine;
27pub mod git;
28pub mod import;
29pub mod inspect;
30pub mod install;
31pub mod marketplace;
32pub mod preview;
33pub mod workspace;
34
35pub use tuff_core::error::{ErrorKind, Result, TuffError};