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 impact;
15pub mod pack;
16pub mod scrub;
17pub mod tokenize;
18
19pub use budget::{Budget, BudgetStrategy};
20pub use error::{Error, Result};
21pub use expand::ExpandMode;
22pub use impact::{Finding, filter_and_sort as filter_findings, parse_envelope, unique_paths};
23pub use pack::{Format, Pack, PackBuilder, Preset, Section};
24pub use tokenize::Tokenizer;