Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dist: bump rustup version to 1.27.0 #3653

Merged
merged 4 commits into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,76 @@
# Changelog

## [1.27.0] - 2024-01-29

This long-awaited Rustup release has gathered all the new features and fixes since April 2023.
These changes include improvements in Rustup's maintainability, user experience, compatibility and documentation quality.

The headlines of this release are:
- Basic support for `fish` shell has been added.
- Support for the `loongarch64-unknown-linux-gnu` host platform has been added.

Also, it's worth mentioning that Dirkjan Ochtman and rami3l have joined the team and are coordinating this new release.

Finally, the project seems to have attracted a total of 21 new contributors within this release cycle. Looking forward to seeing you again in the future!

### Added

- Add basic support for `fish` shell [pr#3108]
- Add the `RUSTUP_TERM_COLOR` environment variable to force the use of colored output [pr#3435]
- Improve `rustup-init.sh`'s compatibility with `ksh` and `zsh` [pr#3475]
- Add a warning when running under Rosetta 2 [pr#3068]
- Add browser detection for RISC-V 64 platform [pr#3642]
- Add a warning when removing the last/host target for a toolchain [pr#3637]

### Changed

- Upgrade `clap` to v4 [pr#3444]
- Fix incorrect platform detection on macOS aarch64 due to Rosetta 2 [pr#3438]
- Fix incorrect platform detection on 32-bit Linux userland with a 64-bit kernel [pr#3488] [pr#3490]
- Improve Windows system32 DLL loading mechanism [pr#3493]
- Improve suggestions about missing components [pr#3453]
- Fix handling of toolchain names with special characters [pr#3518]
- Fix panic in `component list --toolchain stable` [pr#3548]
- Rename `llvm-tools-preview` component to `llvm-tools` [pr#3578]
- Bump a lot of dependencies to their latest versions [pr#renovate-bot]

Thanks go to:

- Anthony Perkins (acperkins)
- Tianqi (airstone42)
- Alex Gaynor (alex)
- Alex Hudspith (alexhudspith)
- Alan Somers (asomers)
- Burak Emir (burakemir)
- Chris Denton (ChrisDenton)
- cui fliter (cuishuang)
- Dirkjan Ochtman (djc)
- Dezhi Wu (dzvon)
- Eric Swanson (ericswanson-dfinity)
- Prikshit Gautam (gautamprikshit1)
- hev (heiher)
- 二手掉包工程师 (hi-rustin)
- Kamila Borowska (KamilaBorowska)
- klensy (klensy)
- Jakub Beránek (Kobzol)
- Kornel (kornelski)
- Matt Harding (majaha)
- Mathias Brossard (mbrossard)
- Christian Thackston (nan60)
- Olivier Lemasle (olivierlemasle)
- Chih Wang (ongchi)
- Pavel Roskin (proski)
- rami3l (rami3l)
- Robert Collins (rbtcollins)
- Sandesh Pyakurel (Sandesh-Pyakurel)
- Waffle Maybe (WaffleLapkin)
- Jubilee (workingjubilee)
- WÁNG Xuěruì (xen0n)
- Yerkebulan Tulibergenov (yerke)
- Renovate Bot (renovate)

**Full Changelog**: https://github.com/rust-lang/rustup/compare/1.26.0...1.27.0

## [1.26.0] - 2023-04-05

This version of Rustup involves a significant number of internal refactors, both in terms
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustup"
version = "1.26.0"
version = "1.27.0"
edition = "2021"
description = "Manage multiple rust installations with ease"
homepage = "https://github.com/rust-lang/rustup"
Expand Down
86 changes: 86 additions & 0 deletions ci/changelog_helper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import json
import re
import subprocess
import sys


def extract_usernames(text):
return sorted(set(re.findall(r"@([\w-]+)", text)), key=str.casefold)


def github_name(username):
# url = f"https://api.github.com/users/{username}"
# response = urlopen(url)
if username == "renovate":
return "Renovate Bot"
try:
response = subprocess.check_output(
[
"gh",
"api",
"-H",
"Accept: application/vnd.github+json",
"-H",
"X-GitHub-Api-Version: 2022-11-28",
f"/users/{username}",
]
)
data = json.loads(response)
return data["name"]
except Exception as e:
print("An error occurred:", str(e))


def read_file(file_name):
try:
with open(file_name, "r") as file:
return file.read()
except FileNotFoundError:
print("File not found")
except Exception as e:
print("An error occurred:", str(e))


def help():
print("Usage:")
print(" python changelog_helper.py usernames GITHUB_GENERATED_CHANGELOG")
print(" python changelog_helper.py replace-nums CHANGELOG_MARKDOWN")
print()
print(
"A logged-in GitHub CLI (https://cli.github.com) is required for the `usernames` subcommand"
)
print(
"For a GitHub-generated changelog, see https://github.com/rust-lang/rustup/releases/new"
)
sys.exit(1)


def main():
if len(sys.argv) < 3:
help()

_, subcmd, file_name = sys.argv[:3]

if subcmd == "usernames":
content = read_file(file_name)
if not content:
return
for username in extract_usernames(content):
print(f"- {github_name(username)} ({username})")
elif subcmd == "replace-nums":
content = read_file(file_name)
footer = ""
if not content:
return
for match in re.findall(r"(?<=#)(\d+)", content):
# Replace issue number with fully-qualified link
link = f"[pr#{match}]"
footer += f"{link}: https://github.com/rust-lang/rustup/pull/{match}\n"
content = content.replace(f"#{match}", link)
print(f"{content}\n{footer}")
else:
help()


if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion download/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "download"
version = "1.26.0"
version = "1.27.0"
edition = "2021"
license = "MIT OR Apache-2.0"

Expand Down
2 changes: 1 addition & 1 deletion rustup-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUSTUP_UPDATE_ROOT="${RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}"
# NOTICE: If you change anything here, please make the same changes in setup_mode.rs
usage() {
cat <<EOF
rustup-init 1.26.0 (577bf51ae 2023-04-05)
rustup-init 1.27.0 (30fe8f03f 2024-01-29)

The installer for rustup

Expand Down
Loading