{"id":20698026,"url":"https://github.com/fly-apps/hello-rust","last_synced_at":"2025-12-16T06:17:01.782Z","repository":{"id":42126967,"uuid":"355523959","full_name":"fly-apps/hello-rust","owner":"fly-apps","description":"Rust example app on Fly.io","archived":false,"fork":false,"pushed_at":"2024-01-18T23:42:02.000Z","size":18,"stargazers_count":69,"open_issues_count":1,"forks_count":14,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-17T18:54:39.665Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fly-apps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-04-07T11:45:07.000Z","updated_at":"2024-12-04T17:46:12.000Z","dependencies_parsed_at":"2024-01-19T01:02:42.848Z","dependency_job_id":null,"html_url":"https://github.com/fly-apps/hello-rust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Fhello-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Fhello-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Fhello-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Fhello-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fly-apps","download_url":"https://codeload.github.com/fly-apps/hello-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242967659,"owners_count":20214280,"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-17T00:21:42.449Z","updated_at":"2025-12-16T06:16:56.749Z","avatar_url":"https://github.com/fly-apps.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hello Rust!\n\nThis is an example app demonstrating how to deploy a Rust program on Fly.io\n\n## Structure\n\n### App\n\nWarp-based \"hello world\" app, as simple as it can get.\n\n#### Binding to all addresses\n\nNoticed this line?\n\n```rust\n    warp::serve(routes)\n        // ipv6 + ipv6 any addr\n        .run(([0, 0, 0, 0, 0, 0, 0, 0], 8080))\n        .await;\n```\n\nThis listens to all addresses on both IPv4 and IPv6, on port 8080. It's important to do this because your app would otherwise need to know about the `172.19.0.0/16` IP it should bind to specifically. Binding to IPv6 is not required, but is likely a good idea going forward.\n\n### fly.toml\n\nA fairly standard `fly.toml` configuration, except for the `cmd` override:\n\n```toml\n[experimental]\ncmd = \"./hello\" # should be the name of the binary you want to run\n```\n\n### Dockerfile\n\nThe most efficient way to create a Docker image for a Rust app is a simple Dockerfile.\n\nOur `Dockerfile` is heavily commented, but here's a short rundown:\n- Copy `Cargo.{toml,lock}` and build dependencies\n- Copy whole project and `cargo install` it\n- \n\n#### .dockerignore\n\nYou definitely want to ignore `/target` since this can get pretty hefty, adding to the build context's size, and slow down builds significantly.\n\n## Deploy\n\n```\nfly launch\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Fhello-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffly-apps%2Fhello-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Fhello-rust/lists"}