Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README recommends unoptimized build #119

Open
joshtriplett opened this issue Aug 11, 2024 · 1 comment
Open

README recommends unoptimized build #119

joshtriplett opened this issue Aug 11, 2024 · 1 comment

Comments

@joshtriplett
Copy link

Currently, the instructions in README recommend cargo run, which will build and run an unoptimized build (including unoptimized dependencies).

You may want to either recommend cargo run -r for an optimized release build, or modify Cargo.toml such that the default profile (used for cargo run) builds the crate and its dependencies with optimizations.

To do the latter, you could add the following to Cargo.toml:

[profile.dev]
opt-level = 3
debug = "line-tables-only"
debug-assertions = false
overflow-checks = false

See https://doc.rust-lang.org/cargo/reference/profiles.html for more information and other flags you may wish to change (for either dev or release profiles).

@wusyong
Copy link
Member

wusyong commented Aug 12, 2024

Thanks for the suggestion! I chose the debug build because building the whole application will already take a while.
We build release profiles for nightly releases. I guess we can add more configurations for Cargo.toml in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants