| commit | 69d4d5fc0e4db60272aac85ef27ecccef5764f3a | [log] [tgz] |
|---|---|---|
| author | bors <bors@rust-lang.org> | Sun Nov 16 23:17:36 2025 +0000 |
| committer | bors <bors@rust-lang.org> | Sun Nov 16 23:17:36 2025 +0000 |
| tree | ac0af07a9a02b268aed007a46cbf59c6723c66b3 | |
| parent | 518b428304e0008859cb1fd81d1ac20efb2a064a [diff] | |
| parent | 924843586b1e6c2ec06420817e5ba5cbc7dd740a [diff] |
Auto merge of #145809 - he32:installer-perf-fix-1, r=Mark-Simulacrum rust-installer/install-template.sh: improve efficiency, step 1. This round replaces repetitive pattern matching in the inner loop of this script using grep (which causes a `fork()` for each test) with built-in pattern matching in the Bourne shell using the `case` / `esac` construct. This in reference to https://github.com/rust-lang/rust/issues/80684 and is a separated-out request from https://github.com/rust-lang/rust-installer/pull/111 which apparently never got any review. The forthcoming planned "step 2" change builds on top of this change, and replaces the inner-loops needless uses of `sed` (which again causes a `fork()` for each instance) with the suffix removal constructs from the Bourne shell. Since this change touches lots of the same lines this change does, that pull request cannot be submitted before this one is accepted. Hopefully this first step is less controversial than the latter change.
Website | Getting started | Learn | Documentation | Contributing
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
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).
Read “Installation” from The Book.
If you really want to install from source (though this is not recommended), see INSTALL.md.
See https://www.rust-lang.org/community for a list of chat platforms and forums.
See CONTRIBUTING.md.
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.
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.