{"id":20236071,"url":"https://github.com/seotaro/cloud-run-with-rust","last_synced_at":"2026-07-01T23:32:08.369Z","repository":{"id":201161168,"uuid":"707073938","full_name":"seotaro/cloud-run-with-rust","owner":"seotaro","description":"Rust で実装して Cloud Run にデプロイする","archived":false,"fork":false,"pushed_at":"2023-10-20T01:19:51.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T14:48:24.499Z","etag":null,"topics":["cloudrun","rust"],"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/seotaro.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":"2023-10-19T07:09:54.000Z","updated_at":"2023-10-19T17:11:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"3431b711-a315-4be4-a123-19596748a9d5","html_url":"https://github.com/seotaro/cloud-run-with-rust","commit_stats":null,"previous_names":["seotaro/cloud-run-with-rust"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seotaro/cloud-run-with-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seotaro%2Fcloud-run-with-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seotaro%2Fcloud-run-with-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seotaro%2Fcloud-run-with-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seotaro%2Fcloud-run-with-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seotaro","download_url":"https://codeload.github.com/seotaro/cloud-run-with-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seotaro%2Fcloud-run-with-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35027341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cloudrun","rust"],"created_at":"2024-11-14T08:19:00.983Z","updated_at":"2026-07-01T23:32:08.347Z","avatar_url":"https://github.com/seotaro.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloud-run-with-rust\n\nRust で実装して Cloud Run にデプロイする\n\n【参考】\n[Cloud Run にサービスをデプロイする](https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-service-other-languages?hl=ja)\n\n## Run on local\n\nrun\n\n```bash\ncargo run\n```\n\nGET\n\n```bash\ncurl -X GET http://localhost:8080\n```\n\nPOST\n\n```bash\ncurl -d \"@pubsub-push-sample.json\" -X POST -H \"Content-Type: application/json\" http://localhost:8080\n```\n\n## Run on Cloud Run\n\ncloud settings\n\n```bash\ngcloud services enable cloudbuild.googleapis.com --project={PROJECT_ID} \ngcloud services enable run.googleapis.com --project={PROJECT_ID} \n```\n\nBuild \u0026 deploy\n\n```bash\ngcloud builds submit . --tag asia.gcr.io/{PROJECT_ID}/cloud-run-with-rust --project {PROJECT_ID} \ngcloud run deploy cloud-run-with-rust \\\n  --project {PROJECT_ID} \\\n  --image asia.gcr.io/{PROJECT_ID}/cloud-run-with-rust \\\n  --platform managed \\\n  --region asia-northeast1 \\\n  --memory 256Mi \\\n  --allow-unauthenticated\n```\n\nGET\n\n```bash\ncurl -X GET https://{endpoint}\n```\n\nPOST\n\n```bash\ncurl -d \"@pubsub-push-sample.json\" -X POST -H \"Content-Type: application/json\" https://{endpoint}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseotaro%2Fcloud-run-with-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseotaro%2Fcloud-run-with-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseotaro%2Fcloud-run-with-rust/lists"}