Find a file
github-actions 87187f107b cargo update
compiler & tools dependencies:     Locking 132 packages to latest compatible versions
    Updating addr2line v0.24.2 -> v0.25.1
    Updating annotate-snippets v0.12.10 -> v0.12.11
    Updating anstyle-svg v0.1.11 -> v0.1.12 (available: v1.0.0)
    Updating anyhow v1.0.100 -> v1.0.101
    Updating assert_cmd v2.1.1 -> v2.1.2
    Updating backtrace v0.3.75 -> v0.3.76
    Updating bitflags v2.10.0 -> v2.11.0
    Updating blake3 v1.8.2 -> v1.8.3
    Updating bumpalo v3.19.0 -> v3.19.1
    Updating camino v1.2.1 -> v1.2.2
    Updating cargo-platform v0.3.1 -> v0.3.2
    Updating chrono v0.4.42 -> v0.4.43
    Updating clap v4.5.54 -> v4.5.58
    Updating clap_builder v4.5.54 -> v4.5.58
    Updating clap_derive v4.5.49 -> v4.5.55
    Removing clap_lex v0.7.6
      Adding clap_lex v0.7.7
      Adding clap_lex v1.0.0
    Updating colored v3.0.0 -> v3.1.1
      Adding console v0.16.2
    Updating constant_time_eq v0.3.1 -> v0.4.2
    Updating curl-sys v0.4.84+curl-8.17.0 -> v0.4.85+curl-8.18.0
    Updating cxx v1.0.188 -> v1.0.194
    Updating cxx-build v1.0.188 -> v1.0.194
    Updating cxxbridge-cmd v1.0.188 -> v1.0.194
    Updating cxxbridge-flags v1.0.188 -> v1.0.194
    Updating cxxbridge-macro v1.0.188 -> v1.0.194
      Adding darling v0.21.3
      Adding darling_core v0.21.3
      Adding darling_macro v0.21.3
    Updating dbus v0.9.9 -> v0.9.10
    Updating derive_setters v0.1.8 -> v0.1.9
    Updating ena v0.14.3 -> v0.14.4
    Updating env_filter v0.1.4 -> v1.0.0
    Updating env_logger v0.11.8 -> v0.11.9
    Updating filetime v0.2.26 -> v0.2.27
    Updating find-msvc-tools v0.1.5 -> v0.1.9
    Updating flate2 v1.1.5 -> v1.1.9
    Removing getrandom v0.2.16
      Adding getrandom v0.2.17
      Adding getrandom v0.4.1
    Updating git2 v0.20.2 -> v0.20.4
    Updating iana-time-zone v0.1.64 -> v0.1.65
    Updating icu_locale_data v2.1.1 -> v2.1.2
    Updating icu_properties v2.1.1 -> v2.1.2
    Updating icu_properties_data v2.1.1 -> v2.1.2
    Updating id-arena v2.2.1 -> v2.3.0
      Adding indicatif v0.18.4
    Updating itoa v1.0.15 -> v1.0.17
    Updating jiff v0.2.16 -> v0.2.20
    Updating jiff-static v0.2.16 -> v0.2.20
    Updating js-sys v0.3.82 -> v0.3.85
    Updating libc v0.2.177 -> v0.2.182
    Updating libdbus-sys v0.2.6 -> v0.2.7
    Updating libgit2-sys v0.18.2+1.9.1 -> v0.18.3+1.9.2
    Updating libm v0.2.15 -> v0.2.16
    Updating libredox v0.1.10 -> v0.1.12
    Updating log v0.4.28 -> v0.4.29
    Updating memchr v2.7.6 -> v2.8.0
    Updating mio v1.1.0 -> v1.1.1
 Downgrading objc2-core-foundation v0.3.2 -> v0.3.1 (available: v0.3.2)
 Downgrading objc2-io-kit v0.3.2 -> v0.3.1 (available: v0.3.2)
    Updating pest v2.8.3 -> v2.8.6
    Updating pest_derive v2.8.3 -> v2.8.6
    Updating pest_generator v2.8.3 -> v2.8.6
    Updating pest_meta v2.8.3 -> v2.8.6
    Updating portable-atomic v1.11.1 -> v1.13.1
    Updating portable-atomic-util v0.2.4 -> v0.2.5
    Updating predicates v3.1.3 -> v3.1.4
    Updating predicates-core v1.0.9 -> v1.0.10
    Updating predicates-tree v1.0.12 -> v1.0.13
      Adding prettyplease v0.2.37
    Updating proc-macro2 v1.0.103 -> v1.0.106
    Updating quote v1.0.42 -> v1.0.44
    Updating rand_core v0.9.3 -> v0.9.5
      Adding redox_syscall v0.7.1
    Updating regex v1.12.2 -> v1.12.3
    Updating regex-automata v0.4.13 -> v0.4.14
    Updating regex-lite v0.1.8 -> v0.1.9
    Updating regex-syntax v0.8.8 -> v0.8.9
    Updating rustix v1.1.2 -> v1.1.3
    Removing ryu v1.0.20
    Updating schemars v1.1.0 -> v1.2.1
    Updating schemars_derive v1.1.0 -> v1.2.1
    Updating self_cell v1.2.1 -> v1.2.2
    Updating serde_json v1.0.145 -> v1.0.149
    Updating serde_spanned v1.0.3 -> v1.0.4
    Updating simd-adler32 v0.3.7 -> v0.3.8
    Updating siphasher v1.0.1 -> v1.0.2
    Updating socket2 v0.6.1 -> v0.6.2
    Updating syn v2.0.110 -> v2.0.115
    Updating sysinfo v0.38.0 -> v0.38.1
    Updating tempfile v3.23.0 -> v3.25.0
    Updating thiserror v2.0.17 -> v2.0.18
    Updating thiserror-impl v2.0.17 -> v2.0.18
    Updating toml v0.9.8 -> v0.9.12+spec-1.1.0 (available: v1.0.1+spec-1.1.0)
    Updating toml_datetime v0.7.3 -> v0.7.5+spec-1.1.0
    Updating toml_parser v1.0.4 -> v1.0.8+spec-1.1.0
    Updating toml_writer v1.0.4 -> v1.0.6+spec-1.1.0
    Updating tracing v0.1.41 -> v0.1.44
    Updating tracing-attributes v0.1.30 -> v0.1.31
    Updating tracing-core v0.1.34 -> v0.1.36
    Updating tracing-subscriber v0.3.20 -> v0.3.22
    Updating ui_test v0.30.3 -> v0.30.4
    Updating unicase v2.8.1 -> v2.9.0
    Updating unicode-ident v1.0.22 -> v1.0.23
    Updating unicode-script v0.5.7 -> v0.5.8
      Adding unit-prefix v0.5.2
    Updating url v2.5.7 -> v2.5.8
    Updating utf8-width v0.1.7 -> v0.1.8
    Updating uuid v1.18.1 -> v1.21.0
    Updating wasi-preview1-component-adapter-provider v40.0.0 -> v40.0.3
      Adding wasip2 v1.0.2+wasi-0.2.9
      Adding wasip3 v0.4.0+wasi-0.3.0-rc-2026-01-06
    Updating wasm-bindgen v0.2.105 -> v0.2.108
    Updating wasm-bindgen-macro v0.2.105 -> v0.2.108
    Updating wasm-bindgen-macro-support v0.2.105 -> v0.2.108
    Updating wasm-bindgen-shared v0.2.105 -> v0.2.108
      Adding wasm-encoder v0.244.0
      Adding wasm-encoder v0.245.1
      Adding wasm-metadata v0.244.0
      Adding wasmparser v0.244.0
      Adding wasmparser v0.245.1
    Updating wast v243.0.0 -> v245.0.1
    Updating wat v1.243.0 -> v1.245.1
    Updating winnow v0.7.13 -> v0.7.14
      Adding wit-bindgen v0.51.0
      Adding wit-bindgen-core v0.51.0
      Adding wit-bindgen-rust v0.51.0
      Adding wit-bindgen-rust-macro v0.51.0
      Adding wit-component v0.244.0
      Adding wit-parser v0.244.0
    Updating zerocopy v0.8.27 -> v0.8.39
    Updating zerocopy-derive v0.8.27 -> v0.8.39
      Adding zmij v1.0.21
note: pass `--verbose` to see 47 unchanged dependencies behind latest

library dependencies:     Locking 5 packages to latest compatible versions
    Updating dlmalloc v0.2.11 -> v0.2.12
    Updating libc v0.2.178 -> v0.2.182
    Updating memchr v2.7.6 -> v2.8.0
    Updating rand_core v0.9.3 -> v0.9.5
    Updating windows-sys v0.60.2 -> v0.61.2
    Removing windows-targets v0.53.5
    Removing windows_aarch64_gnullvm v0.53.1
    Removing windows_aarch64_msvc v0.53.1
    Removing windows_i686_gnu v0.53.1
    Removing windows_i686_gnullvm v0.53.1
    Removing windows_i686_msvc v0.53.1
    Removing windows_x86_64_gnu v0.53.1
    Removing windows_x86_64_gnullvm v0.53.1
    Removing windows_x86_64_msvc v0.53.1
note: pass `--verbose` to see 10 unchanged dependencies behind latest

rustbook dependencies:     Locking 74 packages to latest compatible versions
    Updating anstyle-query v1.1.4 -> v1.1.5
    Updating anstyle-wincon v3.0.10 -> v3.0.11
    Updating anyhow v1.0.100 -> v1.0.101
    Updating bitflags v2.10.0 -> v2.11.0
    Updating bumpalo v3.19.0 -> v3.19.1
    Updating cc v1.2.45 -> v1.2.56
    Updating chrono v0.4.42 -> v0.4.43
    Updating clap v4.5.51 -> v4.5.58
    Updating clap_builder v4.5.51 -> v4.5.58
    Updating clap_derive v4.5.49 -> v4.5.55
    Updating clap_lex v0.7.6 -> v1.0.0
    Updating crypto-common v0.1.6 -> v0.1.7
    Updating find-msvc-tools v0.1.4 -> v0.1.9
    Updating flate2 v1.1.5 -> v1.1.9
      Adding foldhash v0.1.5
 Downgrading generic-array v0.14.9 -> v0.14.7 (available: v0.14.9)
    Updating getrandom v0.3.4 -> v0.4.1
    Updating handlebars v6.3.2 -> v6.4.0
      Adding hashbrown v0.15.5
    Updating iana-time-zone v0.1.64 -> v0.1.65
      Adding id-arena v2.3.0
    Updating indexmap v2.12.1 -> v2.13.0
    Updating itoa v1.0.15 -> v1.0.17
    Updating js-sys v0.3.82 -> v0.3.85
      Adding leb128fmt v0.1.0
    Updating libc v0.2.177 -> v0.2.182
    Updating log v0.4.28 -> v0.4.29
    Updating memchr v2.7.6 -> v2.8.0
    Updating pest v2.8.3 -> v2.8.6
    Updating pest_derive v2.8.3 -> v2.8.6
    Updating pest_generator v2.8.3 -> v2.8.6
    Updating pest_meta v2.8.3 -> v2.8.6
      Adding prettyplease v0.2.37
    Updating proc-macro2 v1.0.103 -> v1.0.106
    Updating quote v1.0.42 -> v1.0.44
    Updating regex v1.12.2 -> v1.12.3
    Updating regex-automata v0.4.13 -> v0.4.14
    Updating regex-syntax v0.8.8 -> v0.8.9
    Updating rustix v1.1.2 -> v1.1.3
    Removing ryu v1.0.20
    Updating serde_json v1.0.145 -> v1.0.149
    Updating serde_spanned v1.0.3 -> v1.0.4
    Updating simd-adler32 v0.3.7 -> v0.3.8
    Updating siphasher v1.0.1 -> v1.0.2
    Updating syn v2.0.110 -> v2.0.115
    Updating tempfile v3.23.0 -> v3.25.0
    Updating thiserror v2.0.17 -> v2.0.18
    Updating thiserror-impl v2.0.17 -> v2.0.18
    Updating toml v0.9.8 -> v0.9.12+spec-1.1.0
    Updating toml_datetime v0.7.3 -> v0.7.5+spec-1.1.0
    Updating toml_parser v1.0.4 -> v1.0.8+spec-1.1.0
    Updating toml_writer v1.0.4 -> v1.0.6+spec-1.1.0
    Updating tracing v0.1.43 -> v0.1.44
    Updating tracing-core v0.1.35 -> v0.1.36
    Updating unicase v2.8.1 -> v2.9.0
    Updating unicode-ident v1.0.22 -> v1.0.23
      Adding unicode-xid v0.2.6
    Updating wasip2 v1.0.1+wasi-0.2.4 -> v1.0.2+wasi-0.2.9
      Adding wasip3 v0.4.0+wasi-0.3.0-rc-2026-01-06
    Updating wasm-bindgen v0.2.105 -> v0.2.108
    Updating wasm-bindgen-macro v0.2.105 -> v0.2.108
    Updating wasm-bindgen-macro-support v0.2.105 -> v0.2.108
    Updating wasm-bindgen-shared v0.2.105 -> v0.2.108
      Adding wasm-encoder v0.244.0
      Adding wasm-metadata v0.244.0
      Adding wasmparser v0.244.0
    Updating web_atoms v0.2.0 -> v0.2.3
    Removing windows-sys v0.60.2
    Removing windows-targets v0.53.5
    Removing windows_aarch64_gnullvm v0.53.1
    Removing windows_aarch64_msvc v0.53.1
    Removing windows_i686_gnu v0.53.1
    Removing windows_i686_gnullvm v0.53.1
    Removing windows_i686_msvc v0.53.1
    Removing windows_x86_64_gnu v0.53.1
    Removing windows_x86_64_gnullvm v0.53.1
    Removing windows_x86_64_msvc v0.53.1
    Updating winnow v0.7.13 -> v0.7.14
    Updating wit-bindgen v0.46.0 -> v0.51.0
      Adding wit-bindgen-core v0.51.0
      Adding wit-bindgen-rust v0.51.0
      Adding wit-bindgen-rust-macro v0.51.0
      Adding wit-component v0.244.0
      Adding wit-parser v0.244.0
      Adding zmij v1.0.21
2026-02-15 00:32:46 +00:00
.github Use DEVELOPER_DIR instead of a custom xcode-select script 2026-02-03 20:14:52 +01:00
compiler Rollup merge of #152612 - JonathanBrouwer:rename_to_msg, r=jdonszelmann 2026-02-14 18:55:38 +01:00
library cargo update 2026-02-15 00:32:46 +00:00
LICENSES Synchronize Unicode license text from unicode.org 2024-11-20 00:54:12 -08:00
src cargo update 2026-02-15 00:32:46 +00:00
tests Rollup merge of #152120 - meithecatte:push-ltvwvkqrytno, r=petrochenkov 2026-02-14 18:55:36 +01:00
.clang-format Add .clang-format 2024-06-26 05:56:00 +08:00
.editorconfig editorconfig: don't use nonexistant syntax 2025-08-24 10:37:19 -05:00
.git-blame-ignore-revs git: ignore 60600a6fa4 for blame purposes 2025-04-17 11:50:24 +08:00
.gitattributes Mark .pp files as Rust 2025-03-29 12:39:06 +01:00
.gitignore ignore build-rust-analyzer even if it's a symlink 2025-11-12 16:41:41 +01:00
.gitmodules Update to LLVM 22 2026-01-27 12:09:39 +01:00
.ignore change config.toml to bootstrap.toml for bootstrap module 2025-03-17 12:56:41 +05:30
.mailmap Add temporary new bors e-mail address to the mailmap 2026-01-14 18:01:50 +01:00
bootstrap.example.toml Change how we build offload as a single Step 2025-12-22 23:50:11 +01:00
Cargo.lock cargo update 2026-02-15 00:32:46 +00:00
Cargo.toml Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
CODE_OF_CONDUCT.md Remove the code of conduct; instead link https://www.rust-lang.org/conduct.html 2019-10-05 22:55:19 +02:00
configure Ensure ./configure works when configure.py path contains spaces 2024-02-16 18:57:22 +00:00
CONTRIBUTING.md Fix typos and grammar in top-level and src/doc documentation 2026-02-10 10:22:19 -05:00
COPYRIGHT dist: Re-work how we describe the licence of Rust in our distributions 2024-12-09 10:18:55 +00:00
INSTALL.md Fix typos and grammar in top-level and src/doc documentation 2026-02-10 10:22:19 -05:00
LICENSE-APACHE Remove appendix from LICENCE-APACHE 2019-12-30 14:25:53 +00:00
license-metadata.json Update license metadata 2025-02-15 16:48:37 +01:00
LICENSE-MIT dist: Re-work how we describe the licence of Rust in our distributions 2024-12-09 10:18:55 +00:00
package.json Update browser-ui-test version to 0.23.3 2026-01-27 21:14:25 +01:00
README.md Update Rust Foundation links in Readme 2025-03-16 19:03:40 -07:00
RELEASES.md Auto merge of #152506 - Urgau:rollup-MlGAszj, r=Urgau 2026-02-12 03:44:50 +00:00
REUSE.toml Omit standard copyright notice 2026-01-26 17:31:34 +00:00
rust-bors.toml Add S-blocked to labels_blocking_approval 2026-01-19 16:01:16 +01:00
rustfmt.toml Rename tests/rustdoc into tests/rustdoc-html 2026-01-07 14:23:30 +01:00
triagebot.toml Move rustc_query_system::query::dep_graph to rustc_middle. 2026-02-14 18:46:05 +11:00
typos.toml Fix some typos of "similarity" 2026-01-29 23:40:37 +11:00
x Add uv to the list of possible python runners 2026-02-02 13:01:40 +01:00
x.ps1 use & instead of start-process in x.ps1 2023-12-09 09:46:16 -05:00
x.py Reformat Python code with ruff 2024-12-04 23:03:44 +01:00
yarn.lock Update npm package, remove another unused one, and fix some typing errors that started popping when we moved to yarn 2025-11-17 10:58:18 +02:00

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.

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.