From 179a9c3f3a3ba75d738723a895fe54e63a5a370f Mon Sep 17 00:00:00 2001 From: Internet1235 <135099493+Internet1235@users.noreply.github.com> Date: Wed, 15 Jul 2026 16:13:39 +0800 Subject: [PATCH] rust: update to 1.97.0 --- lang/rust/Makefile | 4 ++-- lang/rust/patches/0001-Update-xz2-and-use-it-static.patch | 2 +- lang/rust/rust-values.mk | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lang/rust/Makefile b/lang/rust/Makefile index 7d923579a4..36994d1ce9 100644 --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -5,12 +5,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=rust -PKG_VERSION:=1.96.0 +PKG_VERSION:=1.97.0 PKG_RELEASE:=1 PKG_SOURCE:=rustc-$(PKG_VERSION)-src.tar.xz PKG_SOURCE_URL:=https://static.rust-lang.org/dist/ -PKG_HASH:=b99ce16cdf0ecfc761b585ac84d131b46733465a02f8ecd0ff2de9713c62ee09 +PKG_HASH:=de002ee301c1b7422b0a7b09d7c4cb4924cd3224e6cfb24f065dad786dd3ed12 HOST_BUILD_DIR:=$(BUILD_DIR)/host/rustc-$(PKG_VERSION)-src PKG_MAINTAINER:=Luca Barbato diff --git a/lang/rust/patches/0001-Update-xz2-and-use-it-static.patch b/lang/rust/patches/0001-Update-xz2-and-use-it-static.patch index c8ba0cecb9..641d082c50 100644 --- a/lang/rust/patches/0001-Update-xz2-and-use-it-static.patch +++ b/lang/rust/patches/0001-Update-xz2-and-use-it-static.patch @@ -17,4 +17,4 @@ Subject: [PATCH] Update xz2 and use it static +xz2 = { version = "0.1", features = ["static"] } # Dependencies needed by the build-metrics feature - sysinfo = { version = "0.38.4", default-features = false, optional = true, features = ["system"] } + sysinfo = { version = "0.39.2", default-features = false, optional = true, features = ["system"] } diff --git a/lang/rust/rust-values.mk b/lang/rust/rust-values.mk index e1dbbbccae..8e49409ff6 100644 --- a/lang/rust/rust-values.mk +++ b/lang/rust/rust-values.mk @@ -32,10 +32,12 @@ CARGO_RUSTFLAGS+=-Ctarget-feature=-crt-static $(RUSTC_LDFLAGS) ifeq ($(HOST_OS),Darwin) ifeq ($(HOST_ARCH),arm64) RUSTC_HOST_ARCH:=aarch64-apple-darwin + else ifeq ($(HOST_ARCH),x86_64) + RUSTC_HOST_ARCH:=x86_64-apple-darwin endif endif -# mips64 openwrt has a specific targed in rustc +# mips64 openwrt has a specific target in rustc ifeq ($(ARCH),mips64) RUSTC_TARGET_ARCH:=$(REAL_GNU_TARGET_NAME) else