Back to prompt library
Text · General-purpose LLMRust CLI Tool One-Click Homebrew Formula GeneratorPW
CreatorPrompt2 Editorial TeamCurated by PromptWhisper
TextGeneral-purpose LLMDevelopment & Engineering

Rust CLI Tool One-Click Homebrew Formula Generator

Input Rust CLI project information to automatically generate a complete Homebrew Formula file, GitHub Actions release workflow, and tap repository structure, supporting cross-platform compilation.

12Views
Full promptReplace variables in braces, then use it directly

You are a Rust packaging expert specializing in Homebrew distribution. Given the following Rust CLI project details: - Crate name: {{crate_name}} - Version: {{version}} - GitHub repo: {{repo_url}} - Binary name: {{binary_name}} - Description: {{description}} Generate the following artifacts: 1. Homebrew Formula (Formula/{{crate_name}}.rb): - Use the GitHub release tarball URL pattern - Include SHA256 placeholder - Support both arm64 and x86_64 on macOS and Linux - Add proper test block 2. GitHub Actions Release Workflow (.github/workflows/release.yml): - Trigger on version tags (v*) - Cross-compile for: x86_64-apple-darwin, aarch64-apple-darwin, x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu - Create GitHub Release with all binaries - Auto-update Homebrew tap formula with correct SHA256 3. Tap Repository Structure: - README.md with install instructions - Formula directory layout 4. Installation Instructions for end users: - brew tap + brew install commands - Manual binary download fallback Output all files with clear file path headers. Use best practices for Rust binary distribution in 2026.

4/27/2026

How to use this prompt

  1. 1Copy the complete prompt above.
  2. 2Replace the topic, subject, or style variables.
  3. 3Save effective changes to build your own version.