Skip to content

visualci-core on crates.io, with pdf and config features (sc-8792) - #16

Closed
ndbroadbent wants to merge 2 commits into
mainfrom
core-crate
Closed

ndbroadbent wants to merge 2 commits into
mainfrom
core-crate

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

sc-8792. visualci-core goes on crates.io, so the Laravel Rust visual-testing crate's local mode can use vci-diff-1 and match the server exactly.

  • Features, both on by default:

    • pdf: lopdf, for PDF fingerprints and pages;
    • config: globset and schemars, for visualci.yml and its schema.

    With default-features = false the crate keeps the image diff (vci-diff-1), image fingerprints, page alignment and text snapshot diffs. IgnoreRules derives JsonSchema only with config. The workspace's crates use the defaults, so nothing else changes.

  • Metadata: description, homepage, docs.rs, a README, keywords and categories. Apache-2.0 and the repository come from the workspace.

  • CI: lint also runs clippy on visualci-core with --no-default-features.

  • release.yml: a crate job publishes visualci-core at the workspace version once CI passes on main, if crates.io doesn't have that version yet. It needs the CARGO_REGISTRY_TOKEN secret, and without it the job only warns. The agents' existing crates.io token is scoped to oauth-provider*, so Nathan is making a new one (sc-8793).

  • Version: 0.2.9, the workspace version, because visualci-core changed. CLI: review builds without MCP (sc-8782) #13 (CLI review commands) also bumps to 0.2.9, so whichever merges second moves to 0.2.10.

Checked on docspring-dev:

  • clippy is clean with and without default features (and across the workspace);
  • core tests pass (41 with defaults, 30 without);
  • cargo publish --dry-run -p visualci-core packages and verifies 0.2.9.

Review: no screenshots change.

…, schemars) features, on by default, so default-features = false is the image diff (vci-diff-1), fingerprints, alignment and text diffs; crate metadata and README; release.yml publishes it at the workspace version when crates.io lacks it (CARGO_REGISTRY_TOKEN); CI lints it without default features; 0.2.9
@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #103 · 292 unchanged · no changes

This PR vs base: nothing since #96, across 2 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent

Copy link
Copy Markdown
Member Author

Closed: Nathan decided not to publish visualci-core. The reusable parts become a VisualCI-agnostic crate, snapshot-diff, in its own PR (sc-8792).

@ndbroadbent ndbroadbent closed this Dec 2, 2026
@ndbroadbent
ndbroadbent deleted the core-crate branch December 2, 2026 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant