Skip to content

Remove extern crate from examples (or add comment about Rust edition) #58

Closed
@HarrisonMc555

Description

@HarrisonMc555

Proposal: I think we should remove the extern crate declaration in the README, or at least put a comment above it noting that it is only necessary if you're on the Rust 2015 edition.

Background: I am a mentor on exercism.io, and our first "real" exercise (after "Hello, World") is the "Reverse String" exercise. We have a "bonus" test case where a string contains "characters" that are multiple code points. Most students rightly find this crate and use it to extract the graphemes from a string and reverse those. However, many of them leave in the extern crate declaration, even though essentially all of them are using Rust 2018 and don't need it.

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