Skip to content

chore: drop dead pg-wasm profile spec from root manifest#246

Merged
rubenhensen merged 1 commit into
mainfrom
chore/245-drop-dead-pg-wasm-profile
Jul 20, 2026
Merged

chore: drop dead pg-wasm profile spec from root manifest#246
rubenhensen merged 1 commit into
mainfrom
chore/245-drop-dead-pg-wasm-profile

Conversation

@dobby-coder

@dobby-coder dobby-coder Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Removes the dead [profile.release.package.pg-wasm] (opt-level = "s") block from the root Cargo.toml.

pg-wasm is listed under exclude in the workspace, so this profile spec matched no package and Cargo printed profile package spec pg-wasmin profilerelease did not match any packages on every cargo build/test/clippy from repo root. The size optimization it was meant to provide already lives in pg-wasm/Cargo.toml ([package.metadata.wasm-pack.profile.release] wasm-opt = ["-Os"]), so dropping the root block changes nothing about the wasm build and clears the warning everywhere else.

Also fixes a stale line in CLAUDE.md: it claimed cargo test --workspace tests the workspace, but that bare command fails to compile (pg-core's tests are feature-gated). Replaced it with the per-crate CI invocation, which is how I verified this change.

Verification

  • cargo build --workspace: warning is gone (0 occurrences; reproduced on the base branch).
  • cargo test --manifest-path pg-core/Cargo.toml --features test,rust,stream: 3 passed.
  • cargo test --manifest-path pg-{cli,pkg,ffi}/Cargo.toml --all-features: all pass.
  • cargo fmt --all -- --check: clean.

No regression test is added: this is a manifest-only change with no runtime behaviour to assert; the missing warning is the observable result.

Closes #245

The root Cargo.toml carried a `[profile.release.package.pg-wasm]`
`opt-level = "s"` override, but `pg-wasm` is excluded from the
workspace, so the spec matched no package and Cargo warned
`profile package spec `pg-wasm` in profile `release` did not match any
packages` on every workspace build/test/clippy run from repo root.

`pg-wasm`'s size optimization already comes from its own manifest
(`[package.metadata.wasm-pack.profile.release] wasm-opt = ["-Os"]`), so
removing the root block is a no-op for the wasm build and clears the
warning everywhere else.

Also correct the CLAUDE.md workspace-test note: a bare
`cargo test --workspace` does not compile because pg-core's tests are
feature-gated; document the per-crate CI invocation.

Closes #245

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dobby-coder
dobby-coder Bot requested a review from rubenhensen July 17, 2026 23:40
@rubenhensen
rubenhensen marked this pull request as ready for review July 20, 2026 11:12
@rubenhensen
rubenhensen merged commit 8303424 into main Jul 20, 2026
25 checks passed
@rubenhensen
rubenhensen deleted the chore/245-drop-dead-pg-wasm-profile branch July 20, 2026 11:13
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.

Remove dead pg-wasm release-profile spec from root Cargo.toml (warns on every workspace command)

1 participant