As of version 0.11.0, the assert_cmd crate has dropped the
main_binary() function in favor of cargo_bin() that takes the name
of the cargo binary. Update the testing chapter of the book to use
cargo_bin("grrs") with the binary name hard coded. Another option
would be to use cargo_bin(env!("CARGO_PKG_NAME")) if you briefly
wanted to explain cargo's environmental variables and the env!() macro.
As of version 0.11.0, the assert_cmd crate has dropped the
main_binary()
function in favor ofcargo_bin()
that takes the name of the cargo binary. Update the testing chapter of the book to usecargo_bin("grrs")
with the binary name hard coded. Another option would be to usecargo_bin(env!("CARGO_PKG_NAME"))
if you briefly wanted to explain cargo's environmental variables and theenv!()
macro.