tests Build all targets in test mode that have the test = true manifestįlag set. Multiple times and supports common Unix glob patterns. test name… Build the specified integration test. This flag may be specified multiple timesĪnd supports common Unix glob patterns. example name… Build the specified example. Use single quotes or double quotes around each glob pattern. Shell accidentally expanding glob patterns before Cargo handles them, you must Support common Unix glob patterns like *, ? and. Note that -bin, -example, -test and -bench flags also Passing target selection flags will build only the specified Is set when the integration test is built so that it can use the Test to execute the binary to exercise and test its behavior. When no target selection options are given, cargo rustc will build allīinary and library targets of the selected package.īinary targets are automatically built if there is an integration test orīenchmark being selected to build. p spec -package spec The package to build. The -pįlag can be used to choose a different package in a workspace. OPTIONS Package Selectionīy default, the package in the current working directory is selected. To pass flags to all compiler processes spawned by Cargo, use the RUSTFLAGS environment variable or theīstflags config value. Package the filters of -lib, -bin, etc, must be used to select which If more than one target is available for the current This command requires that only one target is being compiled when additionalĪrguments are provided. Note that the compiler will still unconditionally receiveĪrguments such as -L, -extern, and -crate-type, and the specifiedĪrgs will simply be added to the compiler invocation. The specifiedĪrgs will all be passed to the final compiler invocation, not any of theĭependencies. Provided) will be compiled along with all of its dependencies. The specified target for the current package (or package specified by -p if Cargo-rustc - Compile the current package, and pass extra options to the compiler SYNOPSISĬargo rustc DESCRIPTION
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |