{"id":21855614,"url":"https://github.com/zeropsio/recipe-rust","last_synced_at":"2026-04-10T23:11:07.980Z","repository":{"id":244264997,"uuid":"813733641","full_name":"zeropsio/recipe-rust","owner":"zeropsio","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-27T06:50:12.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T06:24:29.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zeropsio.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-11T16:25:44.000Z","updated_at":"2024-12-05T04:53:17.000Z","dependencies_parsed_at":"2024-06-27T07:52:23.903Z","dependency_job_id":null,"html_url":"https://github.com/zeropsio/recipe-rust","commit_stats":null,"previous_names":["zeropsio/recipe-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeropsio","download_url":"https://codeload.github.com/zeropsio/recipe-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244852683,"owners_count":20521160,"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":[],"created_at":"2024-11-28T02:16:36.108Z","updated_at":"2025-10-24T17:39:29.356Z","avatar_url":"https://github.com/zeropsio.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zerops x Rust\nThis is the most bare-bones example of Rust app running on [Zerops](https://zerops.io) — as few libraries as possible, just a simple endpoint with connnect, read and write to a Zerops PostgreSQL database.\n\n![rust](https://github.com/zeropsio/recipe-shared-assets/blob/main/covers/svg/cover-rust.svg)\n\n\u003cbr /\u003e\n\n## Deploy on Zerops\nYou can either click the deploy button to deploy directly on Zerops, or manually copy the [import yaml](https://github.com/zeropsio/recipe-rust/blob/main/zerops-project-import.yml) to the import dialog in the Zerops app.\n\n[![Deploy on Zerops](https://github.com/zeropsio/recipe-shared-assets/blob/main/deploy-button/green/deploy-button.svg)](https://app.zerops.io/recipe/rust)\n\n\u003cbr/\u003e\n\n## Recipe features\n- **Rust 1.76** app running on a load balanced **Zerops Rust** service\n- Zerops **PostgreSQL 16** service as database\n- Healthcheck setup example\n- Utilization of Zerops' built-in **environment variables** system\n- Utilization of Zerops' built-in **log management**\n\n\u003cbr/\u003e\n\n## Production vs. development\n\nBase of the recipe is ready for production, the difference comes down to:\n\n- Use highly available version of the PostgreSQL database (change *mode* from `NON_HA` to `HA` in recipe YAML, `db` service section)\n- Use at least two containers for the Rust service to achieve high reliability and resilience (add `minContainers: 2` in recipe YAML, `api` service section)\n\nFurther things to think about when running more complex, highly available Rust production apps on Zerops:\n\n- Containers are volatile - use Zerops object storage to store your files\n- Use Zerops Redis (KeyDB) for caching, storing sessions and pub/sub messaging\n- Use more advanced logging lib, such as [slog](https://github.com/slog-rs/slog)\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\nNeed help setting your project up? Join [Zerops Discord community](https://discord.com/invite/WDvCZ54).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeropsio%2Frecipe-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeropsio%2Frecipe-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeropsio%2Frecipe-rust/lists"}