Skip to content

How to compile with optimizations enabled? #2078

Answered by liningpan
pdeva asked this question in Q&A
Discussion options

You must be logged in to vote

rules_rust respects bazel compilation mode (https://bazel.build/docs/user-manual#compilation-mode), so bazel build //<target> -c opt will build things in release mode.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pdeva
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