Avatar for the jeertmans user
jeertmans
languagetool-rust
BlogDocsChangelog

chore(lib): fully refactor the library for v3

#117
Comparing
v3
(
ea24862
) with
main
(
3298c77
)
CodSpeed Performance Gauge
-51%
Improvements
0
Regressions
6
Untouched
0
New
0
Dropped
0
Ignored
0

Benchmarks

Failed

largeRegression
benches/benchmarks/check_texts.rs::checks::bench_basic::basic::large
CodSpeed Performance Gauge
-50%
84 ms
169.4 ms
mediumRegression
benches/benchmarks/check_texts.rs::checks::bench_basic::basic::medium
CodSpeed Performance Gauge
-51%
83.3 ms
169 ms
smallRegression
benches/benchmarks/check_texts.rs::checks::bench_basic::basic::small
CodSpeed Performance Gauge
-51%
83.5 ms
168.9 ms
largeRegression
benches/benchmarks/check_texts.rs::checks::bench_split::split::large
CodSpeed Performance Gauge
-46%
101.2 ms
186.8 ms
mediumRegression
benches/benchmarks/check_texts.rs::checks::bench_split::split::medium
CodSpeed Performance Gauge
-49%
87.5 ms
173.1 ms
smallRegression
benches/benchmarks/check_texts.rs::checks::bench_split::split::small
CodSpeed Performance Gauge
-51%
83.9 ms
169.6 ms

Commits

Click on a commit to change the comparison range
Base
main
3298c77
-6%
refactor: further separate CLI logic from the API related functionality (see #117) (#124) * refactor: use `std::ops::Not::not` instead of custom `is_false` function * refactor: further separate API logic from CLI, and create submodules for each subcommand * fix: fmt * fix: nightly `rustfmt` warning: the `version` option is deprecated. Use `style_edition` instead. * fix: fmt * refactor: `ProcessCommand` -> `process::Command` * fix: remove unused imports * refactor: make link more readable for CLI * fix: `clippy` and `doc` warnings * chore: bump minimum rust version * fix: misc CI issues * feat: use `enum_dispatch` to avoid needing to manually call `cmd.execute` for each variant of `Command` * refactor: avoid cloning request input string * refactor: use `Cow<'static, str>` instead of `String` for `check::Request.text` * chore(lib): adding Cow * refactor: use `Cow<'source, str>` when not compiling with the `cli` feature Required cloning structs and methods from `api::check` to separate out the `clap` functionality, as `clap` wouldn't support the lifetime without it being `'static` * fix: remove unnecessary clone of `split_pattern` * refactor: use `Cow<'source, str>` for text referenced by `ResponseWithContext` * Update CI.yml * Update README.md Co-authored-by: Jérome Eertmans <jeertmans@icloud.com> * Update benches/benchmarks/check_texts.rs Co-authored-by: Jérome Eertmans <jeertmans@icloud.com> * Update benches/benchmarks/check_texts.rs Co-authored-by: Jérome Eertmans <jeertmans@icloud.com> * Update src/api/server.rs Co-authored-by: Jérome Eertmans <jeertmans@icloud.com> * Update tests/match_positions.rs Co-authored-by: Jérome Eertmans <jeertmans@icloud.com> * fix: formatting * fix: remove unused imports * fix: remove static lifetime from `with_text` and `with_data` * fix: correct length addition and use `Cow::to_mut` * fix: satisfy `clippy` pre-commit hook --------- Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
a067522
5 months ago
by Rolv-Apneseth
0%
refactor: remove unnecessary code duplication from `cli/check`
a90bd15
5 months ago
by Rolv-Apneseth
0%
ci: include newer versions of `languagetool` in tests (#126) * ci: include newer versions of `languagetool` in tests * tests: debug errors with server testing * ci: `--no-capture` for testing library code, for easier debugging failing CI tests
ccb494a
5 months ago
by Rolv-Apneseth
0%
refactor(lib): consolidate `reqwest` errors (#125) * refactor: consolidate `Error::ResponseDecode` and `Error::ResponseEncode` into just `Error::Reqwest` * tests: `Error::Reqwest` * tests: check that an invalid request is returned when the input is too long when checking either text or annotated data
1665a9d
5 months ago
by Rolv-Apneseth
+31%
feat: add support for HTML, Markdown and Typst files (#127) * feat: add parsers for HTML, markdown and typst files * feat: in the CLI, use different parsers based on file type * fix: formatting * fix: bump MSRV * fix: features ordering * refactor: update markdown file extensions * refactor: use data annotations for `typst` files
82bd45b
3 months ago
by Rolv-Apneseth
-61%
chore(lib): cleanup and logging
027f1ed
3 months ago
by jeertmans
0%
fix(tests): increase size of request
6cae2f4
3 months ago
by jeertmans
0%
fix(tests): set env to limit max text length
cf9462b
3 months ago
by jeertmans
-15%
Merge remote-tracking branch 'origin/main' into v3
d14c0b9
1 month ago
by jeertmans
0%
fix(tests): enforce language
7e9e6cc
1 month ago
by jeertmans
0%
up
ea24862
1 month ago
by jeertmans
© 2025 CodSpeed Technology
Home Terms PrivacyDocs