    Skip to content

      Navigation Menu

            Sign in Appearance settings
                * Platform
                        + AI CODE CREATION
                            o GitHub Copilot Write better code with AI
                            o GitHub Copilot app Direct agents from issue to merge
                            o MCP Registry Integrate external tools
                        + DEVELOPER WORKFLOWS
                            o Actions Automate any workflow
                            o Codespaces Instant dev environments
                            o Issues Plan and track work
                            o Code Review Manage code changes
                            o Code Quality Enforce quality at merge
                        + APPLICATION SECURITY
                            o GitHub Advanced Security Find and fix vulnerabilities
                            o Code security Secure your code as you build
                            o Secret protection Stop leaks before they start
                        + EXPLORE
                            o Why GitHub
                            o Documentation
                            o Blog
                            o Changelog
                            o Marketplace
                      View all features
                * Solutions
                        + BY COMPANY SIZE
                            o Enterprises
                            o Small and medium teams
                            o Startups
                            o Nonprofits
                        + BY USE CASE
                            o App Modernization
                            o DevSecOps
                            o DevOps
                            o CI/CD
                            o View all use cases
                        + BY INDUSTRY
                            o Healthcare
                            o Financial services
                            o Manufacturing
                            o Government
                            o View all industries
                      View all solutions
                * Resources
                        + EXPLORE BY TOPIC
                            o AI
                            o Software Development
                            o DevOps
                            o Security
                            o View all topics
                        + EXPLORE BY TYPE
                            o Customer stories
                            o Events & webinars
                            o Ebooks & reports
                            o Business insights
                            o GitHub Skills
                        + SUPPORT & SERVICES
                            o Documentation
                            o Customer support
                            o Community forum
                            o Trust center
                            o Partners
                      View all resources
                * Open Source
                        + COMMUNITY
                            o GitHub Sponsors Fund open source developers
                        + PROGRAMS
                            o Security Lab
                            o Maintainer Community
                            o Accelerator
                            o GitHub Stars
                            o Archive Program
                        + REPOSITORIES
                            o Topics
                            o Trending
                            o Collections
                * Enterprise
                        + ENTERPRISE SOLUTIONS
                            o Enterprise platform AI-powered developer platform
                        + AVAILABLE ADD-ONS
                            o GitHub Advanced Security Enterprise-grade security features
                            o Copilot for Business Enterprise-grade AI features
                            o Premium Support Enterprise-grade 24/7 support
              * Pricing
                Type / to search
                Sign in
              Sign up Appearance settings
      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

              Uh oh!

              There was an error while loading. Please reload this page.

              rust-lang / rust Public

                      * Uh oh!

                        There was an error while loading. Please reload this page.

              * Notifications You must be signed in to change notification settings
              * Fork 15.4k
                * Star 115k
          * Code
          * Issues 5k+
          * Pull requests 1.3k
          * Actions
          * Projects
          * Security and quality 6
          * Insights
          Additional navigation options
                  * Code
                  * Issues
                  * Pull requests
                  * Actions
                  * Projects
                  * Security and quality
                  * Insights
                                              main
                                          Branches Tags
                                            Go to file
                                        Code
                                          Open more actions menu

                                        Folders and files

                                          Name                            Name                              Last commit message    Last commit date
                                            Latest commit               
                                                                        
                                                History                 
                                                                        
                                                335,900 Commits         
                                                  335,900 Commits       
                                                  .github                         .github                                                          
                                                  LICENSES                        LICENSES                                                         
                                                  compiler                        compiler                                                         
                                                  library                         library                                                          
                                                  src                             src                                                              
                                                  tests                           tests                                                            
                                                  .clang-format                   .clang-format                                                    
                                                  .editorconfig                   .editorconfig                                                    
                                                  .git-blame-ignore-revs          .git-blame-ignore-revs                                           
                                                  .gitattributes                  .gitattributes                                                   
                                                  .gitignore                      .gitignore                                                       
                                                  .gitmodules                     .gitmodules                                                      
                                                  .ignore                         .ignore                                                          
                                                  .mailmap                        .mailmap                                                         
                                                  CODE_OF_CONDUCT.md              CODE_OF_CONDUCT.md                                               
                                                  CONTRIBUTING.md                 CONTRIBUTING.md                                                  
                                                  COPYRIGHT                       COPYRIGHT                                                        
                                                  Cargo.lock                      Cargo.lock                                                       
                                                  Cargo.toml                      Cargo.toml                                                       
                                                  INSTALL.md                      INSTALL.md                                                       
                                                  LICENSE-APACHE                  LICENSE-APACHE                                                   
                                                  LICENSE-MIT                     LICENSE-MIT                                                      
                                                  README.md                       README.md                                                        
                                                  RELEASES.md                     RELEASES.md                                                      
                                                  REUSE.toml                      REUSE.toml                                                       
                                                  bootstrap.example.toml          bootstrap.example.toml                                           
                                                  configure                       configure                                                        
                                                  license-metadata.json           license-metadata.json                                            
                                                  package.json                    package.json                                                     
                                                  rust-bors.toml                  rust-bors.toml                                                   
                                                  rustfmt.toml                    rustfmt.toml                                                     
                                                  triagebot.toml                  triagebot.toml                                                   
                                                  typos.toml                      typos.toml                                                       
                                                  x                               x                                                                
                                                  x.ps1                           x.ps1                                                            
                                                  x.py                            x.py                                                             
                                                  yarn.lock                       yarn.lock                                                        
                                            View all files              
                                          

                                              Repository files navigation

                                                * 
                                                * README
                                                * Code of conduct
                                                * Contributing
                                                * Apache-2.0 license
                                                * MIT license
                                                * License
                                                * Security
                                                More items

                                                Website | Getting started | Learn | Documentation | Contributing

                                              This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.

                                                Why Rust?

                                                * Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.

                                                * Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.

                                                * Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo), auto-formatter (rustfmt), linter (Clippy) and editor support (rust-analyzer).

                                                Quick Start

                                              Read "Installation" from The Book.

                                                Installing from Source

                                              If you really want to install from source (though this is not recommended), see INSTALL.md.

                                                Getting Help

                                              See https://www.rust-lang.org/community for a list of chat platforms and forums.

                                                Contributing

                                              See CONTRIBUTING.md.

                                              For a detailed explanation of the compiler's architecture and how to begin contributing, see the rustc-dev-guide.

                                                License

                                              Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

                                              See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.

                                                Trademark

                                              The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the "Rust Trademarks").

                                              If you want to use these names or brands, please read the Rust language trademark policy.

                                              Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.

                                        About

                                        Empowering everyone to build reliable and efficient software.

                                          www.rust-lang.org

                                        Topics

                                          compilerlanguagerust

                                        Resources

                                          Readme
                                          Apache-2.0 and 2 other licenses found

                                        Code of conduct

                                          Code of conduct

                                        Contributing

                                          Contributing

                                        Security policy

                                          Security policy
                                          Activity
                                          Custom properties

                                        Stars

                                          115.4k stars

                                        Watchers

                                          1.6k watching

                                        Forks

                                          15.4k forks
                                          Report repository

                                        Releases

                                        Sponsor this project

                                        Used by

                                        Contributors

                                        Languages

    Footer

        © 2026 GitHub, Inc.

      Footer navigation

        * Terms
        * Privacy
        * Security
        * Status
        * Community
        * Docs
        * Contact
        * Manage cookies
        * Do not share my personal information
      You can’t perform that action at this time.