Skip to content

Commit

Permalink
fix: Use the smaller regex-lite crate (#180)
Browse files Browse the repository at this point in the history
Using the regular regex crate doubles the size of the kmon binary and we
probably don't need the fancy stuff it offers over the regex-lite crate,
like unicode and performance.

- https://docs.rs/regex-lite/latest/regex_lite/
- https://github.com/rust-lang/regex/blob/master/regex-lite/README.md
  • Loading branch information
omnivagant authored Dec 15, 2024
1 parent 139db02 commit 02c148c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ colorsys = "0.6.7"
enum-iterator = "2.1.0"
clap = "4.5.23"
copypasta-ext = "0.4.4"
regex = "1.11.1"
regex-lite = "0.1.6"

[build-dependencies]
clap_mangen = "0.2.24"
Expand Down
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use ratatui::widgets::{
Block as TuiBlock, Borders, Clear, List, ListItem, Paragraph, Row, Table, Wrap,
};
use ratatui::Frame;
use regex::RegexBuilder;
use regex_lite::RegexBuilder;
use std::fmt::{Debug, Display, Formatter};
use std::slice::Iter;
use std::sync::mpsc::Sender;
Expand Down

0 comments on commit 02c148c

Please sign in to comment.