Repository navigation
feat: Parsec had no parser, no CI and nothing to read - #1
Merged
Merged
Conversation
The parser core comes from Netweir's crates/netweir-html, copied by scripts/sync-from-netweir.sh with its crate names changed; the Netweir commit it came from is in NETWEIR_COMMIT. Its tests run here as they do there: the html5lib tokenizer tests (a submodule), the pinned web-platform-tests tree-construction cases, and the selector and editing tests. CI checks formatting, clippy, cargo-deny and the tests on Linux, macOS and Windows, and fails if the core has drifted from Netweir. Fuzzing runs nightly. The README, roadmap, contributing guide, CLA, security policy and issue templates say how the project works.
Parsec moved to the parsec-html organization, and with it reported content can reach the maintainer privately, so the Code of Conduct now says to use "Report to repository admins".
It holds for the slow inputs in examples/hostile.rs, not yet for every input, so the README now says which ones and the comparison marks the general claim as planned.
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
The repository held a licence and a one-line README.
Change
crates/parsec(the package isparsec-html; youuse parsec) is Netweir'scrates/netweir-html, copied byscripts/sync-from-netweir.shwith its crate names changed.NETWEIR_COMMITrecords the Netweir commit it came from.crates/parsec/tests/tree-construction;cargo teston Linux, macOS and Windows;crates/parsecno longer matches Netweir at the pinned commit;deny.toml.Tests
cargo testpasses locally: 7,045 html5lib tokenizer tests, the WPT tree-construction cases with scripting on and off, and the selector, editing and unit tests. The drift check passes against Netweir at82d977f.