{"id":16445315,"url":"https://github.com/lloydmeta/todddo-openapi-rs","last_synced_at":"2025-03-23T08:32:14.183Z","repository":{"id":141731369,"uuid":"203193171","full_name":"lloydmeta/todddo-openapi-rs","owner":"lloydmeta","description":"Survey of the Rust web scene in mid-2019, covering async/await, DDD-esque structure, testing, mocking, OpenAPI, and Actix","archived":false,"fork":false,"pushed_at":"2019-08-22T07:09:20.000Z","size":539,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T19:29:37.739Z","etag":null,"topics":["actix","actix-web","async","async-await","ddd-esque","ddd-patterns","futures","openapi","rust","rust-web","rustlang","swagger"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/lloydmeta.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":"2019-08-19T14:50:16.000Z","updated_at":"2023-12-03T02:24:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"73edbcf5-b892-48f8-9cd8-9fd2addc2b40","html_url":"https://github.com/lloydmeta/todddo-openapi-rs","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/lloydmeta%2Ftodddo-openapi-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydmeta%2Ftodddo-openapi-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydmeta%2Ftodddo-openapi-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydmeta%2Ftodddo-openapi-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lloydmeta","download_url":"https://codeload.github.com/lloydmeta/todddo-openapi-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245078067,"owners_count":20557274,"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":["actix","actix-web","async","async-await","ddd-esque","ddd-patterns","futures","openapi","rust","rust-web","rustlang","swagger"],"created_at":"2024-10-11T09:44:02.825Z","updated_at":"2025-03-23T08:32:14.164Z","avatar_url":"https://github.com/lloydmeta.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## todddo-openapi-rs [![Build Status](https://travis-ci.org/lloydmeta/todddo-openapi-rs.svg?branch=master)](https://travis-ci.org/lloydmeta/todddo-openapi-rs) [![codecov](https://codecov.io/gh/lloydmeta/todddo-openapi-rs/branch/master/graph/badge.svg)](https://codecov.io/gh/lloydmeta/todddo-openapi-rs)\n\nThis project explores using using Rust in a DDD-esque fashion (cleanly separated `domain` and `infra`), along with\nthe current (as of writing) Rust web tools, such as `actix-web`, and generated-from-source OpenAPI spec.\n\nIn specific:\n\n- [actix-web](https://actix.rs/)\n- Mixing Future 0.1 with async/await-ready Future 0.3\n- Using `async/await` via nightly\n  - Using it with traits via [`async-trait`](https://github.com/dtolnay/async-trait)\n- Using paperclip to generate [OpenAPI](https://paperclip.waffles.space/paperclip/) from source\n- Using [`future_locks`](https://docs.rs/futures-locks/0.3.3/futures_locks/) for async mutexes\n- Compiling static assets into the binary.\n- DDD-esque project structuring using workspaces to keep dependencies pure\n- Postponing of concrete types for interfaces (`trait`s) to maximise testability  \n\nThis is spiritually the sister project to [the Go version](https://github.com/lloydmeta/todddo-openapi).\n\n## Running\n\nThis project requires nightly, so you'll need to `rustup toolchain install nightly`, then run via\n\n```shell\ncargo +nightly run\n``` \n\nAfter that, go to [http://localhost:8080/swagger/index.html](http://localhost:8080/swagger/index.html) to play around\nwith the built-in Swagger spec + UI.\n\n![Swagger](swagger.png)\n\nIf, for some reason, nightly is borked, `nightly-2019-08-20-x86_64-apple-darwin` has been known to work; just install\nthe right toolchain (`nightly-2019-08-20-${your-architecture}`) and run with that instead.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flloydmeta%2Ftodddo-openapi-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flloydmeta%2Ftodddo-openapi-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flloydmeta%2Ftodddo-openapi-rs/lists"}