GitHub's code navigation features jump to definition and find all references are now available for all Rust projects on GitHub.
When you view an Rust file on github.com, you can click on the name of a function, module, or macro to see its definition and its references within that repository. We use the tree-sitter library to find definitions and call sites in your code.
Learn more about code navigation for Rust and other languages in the GitHub documentation: Navigating code on GitHub.
Also, check out the tree-sitter library to learn how support for different languages is implemented.