Skip to main content

cargo_context_core/
lib.rs

1//! # cargo-context-core
2//!
3//! Core engine for `cargo-context`: assembles Rust project context packs for
4//! LLM consumption with token budgeting, macro expansion, and secret scrubbing.
5//!
6//! The crate has **no async runtime dependency** and **no terminal I/O**. It is
7//! designed to be embedded in CLIs, editor plugins, MCP servers, and build
8//! scripts alike.
9
10pub mod budget;
11pub mod collect;
12pub mod error;
13pub mod expand;
14pub mod pack;
15pub mod scrub;
16pub mod tokenize;
17
18pub use budget::{Budget, BudgetStrategy};
19pub use error::{Error, Result};
20pub use expand::ExpandMode;
21pub use pack::{Format, Pack, PackBuilder, Preset, Section};
22pub use tokenize::Tokenizer;