Back to Cargo

Options Targets Bin Auto Built

src/doc/man/includes/options-targets-bin-auto-built.md

0.96.0579 B
Original Source

Binary targets are automatically built if there is an integration test or benchmark being selected to {{lower actionverb}}. This allows an integration test to execute the binary to exercise and test its behavior. The CARGO_BIN_EXE_<name> environment variable is set when the integration test is built and run so that it can use the env macro or the var function to locate the executable.