Skip to content

Commit

Permalink
Add a Rust implementation of the Perl preprocessing logic
Browse files Browse the repository at this point in the history
This implementation uses a full HTML parser (Servo's, html5ever) and operates on a DOM. It ends up being somewhat more verbose than Perl, but hopefully also more extensible/maintainable.

For now, this is hidden behind the PROCESS_WITH_RUST environment variable. That environment variable is used by default for the Docker path, but not otherwise. Subsequent work will remove the Perl implementations entirely.
  • Loading branch information
jeremyroman authored and domenic committed Oct 23, 2023
1 parent 54c7524 commit 24db54a
Show file tree
Hide file tree
Showing 17 changed files with 2,968 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
!*.pl
!build.sh
!lint.sh
!Cargo.lock
!Cargo.toml
!src
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ html/
output/
mdn/.id-list
mdn/developer.mozilla.org/
highlighter/


# Added by cargo

/target
Loading

0 comments on commit 24db54a

Please sign in to comment.