Skip to content

Commit

Permalink
refactor: use native dynamic dispatch
Browse files Browse the repository at this point in the history
The previous emulation was inefficient and inconsistent. Now, the
signature of all check functions is the same, and a layer of indirection
is removed. In the future, this may allow for combining several
specifications into one check.
  • Loading branch information
Nytelife26 committed Jan 19, 2025
1 parent f76696d commit a390bbd
Show file tree
Hide file tree
Showing 33 changed files with 659 additions and 385 deletions.
269 changes: 269 additions & 0 deletions proselint-rs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion proselint-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ edition = "2021"
license = "MIT"

[workspace.dependencies]
# Internal
proselint-checks = { path = "crates/proselint-checks" }
proselint-registry = { path = "crates/proselint-registry" }
regex = "1.10.5"
# External
criterion = "0.5.1"
fancy-regex = "0.13.0"
phf = { version = "0.11.2", features = ["macros"] }
regex = "1.10.5"
Loading

0 comments on commit a390bbd

Please sign in to comment.