lazy-regex icon indicating copy to clipboard operation
lazy-regex copied to clipboard

The `lite` feature doesn't actually disable `regex`

Open msrd0 opened this issue 2 years ago • 3 comments

This is because the lazy-regex-proc_macros crate still depends on regex instead of regex-lite when enabling the lite feature.

msrd0 avatar Aug 02 '23 13:08 msrd0

I don't think it matters: the complete regex lib is used for compilation but only regex-lite is used in your compiled application.

You can check for example that the binary is much smaller when you use the "lite" feature.

Canop avatar Sep 06 '23 16:09 Canop

Well, it might not get included in the final binary, but it definitely increases compile time.

msrd0 avatar Sep 06 '23 16:09 msrd0

Hum, probably.

The reason I didn't propagate the features into the proc macros is that it complexifies notably its code, for example for the handling of the Bytes variant.

I'll see if I can introduce this without making it too messy.

Canop avatar Sep 06 '23 17:09 Canop