Struct cargo_culture_kit::BuildsCleanlyWithoutWarningsOrErrors[][src]

pub struct BuildsCleanlyWithoutWarningsOrErrors;

Rule that asserts a good Rust project: "Should cargo clean and cargo build without any warnings or errors."

Justification

A Rust project striving for excellence and accessibility should be able to be built "out of the box" with common tooling and do so without any superfluous warnings or build errors. The clean step is necessary to get complete error/warning messages repeatably.

While not every warning is appropriate to be absent from every project, developers have the ability to thoughtfully silence warnings that are not relevant to the present use case.

Caveats

Though this rule makes an effort to avoid needless work by targeting the cargo clean invocations to the project's own packages, unless dependencies have been previously built, evaluate is likely to take a while.

Trait Implementations

impl Debug for BuildsCleanlyWithoutWarningsOrErrors
[src]

Formats the value using the given formatter. Read more

impl Default for BuildsCleanlyWithoutWarningsOrErrors
[src]

Returns the "default value" for a type. Read more

impl Rule for BuildsCleanlyWithoutWarningsOrErrors
[src]

The central tenet of this Rule. Serves as a unique identifier for Rule instances, as well as a human-readable summary of what this Rule means for a given project. Read more

Does the Rust project found at cargo_manifest_path uphold this Rule, as summarized in the description? Read more

Auto Trait Implementations