how do I decrease the binary size of this crate? #963
-
cc @spencermountain who asked about it in an unrelated issue: #961 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Currently, there are generally three contributors to the large binary size and compile times for this crate:
For (1) and (2), there are a number of crate features that can be toggled: https://docs.rs/regex/latest/regex/#crate-features Specifically, try For (3), there is some discussion about adding an entirely new |
Beta Was this translation helpful? Give feedback.
Currently, there are generally three contributors to the large binary size and compile times for this crate:
regex-syntax
, except for the Unicode tables.)For (1) and (2), there are a number of crate features that can be toggled: https://docs.rs/regex/latest/regex/#crate-features
Specifically, try
regex = { version = "1.7", default-features = false, features = ["std"] }
.For (3), there is some discussion about adding an entirely new
regex-lite
crate in #961 that focuses more heavily on reducing binary size and compilation time.