Skip to content

Commit 24db54a

Browse files
jeremyromandomenic
authored andcommitted
Add a Rust implementation of the Perl preprocessing logic
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.
1 parent 54c7524 commit 24db54a

17 files changed

+2968
-6
lines changed

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
!*.pl
55
!build.sh
66
!lint.sh
7+
!Cargo.lock
8+
!Cargo.toml
9+
!src

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ html/
44
output/
55
mdn/.id-list
66
mdn/developer.mozilla.org/
7+
highlighter/
8+
9+
10+
# Added by cargo
11+
12+
/target

0 commit comments

Comments
 (0)