{"id":31129079,"url":"https://github.com/ceejbot/formulaic","last_synced_at":"2026-02-16T00:14:31.617Z","repository":{"id":296610158,"uuid":"993927275","full_name":"ceejbot/formulaic","owner":"ceejbot","description":"Create homebrew formulas for simple rust crate bins.","archived":false,"fork":false,"pushed_at":"2025-08-18T00:10:47.000Z","size":51,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"latest","last_synced_at":"2026-01-27T07:21:55.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ceejbot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-31T20:28:50.000Z","updated_at":"2025-12-20T06:13:46.000Z","dependencies_parsed_at":"2026-02-15T22:10:01.292Z","dependency_job_id":null,"html_url":"https://github.com/ceejbot/formulaic","commit_stats":null,"previous_names":["ceejbot/formulaic"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ceejbot/formulaic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fformulaic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fformulaic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fformulaic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fformulaic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceejbot","download_url":"https://codeload.github.com/ceejbot/formulaic/tar.gz/refs/heads/latest","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fformulaic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29494625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T00:00:57.352Z","status":"ssl_error","status_checked_at":"2026-02-15T23:56:34.338Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-18T01:52:02.548Z","updated_at":"2026-02-16T00:14:31.605Z","avatar_url":"https://github.com/ceejbot.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# formulaic\n\n`formulaic` generates Homebrew formula files from GitHub release assets. It supports Rust projects via `Cargo.toml` and any project via a `formulaic.toml` manifest. It is intended to be run in a GitHub action that's generating a release, though it can also be run locally after a release has been created.\n\n## Usage\n\nCreate a GitHub personal access token with _read_ access to the repository you're creating formulas for. Give it _write_ access to your Homebrew tap repo if you're also using this token in a workflow that updates the tap. Export that token as `GITHUB_ACCESS_TOKEN` or `GITHUB_TOKEN`.\n\n```\nformulaic [OPTIONS] [MANIFEST]\n```\n\nIf no manifest path is given, formulaic searches the current directory in this order:\n\n1. `.config/formulaic.toml`\n2. `.formulaic.toml`\n3. `formulaic.toml`\n4. `Cargo.toml`\n\nThe tool writes `{executable}.rb` to the working directory (or `--output-dir`) and prints the path to stdout. Use `--dry-run` to preview without writing.\n\n### Options\n\n| Flag | Short | Description |\n|------|-------|-------------|\n| `--gh-cli-strategy` | `-g` | Use the `gh` CLI download strategy (useful for private repos) |\n| `--local` | `-l` | Use only local data from a `dist/` directory instead of the GitHub API |\n| `--bin \u003cNAME\u003e` | | Generate a formula for a specific binary only |\n| `--all` | | Generate formulas for all binaries (default when more than one exists) |\n| `--output-dir \u003cDIR\u003e` | `-o` | Write formula files to this directory |\n| `--dry-run` | | Preview formulas without writing files |\n| `--template \u003cFILE\u003e` | `-t` | Use a custom formula template (upon/Jinja2 syntax) |\n\n## `formulaic.toml`\n\nFor non-Rust projects, create a `formulaic.toml` (or `.formulaic.toml`, or `.config/formulaic.toml`) with your project metadata:\n\n```toml\nname = \"my-tool\"\nversion = \"1.0.0\"\ndescription = \"What my tool does\"\nhomepage = \"https://github.com/owner/my-tool\"\nlicense = \"MIT\"\nrepository = \"https://github.com/owner/my-tool\"\ngh-cli-strategy = true\n```\n\nRequired fields: `name`, `version`. All others are optional.\n\nSetting `gh-cli-strategy = true` in the manifest is equivalent to passing `--gh-cli-strategy` on the command line. The CLI flag and the manifest field are OR'd together — either one enables the strategy.\n\n## The `gh` CLI download strategy\n\nThe `--gh-cli-strategy` flag generates a formula with an embedded download strategy that uses the [`gh` CLI tool](https://cli.github.com). This lets an authenticated `gh` download release artifacts from private repos, assuming you can tap the repo to begin with. This is not an official Homebrew strategy, but a best-effort implementation.\n\n## Examples\n\n`formulaic` self-publishes to brew in [its release workflow](./.github/workflows/release.yml). Another working example is in the [justfile](./.justfile).\n\n## Limitations\n\nMulti-binary support (`--bin`, `--all`) works for Cargo projects but is stubbed for generic manifests — a `formulaic.toml` project always produces a single formula. Workspace support is untested.\n\n## License\n\nThis code is licensed via [the Parity Public License.](https://paritylicense.com) This license requires people who build on top of this source code to share their work with the community, too. See the license text for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceejbot%2Fformulaic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceejbot%2Fformulaic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceejbot%2Fformulaic/lists"}