From f389681d9c479436f7b52b79685898866e04acd5 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 25 Jul 2024 12:51:08 +0000 Subject: [PATCH] rust 1.80.0 rust: cargo 0.81.0 and bootstrap 2024-06-13/1.79.0 Signed-off-by: Rui Chen rust: add note about libgit2 1.8 Signed-off-by: Rui Chen --- Formula/r/rust.rb | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/Formula/r/rust.rb b/Formula/r/rust.rb index 9a5d1b1953031..292896c4d6256 100644 --- a/Formula/r/rust.rb +++ b/Formula/r/rust.rb @@ -2,16 +2,15 @@ class Rust < Formula desc "Safe, concurrent, practical language" homepage "https://www.rust-lang.org/" license any_of: ["Apache-2.0", "MIT"] - revision 1 stable do - url "https://static.rust-lang.org/dist/rustc-1.79.0-src.tar.gz" - sha256 "172ecf3c7d1f9d9fb16cd2a628869782670416ded0129e524a86751f961448c0" + url "https://static.rust-lang.org/dist/rustc-1.80.0-src.tar.gz" + sha256 "6f606c193f230f6b2cae4576f7b24d50f5f9b25dff11dbf9b22f787d3521d672" # From https://github.com/rust-lang/rust/tree/#{version}/src/tools resource "cargo" do - url "https://github.com/rust-lang/cargo/archive/refs/tags/0.80.0.tar.gz" - sha256 "542efc5daa159e2942d454eb2815247a96589363977429bd473f8cac8a55636e" + url "https://github.com/rust-lang/cargo/archive/refs/tags/0.81.0.tar.gz" + sha256 "5d2ea954f1a8bf03389fe2cefc5603de180a0c0010aa66628a325007216ef862" end end @@ -44,32 +43,35 @@ class Rust < Formula uses_from_macos "curl" uses_from_macos "zlib" - # From https://github.com/rust-lang/rust/blob/#{version}/src/stage0.json + # From https://github.com/rust-lang/rust/blob/#{version}/src/stage0 resource "cargobootstrap" do on_macos do on_arm do - url "https://static.rust-lang.org/dist/2024-05-02/cargo-1.78.0-aarch64-apple-darwin.tar.xz" - sha256 "76b9a39eea441b31c6b26cc58ebff7095a64bc60788254c2525e752a1149688d" + url "https://static.rust-lang.org/dist/2024-06-13/cargo-1.79.0-aarch64-apple-darwin.tar.xz" + sha256 "2cc674f17c18b0c01e0e5a8e5caedc26b0f499d2cc10605cf1a838e2cad9ef7d" end on_intel do - url "https://static.rust-lang.org/dist/2024-05-02/cargo-1.78.0-x86_64-apple-darwin.tar.xz" - sha256 "4d4078695265c8489ee5dfefd87d26caa1755a4f46f56f6f07f2b7b7292416c8" + url "https://static.rust-lang.org/dist/2024-06-13/cargo-1.79.0-x86_64-apple-darwin.tar.xz" + sha256 "e1326c13b7437a72e061a2d662400c114ef87b73c45ef8823ea1b2bdc3140109" end end on_linux do on_arm do - url "https://static.rust-lang.org/dist/2024-05-02/cargo-1.78.0-aarch64-unknown-linux-gnu.tar.xz" - sha256 "5173f84a07d4cc6b19f27eda7464999c5886232ce8e54bf61b06617635d43fb9" + url "https://static.rust-lang.org/dist/2024-06-13/cargo-1.79.0-aarch64-unknown-linux-gnu.tar.xz" + sha256 "4ca5e9bd141b0111387ea1aa0355f87eb8d0da52fbc616cefa4ecde4997aa65b" end on_intel do - url "https://static.rust-lang.org/dist/2024-05-02/cargo-1.78.0-x86_64-unknown-linux-gnu.tar.xz" - sha256 "f8aacf7a101eb10dc000b8bf26de90a9d0ce678d02ccf70430ed20dd31ecec6b" + url "https://static.rust-lang.org/dist/2024-06-13/cargo-1.79.0-x86_64-unknown-linux-gnu.tar.xz" + sha256 "07fcadd27b645ad58ff4dae5ef166fd730311bbae8f25f6640fe1bfd2a1f3c3c" end end end def install + # relates to https://github.com/rust-lang/rust/pull/126507 + odie "bump to use libgit2 1.8" if version >= "1.81.0" + # Ensure that the `openssl` crate picks up the intended library. # https://docs.rs/openssl/latest/openssl/#manual ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix