Skip to content

Extract quarto-source-map to its own crates.io crate; q2 consumes 0.1.0 (bd-egcyeym9)#348

Merged
cscheid merged 2 commits into
mainfrom
feature/bd-egcyeym9-source-map-extraction
Jun 27, 2026
Merged

Extract quarto-source-map to its own crates.io crate; q2 consumes 0.1.0 (bd-egcyeym9)#348
cscheid merged 2 commits into
mainfrom
feature/bd-egcyeym9-source-map-extraction

Conversation

@cscheid

@cscheid cscheid commented Jun 27, 2026

Copy link
Copy Markdown
Member

First step of extracting the diagnostics-foundation crates out of the q2 monorepo
into standalone posit-dev/ repos (strand bd-egcyeym9). Leaf-first: this is
the trivial leaf, done first to exercise the whole repo → crates.io → q2-cutover →
WASM pipeline before the harder quarto-error-reporting carve-up.

What this PR does

quarto-source-map now lives at https://github.com/posit-dev/quarto-source-map
and is published to crates.io as 0.1.0. q2 consumes the published crate:

  • [workspace.dependencies.quarto-source-map]: pathversion = "0.1.0"
  • 13 main-workspace members: path dep → { workspace = true }
  • wasm-quarto-hub-client (excluded standalone workspace): a direct
    quarto-source-map = "0.1.0" — it can't inherit a workspace dep, so
    { workspace = true } fails at the wasm32 build. (This was the one footgun;
    the WASM build caught it.)
  • in-tree crates/quarto-source-map/ deleted
  • both Cargo.locks resolve the crate from the crates.io registry with matching
    checksum. wasm-quarto-hub-client/Cargo.lock also absorbs incidental
    0.5.0 → 0.7.0 member-version catch-up (pre-existing lockfile drift).

Plus the design artifacts for the larger extraction (claude-notes/designs/cross-package-error-codes.md and the two extraction plans).

Verification

  • cargo build --workspace
  • cargo nextest run --workspace10238 passed
  • cargo xtask verify — all 14 steps incl. the WASM build and hub-client tests ✅

Follow-ups (not in this PR)

  • Add a CI workflow to the new posit-dev/quarto-source-map repo (validated locally only).
  • cargo owner --add github:posit-dev:<team> quarto-source-map (deferred).
  • Next: extract quarto-error-reporting (after splitting out the Q-* catalog data).

🤖 Generated with Claude Code

cscheid and others added 2 commits June 27, 2026 15:06
…tion plans (bd-egcyeym9)

Design artifacts for pulling the diagnostics-foundation crates out of the q2
monorepo into standalone posit-dev/ repos:

- claude-notes/designs/cross-package-error-codes.md — the general two-identity
  error-code discipline: package-owned origin codes vs product-owned
  presentation codes, the remap that bridges them, the tier1/tier2/forbidden
  fallback hierarchy, per-node definer/remapper roles, terminal-vs-remapped
  inert provenance, and append-only ("cool URLs") code lifecycle.
- claude-notes/plans/2026-06-26-extract-error-reporting-foundation.md — phased,
  leaf-first plan to extract quarto-source-map then quarto-error-reporting.
- claude-notes/plans/2026-06-26-extract-quarto-yaml-validation-design.md — the
  YAML-stack extraction design (gated behind the foundation).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…gcyeym9)

quarto-source-map has been extracted to
https://github.com/posit-dev/quarto-source-map and published to crates.io as
0.1.0 — the first of the diagnostics-foundation crates to leave the monorepo.
Cut q2 over to the published crate:

- [workspace.dependencies.quarto-source-map]: path -> version = "0.1.0"
- 13 main-workspace members: path dep -> { workspace = true }
- wasm-quarto-hub-client (excluded, standalone workspace, refs every q2 crate
  by path): direct quarto-source-map = "0.1.0" — it cannot inherit a workspace
  dep, so { workspace = true } would fail to resolve at the wasm32 build.
- delete in-tree crates/quarto-source-map/
- both Cargo.lock files now resolve quarto-source-map from the crates.io
  registry (matching checksum). wasm-quarto-hub-client/Cargo.lock additionally
  picks up incidental 0.5.0 -> 0.7.0 member-version catch-up that was already
  pending (pre-existing lockfile drift, regenerated by the build).

Verified: cargo build --workspace; cargo nextest run --workspace (10238 passed);
full cargo xtask verify — all 14 steps incl. the WASM build and hub-client tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cscheid cscheid merged commit 337d2fd into main Jun 27, 2026
5 checks passed
@cscheid cscheid deleted the feature/bd-egcyeym9-source-map-extraction branch June 27, 2026 20:37
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