From 6e1c9a9718ef2568223988c97ffcf24b0d6f6ade Mon Sep 17 00:00:00 2001 From: Adrian Ho Date: Thu, 19 Jan 2023 22:39:36 +0800 Subject: [PATCH] rust: add 1.66.1 bottle. --- Formula/rust.rb | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/Formula/rust.rb b/Formula/rust.rb index 99fd07f5d18..c738bb64b34 100644 --- a/Formula/rust.rb +++ b/Formula/rust.rb @@ -4,20 +4,20 @@ class Rust < Formula license any_of: ["Apache-2.0", "MIT"] stable do - url "https://static.rust-lang.org/dist/rustc-1.65.0-src.tar.gz" - sha256 "5828bb67f677eabf8c384020582b0ce7af884e1c84389484f7f8d00dd82c0038" + url "https://static.rust-lang.org/dist/rustc-1.66.1-src.tar.gz" + sha256 "5b3c933a94c72187705d4ee293198babfdd09442f5937fbd685db3a81f4959ba" # From https://github.com/rust-lang/rust/tree/#{version}/src/tools resource "cargo" do url "https://github.com/rust-lang/cargo.git", - tag: "0.66.0", - revision: "4bc8f24d3e899462e43621aab981f6383a370365" + tag: "0.67.1", + revision: "ad779e08be893e57a9e17a810223a3e966f8c0d8" end end bottle do root_url "https://github.com/gromgit/homebrew-core-mojave/releases/download/rust" - sha256 cellar: :any_skip_relocation, mojave: "a310526f99fc33e93aef7df75719d3d7702424331f4bb84ad4bc0ed08a29454d" + sha256 cellar: :any, mojave: "c4a880e30293b4d70281f575a8f6c5a3bade3e9b1958ad555a86758ed68568ca" end head do @@ -30,8 +30,7 @@ class Rust < Formula depends_on "cmake" => :build depends_on "ninja" => :build - depends_on "python@3.10" => :build - depends_on "libssh2" + depends_on "python@3.11" => :build depends_on "openssl@1.1" depends_on "pkg-config" @@ -42,24 +41,30 @@ class Rust < Formula on_macos do # From https://github.com/rust-lang/rust/blob/#{version}/src/stage0.json on_arm do - url "https://static.rust-lang.org/dist/2022-09-22/cargo-1.64.0-aarch64-apple-darwin.tar.gz" - sha256 "dbb26b73baefc8351a7024f307445758fe1e9c18d83000358c02b80a5b1003b3" + url "https://static.rust-lang.org/dist/2022-11-03/cargo-1.65.0-aarch64-apple-darwin.tar.gz" + sha256 "40858f3078b277165c191b6478c2aba7bf0010162273e28e9964404993eba188" end on_intel do - url "https://static.rust-lang.org/dist/2022-09-22/cargo-1.64.0-x86_64-apple-darwin.tar.gz" - sha256 "e032116e22f6d3a4cb078f21031794e88f2a87f066625b8eb7623777e42d6eca" + url "https://static.rust-lang.org/dist/2022-11-03/cargo-1.65.0-x86_64-apple-darwin.tar.gz" + sha256 "40cbbd62013130d5208435dc45d6c91703eb6a469b6d8eacf746eedc6974ccc0" end end on_linux do # From: https://github.com/rust-lang/rust/blob/#{version}/src/stage0.json - url "https://static.rust-lang.org/dist/2022-09-22/cargo-1.64.0-x86_64-unknown-linux-gnu.tar.gz" - sha256 "12c2e61bf7de8b37c16d0323972a6085f9e01ee6d716549dd1ef4a92481b0610" + on_arm do + url "https://static.rust-lang.org/dist/2022-11-03/cargo-1.65.0-aarch64-unknown-linux-gnu.tar.gz" + sha256 "406d244def7ea78ed75ca4852498a1b632360626fb5fec69a8442b14ef04aee8" + end + on_intel do + url "https://static.rust-lang.org/dist/2022-11-03/cargo-1.65.0-x86_64-unknown-linux-gnu.tar.gz" + sha256 "f7d67cf3b34a7d82fa2b22d42ad2aed20ee8f4be95ab97f88b8bf03a397217c2" + end end end def install - ENV.prepend_path "PATH", Formula["python@3.10"].opt_libexec/"bin" + ENV.prepend_path "PATH", Formula["python@3.11"].opt_libexec/"bin" # Ensure that the `openssl` crate picks up the intended library. # https://crates.io/crates/openssl#manual-configuration