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