deepwiki-rs 1.5.0

deepwiki-rs(also known as Litho) is a high-performance automatic generation engine for C4 architecture documentation, developed using Rust. It can intelligently analyze project structures, identify core components, parse dependency relationships, and leverage large language models (LLMs) to automatically generate professional architecture documentation.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::{collections::HashMap, path::PathBuf};

use serde::{Deserialize, Serialize};

use crate::types::{DirectoryInfo, FileInfo};

/// Project structure information
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct ProjectStructure {
    pub project_name: String,
    pub root_path: PathBuf,
    pub directories: Vec<DirectoryInfo>,
    pub files: Vec<FileInfo>,
    pub total_files: usize,
    pub total_directories: usize,
    pub file_types: HashMap<String, usize>,
    pub size_distribution: HashMap<String, usize>,
}