Skip to content

Set cfg(test) flag to generated item(s) #14

@ubnt-intrepid

Description

@ubnt-intrepid

Starting with 1.36, the attribute cfg(test) will be enabled for doctests when the --test flag is set ( rust-lang/rust#59940). It means that it is not necessary to create a seperate crate for testing by setting this attribute to (generated) doctests.

It requires the bump of major version as it will increase the minimum supported toolchain version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions