Skip to content

Commit c6061be

Browse files
authored
feat: extract service integrations into separate crates (#702)
* feat: draft of extracting service integrations * refactor: revert codegen changes * refactor: depend on shuttle_runtime & service integration * feat: remove rocket bin, comment out version check * feat: impl from for integration wrapper * feat: cleanup shuttle-axum docs, remove version check * feat: actix-web service integration * feat: extract poem service integration * feat: extract poise service integration * feat: extract rocket service integration * feat: extract salvo service integration * feat: extract the serenity service integration * feat: extract the thruster service integration * feat: extract warp service integration * feat: extract the tower service integration * feat: delete persist from service * feat: extract tide service integration * feat: update cargo.lock * feat: make service integration inner pub * fix: merge fixes * refactor: rename integrations, remove comment * ci: run check-standalone on services * feat: update test resources * ci: refactor workspace-clippy job * fix: add tokio dev dep to services * fix: remaining services tests
1 parent 66ba530 commit c6061be

File tree

57 files changed

+1344
-3069
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1344
-3069
lines changed

.circleci/config.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ commands:
9393
shuttle-shared-db = { path = "$PWD/resources/shared-db" }
9494
shuttle-secrets = { path = "$PWD/resources/secrets" }
9595
shuttle-static-folder = { path = "$PWD/resources/static-folder" }
96+
shuttle-axum = { path = "$PWD/services/shuttle-axum" }
97+
shuttle-actix-web = { path = "$PWD/services/shuttle-actix-web" }
98+
shuttle-poem = { path = "$PWD/services/shuttle-poem" }
99+
shuttle-poise = { path = "$PWD/services/shuttle-poise" }
100+
shuttle-rocket = { path = "$PWD/services/shuttle-rocket" }
101+
shuttle-salvo = { path = "$PWD/services/shuttle-salvo" }
102+
shuttle-serenity = { path = "$PWD/services/shuttle-serenity" }
103+
shuttle-thruster = { path = "$PWD/services/shuttle-thruster" }
104+
shuttle-tide = { path = "$PWD/services/shuttle-tide" }
105+
shuttle-tower = { path = "$PWD/services/shuttle-tower" }
106+
shuttle-warp = { path = "$PWD/services/shuttle-warp" }
96107
EOF
97108
install-rust:
98109
steps:
@@ -162,10 +173,6 @@ jobs:
162173
- run: cargo check --workspace --all-targets
163174
- save-cargo-cache
164175
workspace-clippy:
165-
parameters:
166-
framework:
167-
description: "Framework to activate"
168-
type: string
169176
executor: docker-rust
170177
steps:
171178
- checkout
@@ -174,7 +181,7 @@ jobs:
174181
- run: |
175182
cargo clippy --tests \
176183
--all-targets \
177-
--features="codegen,builder,<< parameters.framework >>" \
184+
--all-features \
178185
--no-deps -- \
179186
--D warnings \
180187
-A clippy::let-unit-value \
@@ -393,25 +400,8 @@ workflows:
393400
jobs:
394401
- workspace-fmt
395402
- workspace-clippy:
396-
name: workspace-clippy-<< matrix.framework >>
397403
requires:
398404
- workspace-fmt
399-
matrix:
400-
parameters:
401-
framework:
402-
[
403-
"web-actix-web",
404-
"web-axum",
405-
"web-rocket",
406-
"web-poem",
407-
"web-thruster",
408-
"web-tide",
409-
"web-tower",
410-
"web-warp",
411-
"web-salvo",
412-
"bot-serenity",
413-
"bot-poise",
414-
]
415405
- check-standalone:
416406
matrix:
417407
parameters:
@@ -421,6 +411,17 @@ workflows:
421411
- resources/secrets
422412
- resources/shared-db
423413
- resources/static-folder
414+
- services/shuttle-actix-web
415+
- services/shuttle-axum
416+
- services/shuttle-poem
417+
- services/shuttle-poise
418+
- services/shuttle-rocket
419+
- services/shuttle-salvo
420+
- services/shuttle-serenity
421+
- services/shuttle-thruster
422+
- services/shuttle-tide
423+
- services/shuttle-tower
424+
- services/shuttle-warp
424425
- service-test:
425426
requires:
426427
- workspace-clippy

0 commit comments

Comments
 (0)