Skip to main content

Crate collet

Crate collet 

Source
Expand description

§Collet

A collection of developer tools for code analysis and agent workflows.

This crate provides stable, unified APIs for analyzing and working with code repositories. Currently, it re-exports the treemap module for repository code structure mapping.

§Features

  • treemap: Generate code structure maps using tree-sitter

§Example

use collet::treemap::{generate_map, Config, Language};
use std::path::Path;

let config = Config::default();
let map = generate_map(Path::new("."), config)?;
println!("Found {} files", map.files.len());

Re-exports§

pub use collet_treemap as treemap;

Structs§

Config
Configuration for map generation
FileInfo
FileRange
File position information
RepoMap
Repository code map
Symbol
A code symbol in the repository

Enums§

Language
Supported programming languages
MapError
Errors that can occur during map generation
OutputFormat
Output format for generated maps
SymbolKind
Kind of code symbol

Functions§

generate_map
Generate a code map for the given directory