Skip to content

Slightly confusing text in cargo-targets.md #15913

@tacertain

Description

@tacertain

cargo-targets.md contains the following text under Integration Tests:

Binary targets are automatically built if there is an integration test. This allows an integration test to execute the binary to exercise and test its behavior

I'm 99% sure that the "binary targets" references the cargo targets that are labeled with bin. However, given that this section is also talking about building binaries ("Each integration test results in a separate executable binary"), it's a little confusing. Also it's plural in the first sentence ("binary targets"), and singular in the second ("the binary").

Neither of these is a big deal, of course, but I stumbled for a moment on them, being very new to Rust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cargo-targetsArea: selection and definition of targets (lib, bins, examples, tests, benches)A-documenting-cargo-itselfArea: Cargo's documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions