Skip to content

How to decrease the size of binary? #1925

Answered by davidbarsky
lz1998 asked this question in Q&A
Discussion options

You must be logged in to vote

There are several ways to reduce the size of a Rust binary. johnthagen/min-sized-rust is a good resource to start with.

In the case of tracing with tracing-subscriber and EnvFilter, tracing-subscriber is a large crate and EnvFilter pulls in the regex crate. If you don't need all the features of EnvFilter, you can make use of Targets.

Does that answer your question or are you asking about something else?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lz1998
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1923 on February 14, 2022 16:51.