Skip to content

how to run on a library with cargo test #8

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

Closed
wants to merge 1 commit into from
Closed

how to run on a library with cargo test #8

wants to merge 1 commit into from

Conversation

donbright
Copy link
Contributor

shows a simple example of how to test a cargo library (src/lib.src). its not quite as straightforward because its not immediately obvious to the user where cargo makes the binary, but if you pass --verbose to cargo test it will show you. you can pass this binary to pprof and generate nice profiling information even if you are building a rust library and dont have a 'main' program.

shows a simple example of how to test a cargo library (src/lib.src). its not quite as straightforward because its not immediately obvious to the user where cargo makes the binary, but if you pass --verbose to cargo test it will show you. you can pass this binary to pprof and generate nice profiling information even if you are building a rust library and dont have a 'main' program.
@donbright
Copy link
Contributor Author

wrong info.. my bad.

@donbright donbright closed this Jan 3, 2019
@donbright donbright deleted the patch-2 branch January 3, 2019 02:39
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

Successfully merging this pull request may close these issues.

1 participant