[Thiago Cafe] Programming is fun!

Adding your rust project to brew

Created by Thiago Guedes on 2024-09-04 02:06:39

Tags:

This is a body example Please remove it and replace with your content

brew create --rust https://gitlab.com/thiagomg/texted.git --HEAD --set-name 'texted' --set-version '1.0.0' --tap thiagomg/texted


Add url

# Documentation: https://docs.brew.sh/Formula-Cookbook
#                https://rubydoc.brew.sh/Formula
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Texted < Formula
  desc ""
  homepage ""
  url "https://gitlab.com/thiagomg/texted.git", tag: "v3.3.0"
  license ""
  head "https://gitlab.com/thiagomg/texted.git"

  depends_on "rust" => :build

  def install
    system "cargo", "install", *std_cargo_args
  end

  test do
    # `test do` will create, run in and delete a temporary directory.
    #
    # This test will fail and we won't accept that! For Homebrew/homebrew-core
    # this will need to be a test that verifies the functionality of the
    # software. Run the test with `brew test texted`. Options passed
    # to `brew install` such as `--HEAD` also need to be provided to `brew test`.
    #
    # The installed folder is not in the path, so use the entire path to any
    # executables being tested: `system bin/"program", "do", "something"`.
    system "false"
  end
end

Tell me your opinion!

Reach me on Twitter - @thiedri