Skip to content

Conversation

@joseluisq
Copy link
Collaborator

Description

This PR optimizes for binary size by replacing the regex crate with its lightweight equivalent (regex-lite).
The change reports a binary size reduction of approximately ~500KB.

x86_64-unknown-linux-musl example:

before (v2.39.0):

8,9M	static-web-server

after:

8,4M    static-web-server

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

This change optimizes for binary size reducing it by ~500KB.

x86_64-unknown-linux-musl example:

Before (v2.39.0):
8,9M	static-web-server

After:
8,4M    static-web-server
@joseluisq joseluisq added enhancement New feature or request v2 v2 release labels Nov 20, 2025
@semanticdiff-com
Copy link

semanticdiff-com bot commented Nov 20, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  Cargo.lock Unsupported file format
  Cargo.toml Unsupported file format
  src/redirects.rs  0% smaller
  src/rewrites.rs  0% smaller
  src/settings/mod.rs  0% smaller

@joseluisq joseluisq merged commit 557363e into master Nov 20, 2025
30 of 39 checks passed
@joseluisq joseluisq deleted the replace-regex-crate-with-regex-lite branch November 20, 2025 00:19
@joseluisq joseluisq added this to the v2.40.0 milestone Nov 20, 2025
@joseluisq joseluisq self-assigned this Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request v2 v2 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants