KAN-742 chore(workspace): add kanban-api, kanban-server, kanban-http-backend crate stubs#337
Closed
fulsomenko wants to merge 3 commits into
Closed
KAN-742 chore(workspace): add kanban-api, kanban-server, kanban-http-backend crate stubs#337fulsomenko wants to merge 3 commits into
fulsomenko wants to merge 3 commits into
Conversation
…crate stubs Registers three new empty crates in the workspace so Phase 2/3/4 cards can scaffold their implementations without hitting "not a member of workspace" errors. Adds axum, tower, tower-http, reqwest (rustls-tls), tokio-tungstenite, and prometheus as shared workspace dependencies.
- Bump tokio-tungstenite workspace pin to 0.29 to match axum 0.8's transitive dependency and eliminate the duplicate version in the tree - Remove redundant serde_json from kanban-api dev-dependencies (already a regular dependency) - Strip KAN card references from stub source comments; they belong in the PR description, not the code - Rename changeset to follow kan-NNN-description convention
Owner
Author
|
Closing to reopen on correctly named branch KAN-742/add-kanban-api-server-http-backend-crate-stubs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add three empty crate stubs to the workspace as the prerequisite for the HTTP collaborative backend (KAN-684):
crates/kanban-api/-- wire types library; emptylib.rs, depends onkanban-domain+serde/uuid/chronocrates/kanban-server/-- axum binary crate; stubfn main()only, depends onaxum/tower/tokio/kanban-api/kanban-service/prometheuscrates/kanban-http-backend/-- HTTP client backend library; emptylib.rs, depends onreqwest/tokio-tungstenite/kanban-api/kanban-service/kanban-persistence[workspace] membersin rootCargo.tomlaxum 0.8(ws feature),tower 0.5,tower-http 0.6(trace+cors),reqwest 0.12(json+blocking+rustls-tls, no native-tls to avoid OpenSSL in Nix),tokio-tungstenite 0.26,prometheus 0.13What: Three new workspace members with empty implementations.
cargo check --workspacepasses; no logic is added in this card.Why: Subsequent cards (KAN-712, KAN-689, KAN-697) need their target crates to exist as workspace members before they can add code. This card creates those entries so each scaffold card is a clean one-concern commit.
How: Minimal
Cargo.tomlper crate following workspace patterns;reqwestusesrustls-tls(notnative-tls) because the Nix dev shell does not expose OpenSSL headers.Testing:
cargo check --workspace(clean, no errors),cargo clippy --all-targets --all-features -- -D warnings(clean).