Đứcregexident/cargo-modules
Visualize/analyze a Rust crate's internal structure
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tuần
#1 Repository của tuần
#1 Repository của tuần
📦 cargo-modules: Nhìn rõ cấu trúc crate Rust chỉ trong một lệnh
Một plugin cargo giúp bạn thấy ngay cấu trúc module, dependency và file lạ trong dự án Rust.
cargo-modules là một công cụ dòng lệnh dưới dạng plugin cargo, giúp trực quan hóa và phân tích cấu trúc nội bộ của một crate Rust. Khi dự án ngày càng lớn, việc quản lý module trở nên phức tạp. cargo-modules giải quyết vấn đề này bằng cách hiển thị cây module, biểu đồ dependency nội bộ, và phát hiện file nguồn chưa được liên kết.
✨ Điểm nổi bật
- Cây cấu trúc module: In ra cây phân cấp của crate bao gồm trait, mod, fn, struct, enum...
- Biểu đồ dependency: Hiển thị mối quan hệ phụ thuộc nội bộ giữa các module dưới dạng đồ thị.
- Phát hiện file lạ: Tìm các file nguồn không được liên kết trong thư mục crate.
- Hỗ trợ lọc: Loại trừ fn, trait, type không cần thiết bằng
--no-fns,--no-traits,--no-types. - Tùy chỉnh sắp xếp: Sắp xếp theo tên, visibility, kind với
--sort-by. - Tô độ sâu tối đa: Giới hạn độ sâu cây bằng
--max-depth. - Màu sắc trực quan: Dùng màu xanh lá (pub), vàng (pub(crate)), cam (pub(in path)), đỏ (pub(self)).
- Hỗ trợ test: Phân tích với
#[cfg(test)]bằng--cfg-test.
💡 Vì sao đáng chú ý
cargo-modules khác biệt từ các công cụ phân tích khác ở chỗ tích hợp ba chức năng chính: cây cấu trúc, đồ thị dependency và phát hiện file lạ — tất cả trong một công cụ duy nhất. Đặc biệt hữu ích khi bạn cần nhanh chóng hiểu một codebase lớn hoặc kiểm tra xem module nào đang phụ thuộc vào module nào. Công cụ này cũng hỗ trợ rất tốt cho việc review code và duy trì cấu trúc dự án sạch sẽ.
#Rust #CargoPlugin #CodeAnalysis #DeveloperTools #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Open-source Rust coding agent for terminal, web, and desktop. Any model, multi-agent fleets, MCP & plugins, OS sandboxing, and session receipts.
Adds zero-cost stack overflow protection to your embedded programs
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
Reverse engineer anything with agents, from app behavior down to native binaries.