Code Ownership
Ownership is measured by how many commits each author made to each file in the current tree. It highlights bus-factor risk (files only one person has ever touched) and where knowledge is concentrated. The bus factor is the smallest number of people who are, between them, primary owner of more than half of the files.
- Files Tracked
- 61,125
- in the current tree
- Bus Factor
- 15
- 15 authors are primary owner of 31,450 of 61,125 files
- Single-Owner Files
- 22,921
- 37.5% of tracked files
- Contributors
- 4,523
- authors who changed files
Bus factor risk — single-owner files
Files only one author has ever changed. The more a file has changed, the more knowledge is at risk if that person leaves.
| File | Sole owner | Commits |
|---|---|---|
| src/doc/rustc-dev-guide/ci/sembr/src/main.rs | Tshepang Mbambo | 53 |
| library/compiler-builtins/libm/src/math/generic/mod.rs | Trevor Gross | 23 |
| tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff | Zalathar | 22 |
| src/tools/miri/priroda/README.md | Mohamed Ali | 21 |
| library/compiler-builtins/builtins-test/Cargo.toml | Trevor Gross | 20 |
| library/compiler-builtins/libm-test/Cargo.toml | Trevor Gross | 20 |
| tests/mir-opt/coverage/instrument_coverage_cleanup.main.CleanupPostBorrowck.diff | Zalathar | 18 |
| tests/mir-opt/coverage/instrument_coverage_cleanup.main.InstrumentCoverage.diff | Zalathar | 18 |
| src/tools/wasm-component-ld/Cargo.toml | Alex Crichton | 18 |
| library/compiler-builtins/ci/bench-icount.sh | Trevor Gross | 16 |
Table: the 100 most-changed of 22,921 single-owner files
| File | Sole owner | Commits |
|---|---|---|
| src/doc/rustc-dev-guide/ci/sembr/src/main.rs | Tshepang Mbambo | 53 |
| library/compiler-builtins/libm/src/math/generic/mod.rs | Trevor Gross | 23 |
| tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff | Zalathar | 22 |
| src/tools/miri/priroda/README.md | Mohamed Ali | 21 |
| library/compiler-builtins/builtins-test/Cargo.toml | Trevor Gross | 20 |
| library/compiler-builtins/libm-test/Cargo.toml | Trevor Gross | 20 |
| tests/mir-opt/coverage/instrument_coverage_cleanup.main.CleanupPostBorrowck.diff | Zalathar | 18 |
| tests/mir-opt/coverage/instrument_coverage_cleanup.main.InstrumentCoverage.diff | Zalathar | 18 |
| src/tools/wasm-component-ld/Cargo.toml | Alex Crichton | 18 |
| library/compiler-builtins/ci/bench-icount.sh | Trevor Gross | 16 |
| tests/mir-opt/coverage/instrument_coverage.bar.InstrumentCoverage.diff | Zalathar | 16 |
| tests/ui/lint/non-local-defs/exhaustive.stderr | Urgau | 16 |
| src/ci/citool/src/metrics.rs | Jakub Beránek | 14 |
| library/compiler-builtins/libm-test/src/test_traits.rs | Trevor Gross | 14 |
| library/compiler-builtins/libm/src/math/generic/sqrt.rs | Trevor Gross | 14 |
| tests/ui/lint/non-local-defs/generics.stderr | Urgau | 14 |
| tests/ui/lint/non-local-defs/exhaustive-trait.stderr | Urgau | 13 |
| library/compiler-builtins/libm-test/src/generate/spaced.rs | Trevor Gross | 12 |
| library/compiler-builtins/libm/src/math/generic/rint.rs | Trevor Gross | 12 |
| compiler/rustc_mir_dataflow/src/framework/results.rs | Nicholas Nethercote | 12 |
| src/tools/miri/priroda/tests/ui/locals_corpus_async.stdout | Mohamed Ali | 12 |
| library/compiler-builtins/libm/src/math/generic/ceil.rs | Trevor Gross | 11 |
| library/compiler-builtins/libm/src/math/generic/trunc.rs | Trevor Gross | 11 |
| compiler/rustc_codegen_llvm/src/coverageinfo/llvm_cov.rs | Zalathar | 11 |
| tests/ui/impl-trait/precise-capturing/forgot-to-capture-type.stderr | Michael Goulet | 11 |
| library/compiler-builtins/libm-test/src/lib.rs | Trevor Gross | 10 |
| library/compiler-builtins/libm-test/src/builtins_wrapper.rs | Trevor Gross | 10 |
| library/compiler-builtins/builtins-test-intrinsics/Cargo.toml | Trevor Gross | 10 |
| library/compiler-builtins/libm/src/math/generic/floor.rs | Trevor Gross | 10 |
| tests/coverage/branch/if-let.cov-map | Zalathar | 10 |
| tests/coverage/while.cov-map | Zalathar | 10 |
| compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/spans.rs | Zalathar | 10 |
| tests/ui/impl-trait/precise-capturing/forgot-to-capture-type.rs | Michael Goulet | 10 |
| library/compiler-builtins/builtins-test/tests/div_rem.rs | Trevor Gross | 9 |
| library/compiler-builtins/builtins-test/tests/mul.rs | Trevor Gross | 9 |
| library/compiler-builtins/libm-test/src/generate/random.rs | Trevor Gross | 9 |
| library/compiler-builtins/libm-test/src/run_cfg.rs | Trevor Gross | 9 |
| library/compiler-builtins/libm-test/src/generate/edge_cases.rs | Trevor Gross | 9 |
| library/compiler-builtins/builtins-shim/Cargo.toml | Trevor Gross | 9 |
| library/compiler-builtins/libm-test/src/op.rs | Trevor Gross | 9 |
| library/compiler-builtins/libm/src/math/generic/fmax.rs | Trevor Gross | 9 |
| library/compiler-builtins/libm/src/math/generic/fmaximum.rs | Trevor Gross | 9 |
| library/compiler-builtins/libm/src/math/generic/fmaximum_num.rs | Trevor Gross | 9 |
| library/compiler-builtins/libm/src/math/generic/fmin.rs | Trevor Gross | 9 |
| library/compiler-builtins/libm/src/math/generic/fminimum.rs | Trevor Gross | 9 |
| library/compiler-builtins/libm/src/math/generic/fminimum_num.rs | Trevor Gross | 9 |
| library/compiler-builtins/libm/src/math/generic/fma.rs | Trevor Gross | 9 |
| src/tools/miri/tests/pass/0weak_memory/weak.rs | Ralf Jung | 9 |
| tests/coverage/holes.cov-map | Zalathar | 9 |
| tests/coverage/loop-break.cov-map | Zalathar | 9 |
| compiler/rustc_parse/src/parser/expr/diagnostics.rs | León Orell Valerian Liehr | 9 |
| tests/ui/trait-bounds/unstable-trait-suggestion.stderr | Esteban Küber | 9 |
| compiler/rustc_attr_ir/src/pretty_printing.rs | mejrs | 9 |
| src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/type_must_be_known.rs | Chayim Refael Friedman | 9 |
| compiler/rustc_type_ir/src/sty/mod.rs | James Barford-Evans | 9 |
| library/core/src/io/cursor.rs | Zac Harrold | 9 |
| library/stdarch/examples/gaussian.rs | Brian Cain | 9 |
| library/compiler-builtins/builtins-test/benches/mem_icount.rs | Trevor Gross | 8 |
| library/compiler-builtins/libm/src/math/fmin_fmax.rs | Trevor Gross | 8 |
| tests/ui/fn/named-fn-trait-parameters.rs | Jonathan Brouwer | 8 |
| tests/ui/fn/named-fn-trait-parameters.stderr | Jonathan Brouwer | 8 |
| src/tools/miri/tests/fail/async-shared-mutable.stack.stderr | Ralf Jung | 8 |
| tests/coverage/closure_bug.cov-map | Zalathar | 8 |
| tests/coverage/unused.cov-map | Zalathar | 8 |
| tests/coverage/assert_not.cov-map | Zalathar | 8 |
| compiler/rustc_attr_ir/src/lint.rs | mejrs | 8 |
| tests/ui/check-cfg/exhaustive-values.empty_cfg.stderr | Urgau | 8 |
| tests/ui/check-cfg/no-expected-values.empty.stderr | Urgau | 8 |
| tests/ui/check-cfg/no-expected-values.mixed.stderr | Urgau | 8 |
| tests/ui/check-cfg/no-expected-values.simple.stderr | Urgau | 8 |
| src/tools/miri/src/shims/unix/udp_socket.rs | WhySoBad | 8 |
| src/tools/miri/priroda/tests/ui/locals_access_field.stdout | Mohamed Ali | 8 |
| src/doc/rustc/src/platform-support/aarch64-unknown-linux-pauthtest.md | Jakub Chlanda | 8 |
| library/core/src/offload/mod.rs | Marcelo Dominguez | 8 |
| tests/mir-opt/coroutine/async_drop_live_dead.a-{closure#0}.coroutine_drop_async.0.panic-unwind.mir | Camille Gillot | 8 |
| tests/ui/impl-trait/precise-capturing/bad-params.stderr | Michael Goulet | 8 |
| library/stdarch/crates/intrinsic-test/src/x86/intrinsic.rs | Madhav Madhusoodanan | 8 |
| library/compiler-builtins/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile | Trevor Gross | 7 |
| library/compiler-builtins/crates/libm-macros/Cargo.toml | Trevor Gross | 7 |
| library/compiler-builtins/libm/src/math/fminimum_fmaximum.rs | Trevor Gross | 7 |
| library/compiler-builtins/libm/src/math/fminimum_fmaximum_num.rs | Trevor Gross | 7 |
| src/tools/miri/test-cargo-miri/test.filter.stdout.ref | Ralf Jung | 7 |
| src/tools/miri/tests/fail/data_race/mixed_size_read_read_write.match_first_load.stderr | Ralf Jung | 7 |
| src/tools/miri/tests/fail/data_race/mixed_size_read_read_write.match_second_load.stderr | Ralf Jung | 7 |
| src/tools/miri/tests/fail/data_race/mixed_size_read_write.read_write.stderr | Ralf Jung | 7 |
| src/tools/miri/tests/fail/data_race/mixed_size_read_write.write_read.stderr | Ralf Jung | 7 |
| src/tools/miri/tests/fail/data_race/mixed_size_write_write.fst.stderr | Ralf Jung | 7 |
| src/tools/miri/tests/fail/data_race/mixed_size_write_write.snd.stderr | Ralf Jung | 7 |
| tests/coverage/assert-ne.cov-map | Zalathar | 7 |
| tests/coverage/dead_code.cov-map | Zalathar | 7 |
| src/ci/docker/scripts/crosstool-ng-git.sh | WANG Rui | 7 |
| src/doc/rustc-dev-guide/src/solve/canonicalization.md | lcnr | 7 |
| tests/ui/unsized/relaxed-bounds-invalid-places.stderr | León Orell Valerian Liehr | 7 |
| tests/ui/moves/needs-clone-through-deref.stderr | Esteban Küber | 7 |
| tests/ui/check-cfg/exhaustive-values.without_names.stderr | Urgau | 7 |
| src/tools/rust-analyzer/crates/hir-ty/src/infer/autoderef.rs | Chayim Refael Friedman | 7 |
| tests/mir-opt/coroutine/async_drop.double-{closure#0}.StateTransform.diff | Camille Gillot | 7 |
| tests/mir-opt/coroutine/async_drop.simple-{closure#0}.StateTransform.diff | Camille Gillot | 7 |
| tests/mir-opt/coroutine/async_drop_live_dead.a-{closure#0}.coroutine_drop_async.0.panic-abort.mir | Camille Gillot | 7 |
| tests/ui/impl-trait/precise-capturing/self-capture.rs | Michael Goulet | 7 |
Ownership by author
Primary owner = the author with the most commits to a file. Solely owned = files only that author has touched.
| Author | Files owned | Solely owned | Files touched |
|---|---|---|---|
| Jieyou Xu | 4,823 | 176 | 9,967 |
| Albert Larsan | 3,536 | 3,519 | 18,727 |
| Ralf Jung | 2,771 | 611 | 5,215 |
| Esteban Küber | 2,642 | 437 | 6,920 |
| Michael Goulet | 2,534 | 714 | 6,508 |
| Noratrieb | 2,191 | 75 | 7,184 |
| Guillaume Gomez | 2,086 | 1,616 | 4,727 |
| rami3l | 2,056 | 895 | 2,138 |
| Oli Scherer | 1,953 | 248 | 5,146 |
| lcnr | 1,226 | 436 | 2,431 |
| Nicholas Nethercote | 1,197 | 102 | 4,052 |
| Lukas Wirth | 1,185 | 467 | 2,364 |
| Zalathar | 1,138 | 430 | 2,003 |
| Vadim Petrochenkov | 1,083 | 95 | 2,461 |
| Urgau | 1,029 | 500 | 1,938 |
| Waffle Lapkin | 889 | 176 | 2,190 |
| mejrs | 819 | 232 | 2,197 |
| León Orell Valerian Liehr | 782 | 468 | 2,368 |
| Oneirical | 663 | 464 | 791 |
| Yukang | 636 | 305 | 1,177 |
| Camille Gillot | 622 | 138 | 2,474 |
| Trevor Gross | 603 | 220 | 1,191 |
| cyrgani | 592 | 259 | 1,168 |
| zedddie | 579 | 504 | 640 |
| Scott McMurray | 576 | 72 | 1,526 |
Most shared files
Files touched by the most people — shared code where changes are most likely to need coordination.
| File | Contributors | Primary owner | Owner share |
|---|---|---|---|
| Cargo.lock | 520 | bjorn3 | 9.8% |
| README.md | 412 | Ralf Jung | 13.4% |
| compiler/rustc_span/src/symbol.rs | 294 | Nicholas Nethercote | 5.1% |
| src/librustdoc/clean/mod.rs | 237 | Guillaume Gomez | 12.2% |
| compiler/rustc_target/src/spec/mod.rs | 221 | Ralf Jung | 7.7% |
| src/librustdoc/lib.rs | 214 | Alex Crichton | 10.2% |
| library/std/src/lib.rs | 211 | Ralf Jung | 5.2% |
| Cargo.toml | 208 | bjorn3 | 14.0% |
| compiler/rustc_session/src/options.rs | 202 | Nicholas Nethercote | 4.6% |
| src/tools/compiletest/src/runtest.rs | 194 | Zalathar | 7.7% |
| src/doc/rustc/src/platform-support.md | 186 | Eric Huss | 3.0% |
| library/core/src/lib.rs | 182 | Ralf Jung | 9.0% |
| compiler/rustc_session/src/config.rs | 177 | Nicholas Nethercote | 9.3% |
| library/core/src/slice/mod.rs | 173 | Scott McMurray | 6.0% |
| library/alloc/src/vec/mod.rs | 168 | The8472 | 5.0% |
| compiler/rustc_passes/src/check_attr.rs | 156 | Jonathan Brouwer | 7.8% |
| configure | 155 | Brian Anderson | 18.8% |
| CONTRIBUTING.md | 151 | Philipp Krones | 14.2% |
| src/bootstrap/bootstrap.py | 151 | Jynn Nelson | 13.2% |
| compiler/rustc_hir/src/hir.rs | 150 | Camille Gillot | 15.2% |
How Rust compares with other open source languages and developer tools →
How Rust ranks among open source languages and developer tools by AI-assisted commits →
Generate this report for your own repository with gitstats-action · All Gallery reports
The smallest workflow
Publishes the report to GitHub Pages on every push to main: turn on Pages for the gh-pages branch.
# .github/workflows/gitstats.yml
name: GitStats Report
on:
push:
branches: [main]
permissions:
contents: write
jobs:
gitstats:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: shenxianpeng/gitstats-action@v1
with:
deploy-to-pages: true