You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 29, 2021. It is now read-only.
Hm, indeed. cargo run adds ~300ms overhead on my machine as well (on macOS). That's quite unfortunate! Executing the binary directly takes less than 1ms, though, so making sure everything is compiled correctly and then executing with the then-known path should be a good workaround.
We should absolutely add this to the docs. And I'll ask the cargo team if there is a way to use cargo's "find binary" feature without having it check if it needs to compile things (which I guess is what's taking so long -- --locked --frozen doesn't speed things up).
We should absolutely add this to the docs. And I'll ask the cargo team if there is a way to use cargo's "find binary" feature without having it check if it needs to compile things
Another use case for such a feature is packaging. Looking into this is coming up on my plate for packaging.
Activity
killercup commentedon Apr 7, 2018
Hm, indeed.
cargo runadds ~300ms overhead on my machine as well (on macOS). That's quite unfortunate! Executing the binary directly takes less than 1ms, though, so making sure everything is compiled correctly and then executing with the then-known path should be a good workaround.We should absolutely add this to the docs. And I'll ask the cargo team if there is a way to use cargo's "find binary" feature without having it check if it needs to compile things (which I guess is what's taking so long --
--locked --frozendoesn't speed things up).epage commentedon Apr 7, 2018
Another use case for such a feature is packaging. Looking into this is coming up on my plate for packaging.
killercup commentedon Apr 7, 2018
cargo issue: rust-lang/cargo#5315
fix(cargo): Avoid `cargo run`
epage commentedon May 29, 2018
The responsibility for this is moving to assert_cmd and tis will be addressed in assert-rs/assert_cmd#6
assert_cli is going to morph into a wider-focused tool, including things like assert_fs. See #41