Skip to content

Commit 047ef7e

Browse files
committed
rust 1.76.0
1 parent 4ba1606 commit 047ef7e

File tree

1 file changed

+12
-33
lines changed

1 file changed

+12
-33
lines changed

Formula/r/rust.rb

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ class Rust < Formula
44
license any_of: ["Apache-2.0", "MIT"]
55

66
stable do
7-
url "https://static.rust-lang.org/dist/rustc-1.75.0-src.tar.gz"
8-
sha256 "5b739f45bc9d341e2d1c570d65d2375591e22c2d23ef5b8a37711a0386abc088"
7+
url "https://static.rust-lang.org/dist/rustc-1.76.0-src.tar.gz"
8+
sha256 "9e5cff033a7f0d2266818982ad90e4d3e4ef8f8ee1715776c6e25073a136c021"
99

1010
# From https://github.com/rust-lang/rust/tree/#{version}/src/tools
1111
resource "cargo" do
12-
url "https://github.com/rust-lang/cargo/archive/refs/tags/0.76.0.tar.gz"
13-
sha256 "52d57889715cdfe0070b13f6d4dbfc4affdafc763483269e78b6ebd7166fdb83"
12+
url "https://github.com/rust-lang/cargo/archive/refs/tags/0.77.0.tar.gz"
13+
sha256 "1c33e2feb197f848f082fdc074162328e231c2f68394e0e1d2dbbbf79c9fc3ec"
1414
end
1515
end
1616

@@ -47,31 +47,27 @@ class Rust < Formula
4747
resource "cargobootstrap" do
4848
on_macos do
4949
on_arm do
50-
url "https://static.rust-lang.org/dist/2023-11-16/cargo-1.74.0-aarch64-apple-darwin.tar.xz"
51-
sha256 "5c14e9b3a458d728d89e02f4e024b710d5b0eb8c45249066fe666d2094fbf233"
50+
url "https://static.rust-lang.org/dist/2023-12-28/cargo-1.75.0-aarch64-apple-darwin.tar.xz"
51+
sha256 "86320d22c192b7a531daed941bbc11d8c7d01b6490cb4b85e7aa7ff92b5baf65"
5252
end
5353
on_intel do
54-
url "https://static.rust-lang.org/dist/2023-11-16/cargo-1.74.0-x86_64-apple-darwin.tar.xz"
55-
sha256 "5c1c4f5985a48ad02bcff881c5a9c983218bc1eefc083403579147a3292ba073"
54+
url "https://static.rust-lang.org/dist/2023-12-28/cargo-1.75.0-x86_64-apple-darwin.tar.xz"
55+
sha256 "08c594b582141bfb3113b4325f567abe1cae5d5e075b0b2b56553f8bc59486b5"
5656
end
5757
end
5858

5959
on_linux do
6060
on_arm do
61-
url "https://static.rust-lang.org/dist/2023-11-16/cargo-1.74.0-aarch64-unknown-linux-gnu.tar.xz"
62-
sha256 "a18dc9132cf76ccba90bcbb53b56a4d37ebfb34845f61e79f7b5d4710a269647"
61+
url "https://static.rust-lang.org/dist/2023-12-28/cargo-1.75.0-aarch64-unknown-linux-gnu.tar.xz"
62+
sha256 "cf367bccbc97ba86b4cf8a0141c9c270523e38f865dc7220b3cfdd79b67200ed"
6363
end
6464
on_intel do
65-
url "https://static.rust-lang.org/dist/2023-11-16/cargo-1.74.0-x86_64-unknown-linux-gnu.tar.xz"
66-
sha256 "f219386d4569c40b660518e99267afff428c13bf980bda7a614c8d4038d013f6"
65+
url "https://static.rust-lang.org/dist/2023-12-28/cargo-1.75.0-x86_64-unknown-linux-gnu.tar.xz"
66+
sha256 "6ac164e7da969a1d524f747f22792e9aa08bc7446f058314445a4f3c1d31a6bd"
6767
end
6868
end
6969
end
7070

71-
# Fixes 'could not read dir ".../codegen-backends"' on 12-arm64.
72-
# See https://github.com/Homebrew/homebrew-core/pull/154526#issuecomment-1814795860
73-
patch :DATA
74-
7571
def install
7672
# Ensure that the `openssl` crate picks up the intended library.
7773
# https://docs.rs/openssl/latest/openssl/#manual
@@ -199,20 +195,3 @@ def check_binary_linkage(binary, library)
199195
assert missing_linkage.empty?, "Missing linkage: #{missing_linkage.join(", ")}"
200196
end
201197
end
202-
203-
__END__
204-
diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs
205-
index 7021a95..af69860 100644
206-
--- a/src/bootstrap/src/core/build_steps/compile.rs
207-
+++ b/src/bootstrap/src/core/build_steps/compile.rs
208-
@@ -592,7 +592,9 @@ impl Step for StdLink {
209-
.join("stage0/lib/rustlib")
210-
.join(&host)
211-
.join("codegen-backends");
212-
- builder.cp_r(&stage0_codegen_backends, &sysroot_codegen_backends);
213-
+ if stage0_codegen_backends.exists() {
214-
+ builder.cp_r(&stage0_codegen_backends, &sysroot_codegen_backends);
215-
+ }
216-
}
217-
}
218-
}

0 commit comments

Comments
 (0)