Repository navigation
build: crates.io pages had broken links, and crates carried test data - #131
Merged
Merged
Conversation
Every crate's crates.io page is README.md, and its header image and its links to ROADMAP, CONTRIBUTING, LICENSE and NOTICE were relative to the repository, so they 404'd there. They're absolute now, and CI fails on a relative one. parsec-html-core shipped its tree-construction, selector and shadow DOM suites, parsec-xpath its libxml2 cases, and parsec-html-css the webref data its tables are generated from: none of it is needed to build. Each excludes them, and CI fails if a package holds tests/ or data/. Only the manifests change in the two crates synced from Netweir; the sync copies their sources, not their Cargo.toml. SECURITY.md's curl to crates.io got a 403: crates.io wants a user agent that says who's asking.
jamesconwaydev
enabled auto-merge (squash)
November 20, 2026 18:16
foothillsdigital
approved these changes
Nov 20, 2026
foothillsdigital
left a comment
Collaborator
There was a problem hiding this comment.
Checked d09becd:
- Package lists:
cargo package --list --lockedfor every crate butparsec-capihas notests/ordata/path, which is the new CI step run locally.parsec-html-core,parsec-html-cssandparsec-xpatheach package and verify (cargo package --locked, exit 0), and nothing in theirsrcinclude_str!s orinclude_bytes!s from the excluded folders. Excludingtests/whole also keeps the html5lib submodule's presence from changing the package, as before. - Netweir drift:
sync-from-netweir.shcopiessrc examples scripts fuzz/fuzz_targets tests/css.rs tests/tokenizer.rs tests/tree.rs, neverCargo.toml, so the manifest changes to the two synced crates don't touch the drift check. - The README: no relative link or image is left, reference-style ones included (
^\[..\]: [^h]), and the new CI grep passes. SECURITY.md: crates.io returns 403 to curl's default user agent and to an empty one. With-Ait returns the checksum (1d12b658…for 0.1.0).- CI: all 33 checks pass.
Approving.
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.
Problem
README.md. Its header image and its links toROADMAP.md,CONTRIBUTING.md,LICENSEandNOTICEwere relative, so they were broken there.curlcommand inSECURITY.mdfor checking a crate's checksum gets a 403 from crates.io, which refuses requests without a user agent.Change
exclude = ["tests/"]for parsec-html-core and parsec-xpath, anddata/added to parsec-html-css's. In the two crates synced from Netweir onlyCargo.tomlchanges; the sync script copies theirsrc,testsand the like, not the manifest, so the drift check is unaffected.SECURITY.md's command passes-Awith a placeholder contact.reproduciblejob: no package's file list has atests/ordata/path, andREADME.mdhas no relative link or image.PARSEC_VERSIONmacro forparsec.his in fix(capi): spans pointed past text that wasn't UTF-8 #129 with the other header changes.Tests
cargo package --list -p <crate>for every published crate: notests/ordata/files (parsec-html-core now 30 files, parsec-xpath 12, parsec-html-css 44).cargo package --workspace --exclude parsec-capibuilds every crate from its package, ascargo publishwould.actionlintpasses.curlcommand returns the 0.1.0 checksum. Without-Ait returns nothing.