Skip to content

Prepopulate examples and tests directories #2613

@sandeep-datta

Description

@sandeep-datta

I think it might be useful if we pre-populate the examples and tests directories with some minimalistic files when creating new crates using cargo new. It might encourage newcomers to explore and make use of these options.

Proposed templates: https://github.com/sd-rust/templates
Files changed: lib.rs, basic.rs, test.rs, README.md, Cargo.toml :)

Note: executable crates should probably not have the examples directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions