01Overview
rust · 3,871,733 lines of actual code
Line Composition
4,945,382 total lines
Code3,871,73378.3%
Blank430,1178.7%
Comments643,53213.0%
Reading rust-lang/rust via an LLM
~27.1M 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 |
| tests/ui/expr/if/expr-stack-overflow.rs | 10,416 | 15,615 |
| library/stdarch/crates/core_arch/src/aarch64/sve/ld_st_tests_aarch64.rs | 9,337 | 1,190 |
| compiler/rustc_trait_selection/src/error_reporting/traits/suggestions.rs | 5,721 | 1,132 |
| src/librustdoc/html/static/js/search.js | 4,150 | 860 |
| compiler/rustc_resolve/src/late/diagnostics.rs | 3,945 | 843 |
| compiler/rustc_hir_typeck/src/method/suggest.rs | 4,454 | 818 |
| compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs | 3,982 | 798 |
| compiler/rustc_parse/src/parser/expr.rs | 3,582 | 743 |
| src/etc/completions/x.sh | 5,270 | 732 |
| src/etc/completions/x.py.sh | 5,270 | 732 |
Largest
| File | Lines | Cx |
| library/stdarch/intrinsics_data/arm_intrinsics.json | 326,633 | 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 | 74,056 | 261 |
| library/stdarch/crates/core_arch/src/x86/avx512f.rs | 48,197 | 247 |
| library/stdarch/crates/core_arch/src/aarch64/sve/generated.rs | 44,947 | 27 |
| library/stdarch/crates/core_arch/src/aarch64/neon/generated.rs | 27,752 | 273 |
| library/stdarch/crates/core_arch/src/aarch64/sve2/generated.rs | 23,871 | 190 |
| library/stdarch/crates/core_arch/src/x86/avx512fp16.rs | 19,305 | 74 |
| 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 4
accessibility 482
concurrency 1
correctness 54922
maintainability 12187
performance 3399
safety 22997
security 251
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