refactor: Parse HugeTLB size without Regex

This removes the only place the regex crate is used, which could lead to significant binary size savings in projects that don't use the regex craate.

Signed-off-by: Oguz Bilgener <oguz@bilgener.me>
This commit is contained in:
Oguz Bilgener
2025-02-24 21:35:14 -05:00
parent eb3e37a4bc
commit 694627e2fc
2 changed files with 89 additions and 25 deletions

View File

@@ -13,7 +13,6 @@ readme = "README.md"
[dependencies]
log = "0.4"
regex = "1.1"
nix = { version = "0.25.0", default-features = false, features = ["event", "fs", "process"] }
libc = "0.2"
serde = { version = "1.0", features = ["derive"], optional = true }