Skip to content

workspace: hoist shared deps and lint policy to workspace - #177

Open
meawoppl wants to merge 2 commits into
mainfrom
meawoppl/workspace-deps-and-lints
Open

workspace: hoist shared deps and lint policy to workspace#177
meawoppl wants to merge 2 commits into
mainfrom
meawoppl/workspace-deps-and-lints

Conversation

@meawoppl

Copy link
Copy Markdown
Owner

Implements maintainability bump #3.

What

  • [workspace.dependencies] — hoisted the deps shared by both crates (serde, serde_json, thiserror, tokio, log, which, dev env_logger). Members now reference them via dep = { workspace = true }, keeping versions in lockstep. Crate-specific deps (chrono, uuid, anyhow, base64, jsonschema) stay local.
  • [workspace.lints] — added a shared lint policy (unsafe_code = "forbid"; no unsafe exists in either crate) with both crates opting in via [lints] workspace = true. Single place to evolve lint policy going forward.

Why

The manifests had drifted: claude declared tokio 1.47.1 / log 0.4.27 while codex declared tokio 1.49.0 / log 0.4.29 (and env_logger 0.11.8 vs 0.11.9). The resolver already unified these in the lockfile, so this is manifest hygiene — but it stops the declared minimums from diverging further and gives one source of truth.

Cargo.lock is unchanged (versions were already unified by the resolver).

Verification

  • cargo build --workspace --all-features — clean
  • cargo clippy --workspace --all-targets -- -D warnings (the CI gate) — clean, incl. types-only feature combo
  • cargo test --workspace — all pass

No version bump (internal build change, nothing to publish).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant