{"id":13637827,"url":"https://github.com/gsquire/rust_bin","last_synced_at":"2025-04-15T00:08:39.198Z","repository":{"id":66202780,"uuid":"251119478","full_name":"gsquire/rust_bin","owner":"gsquire","description":"A sample Rust service to test out Google Cloud Run","archived":false,"fork":false,"pushed_at":"2020-09-12T21:48:44.000Z","size":23,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T00:08:33.055Z","etag":null,"topics":["containers","google-cloud","rust"],"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/gsquire.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}},"created_at":"2020-03-29T19:46:52.000Z","updated_at":"2022-08-22T17:28:31.000Z","dependencies_parsed_at":"2023-03-01T09:16:16.473Z","dependency_job_id":null,"html_url":"https://github.com/gsquire/rust_bin","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/gsquire%2Frust_bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsquire%2Frust_bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsquire%2Frust_bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsquire%2Frust_bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gsquire","download_url":"https://codeload.github.com/gsquire/rust_bin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981267,"owners_count":21193147,"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":["containers","google-cloud","rust"],"created_at":"2024-08-02T01:00:34.677Z","updated_at":"2025-04-15T00:08:39.183Z","avatar_url":"https://github.com/gsquire.png","language":"Rust","funding_links":[],"categories":["Run popular languages and stacks"],"sub_categories":["Languages"],"readme":"# rust_bin\n[![CI](https://github.com/gsquire/rust_bin/workflows/CI/badge.svg)](https://github.com/gsquire/rust_bin/actions)\n\nThis is a stateless HTTP application used to try out Google's [Cloud Run](https://cloud.google.com/run)\nenvironment. It is a simple service similar to [httpbin](https://httpbin.org/) with far fewer\nfeatures.\n\n## Disclosure\nI am in no way affiliated with Google and just wanted to give this service a spin. Being able to use\nany language and Linux OS without having to worry about provisioning was appealing to me and I wanted\nto test it out.\n\nThere is no guarantee that the sample URL will always be available as well. If it becomes costly, then\nI will delete the project but code will remain in this repository.\n\n## Trying it Out\nIf you want to test a running instance, you can see the API by hitting the index page\n[here](https://rustbin-j5pswym3zq-uw.a.run.app/). It will display a few routes that you can then\nuse `curl` or your favorite HTTP library to run requests against.\n\nSample Request:\n\n```sh\n# If you have `jq` installed:\ncurl -s https://rustbin-j5pswym3zq-uw.a.run.app/user-agent | jq .\n\n# Response:\n{\n  \"user-agent\": \"curl/7.54.0\"\n}\n```\n\n## Setup\nIf you wish to run the service locally, you can use the specified `Dockerfile` and build it with the\nfollowing command:\n\n```sh\ndocker build -t rustbin:latest .\n```\n\n```sh\ndocker run -it -e PORT=8080 -p 8080:8080 rustbin:latest\n```\n\nIf you have a nightly Rust compiler locally you can build and test the service via these commands:\n\n```sh\ncargo +nightly build \u0026\u0026 cargo +nightly test\n```\n\n## Guide\nI followed [this guide](https://cloud.google.com/run/docs/quickstarts/build-and-deploy) to configure\nthe `Dockerfile` and deploy it to GCP.\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsquire%2Frust_bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsquire%2Frust_bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsquire%2Frust_bin/lists"}