Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

probe-rs-tools 0.24.0 (new formula) #192348

Merged
merged 2 commits into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions Formula/p/probe-rs-tools.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
class ProbeRsTools < Formula
desc "Collection of on chip debugging tools to communicate with microchips"
homepage "https://probe.rs"
url "https://github.com/probe-rs/probe-rs/archive/refs/tags/v0.24.0.tar.gz"
sha256 "8a7477a4b04b923ef2f46a91d5491d94e50a57259efef78d4c0800a4a46e4aee"
license "Apache-2.0"
head "https://github.com/probe-rs/probe-rs.git", branch: "master"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "d84e0446b2ce2ff46054933885c58fecc607907233de2a8914e01ad91676a9d2"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "099d23a256deba345a765ef686d69f2a7c82f3ea6f733c3e00d788922dde1aaa"
sha256 cellar: :any_skip_relocation, arm64_ventura: "af610c338d9565acc2ab9f0784593574b336f90e7da589ab8d0c64f1d7c1a3e0"
sha256 cellar: :any_skip_relocation, sonoma: "8ad63c7bf0a25744817ea1ab7275348736ef0add2725099192323845d3a798dc"
sha256 cellar: :any_skip_relocation, ventura: "fb5c33cc19d727874515db05d72210f06f3f539dc6c13c9b1ceae7a716c426bb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b0e4be3bbda804d9e0260fcc235cf8aa43fecc59f8f733332630f926360a8cd4"
end

depends_on "cmake" => :build
depends_on "rust" => :build

chenrui333 marked this conversation as resolved.
Show resolved Hide resolved
uses_from_macos "bzip2"

on_linux do
depends_on "pkg-config" => :build
depends_on "systemd" # for libudev
end

def install
system "cargo", "install", *std_cargo_args(path: "probe-rs-tools")
end

test do
output = shell_output("#{bin}/probe-rs chip list")
assert_match "nRF52833_xxAA", output # micro:bit v2
assert_match "STM32F303VCTx", output # STM32F3DISCOVERY
end
end
Loading