{"id":15691641,"url":"https://github.com/mre/cargo-deliver","last_synced_at":"2025-05-07T23:44:02.247Z","repository":{"id":57533942,"uuid":"118277190","full_name":"mre/cargo-deliver","owner":"mre","description":"📦 Run goreleaser with cargo to publish pre-built Rust binaries on Github/Dockerhub/Artifactory","archived":false,"fork":false,"pushed_at":"2020-10-02T11:40:52.000Z","size":20,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:43:56.397Z","etag":null,"topics":["artifactory","binary","deployment","docker","release"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-20T20:14:59.000Z","updated_at":"2023-07-13T21:12:45.000Z","dependencies_parsed_at":"2022-09-26T18:21:23.411Z","dependency_job_id":null,"html_url":"https://github.com/mre/cargo-deliver","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mre%2Fcargo-deliver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mre%2Fcargo-deliver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mre%2Fcargo-deliver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mre%2Fcargo-deliver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mre","download_url":"https://codeload.github.com/mre/cargo-deliver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973617,"owners_count":21834105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["artifactory","binary","deployment","docker","release"],"created_at":"2024-10-03T18:22:36.903Z","updated_at":"2025-05-07T23:44:02.229Z","avatar_url":"https://github.com/mre.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deprecated\n\nThis project is no longer under active development.\nYour best bet might be https://medium.com/@jondot/shipping-rust-binaries-with-goreleaser-d5aa42a46be0.\nPlease let us know if you find a better solution and we'll update that section.\n\n# cargo-deliver\n\n\n## What is it?\n\nThis will use [goreleaser](https://goreleaser.com) to deploy your Rust binaries to Github/Artifactory/Dockerhub.\nIt's still experimental and will only work once/if [Rust support gets added to goreleaser](https://github.com/goreleaser/goreleaser/issues/496#issuecomment-359209326).\n\n\n## Installation\n\n```\ncargo install cargo-deliver\n```\n\nTo upgrade:\n\n```\ncargo install --force cargo-deliver\n```\n\nOr clone and build with `$ cargo build --release` then place in your $PATH.\n\n\n## Usage\n\n1. Add a `.goreleaser.yml` to your project. Here is an example:\n\n```yaml\nrust:\n- target:\n  - x86_64-apple-darwin\n  binary: cargo-deliver\n\n# Archive customization\narchive:\n  format: tar.gz\n  replacements:\n    amd64: 64-bit\n    darwin: macOS\n    linux: Linux\n```\n\nThis will build your Rust application as a static binary for macOS and as a `tar.gz` archive.  \nFor all possible options, see the [goreleaser docs](http://goreleaser.com/).  \n\nYou can get a list of all possible targets with \n\n```\nrustc --print target-list\n```\n\n\n2. Tag your current commit, e.g.\n\n```\ngit tag -a \"v0.1.0\"\n```\n\n3. If you want to deploy to Github, you need to export a `GITHUB_TOKEN` environment variable, which should contain a GitHub token with the repo scope selected. It will be used to deploy releases to your GitHub repository. Create a token [here](https://github.com/settings/tokens/new).\n\n4. Run the following command\n\n```\ncargo deliver\n```\n\n\n## Similar tools\n\n* [cargo-docker](https://github.com/DenisKolodin/cargo-docker) - A cargo subcommand to build Rust code inside a Docker and get the result back.\n* [cargo-hublish](https://github.com/chasinglogic/cargo-hublish) - A cargo subcommand for publishing Rust projects to Github (not supporting different build targets).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmre%2Fcargo-deliver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmre%2Fcargo-deliver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmre%2Fcargo-deliver/lists"}