Expand description
Workspace layout analysis for Rust projects.
Parses Cargo.toml workspace members, counts lines of Rust code per crate,
and groups crates into compartments that fit within model context limits.
Useful for partitioning large workspaces into bounded analysis units.
Re-exports§
pub use config::LayoutConfig;pub use connectivity::compute_dry_tiles;pub use connectivity::compute_dry_tiles_with;pub use connectivity::connectivity_tiles;pub use overlap::compute_priority;pub use overlap::crate_compartment_idx;pub use overlap::generate_overlap_tiles;pub use types::Compartment;pub use types::ConnectomeEdge;pub use types::OverlapPriority;pub use types::OverlapTile;pub use types::ProjectLayout;pub use workspace::count_rs_lines;pub use workspace::expand_member_pattern;pub use workspace::parse_workspace_deps;pub use workspace::parse_workspace_members;pub use workspace::resolve_crate_infos;
Modules§
Structs§
- Crate
Info - A workspace member with its estimated LOC.
Functions§
- analyze_
rust_ layout - Analyze a Rust workspace and return a
ProjectLayout. - analyze_
rust_ layout_ with - Analyze a Rust workspace with custom thresholds.
- batch_
by_ disjointness - Partition tiles into batches where tiles within a batch have disjoint file paths and can safely run in parallel.