01Overview
rust · 2,794,728 lines of actual code
Line Composition
3,515,324 total lines
Code2,794,72879.5%
Blank251,3427.1%
Comments469,25413.3%
Reading rust-lang/rust via an LLM
~19.6M tokens
→
~1.4k tokens
via code_analyze
The entire repo summarised by code_analyze — structured JSON in <2k tokens. The dossier above is built from one call. Drill into specifics with code_search.
02Languages & Tech Stack
what it’s written in, what it depends on
Language Breakdown
Language
Files
Code
Share
03Notable Files
where complexity and size live
Most Complex
| File | Lines | Cx |
| library/stdarch/crates/core_arch/src/aarch64/sve/ld_st_tests_aarch64.rs | 12,786 | 1,190 |
| compiler/rustc_trait_selection/src/error_reporting/traits/suggestions.rs | 5,855 | 1,163 |
| src/librustdoc/html/static/js/search.js | 4,160 | 864 |
| compiler/rustc_resolve/src/late/diagnostics.rs | 4,010 | 850 |
| compiler/rustc_hir_typeck/src/method/suggest.rs | 4,496 | 831 |
| compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs | 4,051 | 812 |
| compiler/rustc_parse/src/parser/expr.rs | 3,667 | 757 |
| src/etc/completions/x.sh | 5,270 | 732 |
| src/etc/completions/x.py.sh | 5,270 | 732 |
| compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs | 3,269 | 718 |
Largest
| File | Lines | Cx |
| library/stdarch/intrinsics_data/arm_intrinsics.json | 319,341 | 0 |
| src/doc/rustc-dev-guide/src/queries/example-0.html | 313,328 | 0 |
| library/stdarch/intrinsics_data/x86-intel.xml | 158,323 | 0 |
| library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs | 71,154 | 241 |
| library/stdarch/crates/core_arch/src/x86/avx512f.rs | 48,191 | 247 |
| library/stdarch/crates/core_arch/src/aarch64/sve/generated.rs | 44,972 | 27 |
| library/stdarch/crates/core_arch/src/aarch64/neon/generated.rs | 31,516 | 242 |
| library/stdarch/crates/core_arch/src/aarch64/sve2/generated.rs | 23,871 | 190 |
| library/stdarch/crates/core_arch/src/x86/avx512fp16.rs | 19,213 | 68 |
| library/stdarch/crates/core_arch/src/x86/avx512bw.rs | 18,025 | 73 |
04Code Quality
style, correctness, and maintainability findings
By Severity & Category
By Category
Modernization 2
accessibility 381
concurrency 1
correctness 31923
maintainability 5307
performance 2038
safety 15160
security 161
Top Findings
Ensure functions have docstrings for documentation ×4
Use 'with open()' to ensure Files are properly closed
05Secrets & Credentials
pattern-based scan for hardcoded secrets
06Search This Repo
live, powered by code_search
Scan another repository
Drop any public git URL or owner/repo shorthand.
Or compare rust-lang/rust against another repo:
Or use the API directly: curl https://api.searchcode.com/api/v1/code_analyze · Add to your MCP client