{"id":16112338,"url":"https://github.com/fitzy1321/rust-api-examples","last_synced_at":"2026-01-29T23:31:40.814Z","repository":{"id":242816441,"uuid":"810648363","full_name":"fitzy1321/rust-api-examples","owner":"fitzy1321","description":"Testing out various Rust API Frameworks","archived":false,"fork":false,"pushed_at":"2024-08-01T19:45:14.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-02T22:53:02.639Z","etag":null,"topics":["actix-web","axum","rocket","rust","rust-api","rust-lang","rust-roc"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fitzy1321.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-05T05:27:58.000Z","updated_at":"2024-08-01T19:45:17.000Z","dependencies_parsed_at":"2024-06-05T06:40:50.082Z","dependency_job_id":"1583ee02-70ed-4d98-830a-04d0d47e4a7d","html_url":"https://github.com/fitzy1321/rust-api-examples","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"e6a272737d58b92e25ba95bbd590b0475e0bdc82"},"previous_names":["fitzypop/rust-api-examples","fitzy1321/rust-api-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fitzy1321/rust-api-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzy1321%2Frust-api-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzy1321%2Frust-api-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzy1321%2Frust-api-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzy1321%2Frust-api-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fitzy1321","download_url":"https://codeload.github.com/fitzy1321/rust-api-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzy1321%2Frust-api-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28890340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["actix-web","axum","rocket","rust","rust-api","rust-lang","rust-roc"],"created_at":"2024-10-09T20:06:33.947Z","updated_at":"2026-01-29T23:31:40.783Z","avatar_url":"https://github.com/fitzy1321.png","language":"Rust","readme":"# Rust API Examples\n\nTesting out various Rust API Frameworks\n\n- actix-web\n- axum\n- rocket\n\nrequirements for apis\n\n- json request/response schemas\n- orm / sql / NoSql / DB ?\n- OpenAPI Spec Generator + OpenAPI UI\n- logging (preferrably struct logs)\n\n## Todo\n\n- concurrency / async implementations ? (tokio vs other setups?)\n- llvm-cov for coverage\n- docker ?\n  - aws linux base image?\n  - alpine image?\n    - what is the smallest docker base image?\n\n## Run Locally\n\nNeed cargo and/or docker\n\n```sh\n## Build images\ndocker build -t actix-web:latest actix-web-api/.\ndocker build -t axum:latest axum-api/.\ndocker build -t rocket:latest rocket-api/.\n```\n\n```sh\n## Run images with ports exposed\ndocker run -it --rm -p 8000:8000 rocket:latest\n```\n\n## Benchmarking\n\n```sh\n# Need wrk package\nbrew install wrk\n\n# Run against apis\nwrk -t4 -d30s --latecy http://127.0.0.1:8080\n```\n\n## New Idea\n\nBuild standard todo app crud api.\n\nStandardize endpoints and I/O contracts for APIs.\n\nMake Docker images for all APIs.\n\nDeploy to k3p4 Raspberry Pi Cluster (k3s host).\n\nUse Ansible to automate setup and deployments.\n\n???\n\nPROFIT! 🤣\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitzy1321%2Frust-api-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitzy1321%2Frust-api-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitzy1321%2Frust-api-examples/lists"}