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

advise to use custom profile in crate docs #26

Open
kraktus opened this issue Nov 11, 2022 · 0 comments
Open

advise to use custom profile in crate docs #26

kraktus opened this issue Nov 11, 2022 · 0 comments

Comments

@kraktus
Copy link

kraktus commented Nov 11, 2022

Hey, thanks for the great crate. I've been using it extensively for my project.

One thing I'd highlight in the doc is the use of a custom profile in the cargo manifest:

[profile.dhat] # for profiling only # dhat
inherits = "release"
debug = 1

As enabling debug for release builds otherwise increase the final binary size. This goes well with having a feature to enable dhat, and you can even add a cargo alias in project/.cargo/config.toml to get both running easily.

dhat = "run --profile dhat --features dhat --"

Since this is rather a style point I didn't make a PR but rather an issue

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

1 participant