-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" => :build | ||
depends_on "libssh2" | ||
depends_on "[email protected]" => :build | ||
depends_on "[email protected]" | ||
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 | ||
|