Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize hyphens to underscores in crate names #1443

Merged
merged 1 commit into from
Mar 25, 2015

Commits on Mar 25, 2015

  1. Normalize hyphens to underscores in crate names

    This change allows *packages* to have hyphens in them, but they are always
    translated to underscores when translated to a crate name. This means that all
    crates are compiled with a `--crate-name` that has no hyphens (as well as
    `--extern` directives having no hyphens).
    
    Binaries, examples, benchmarks, and tests, however, are allowed to contain
    hyphens in their name. The "crate name" will still have an underscore, but the
    output will be in the same dasherized name.
    
    Explicitly named targets are not allowed to have hyphens in them as well.
    alexcrichton committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    afe88e0 View commit details
    Browse the repository at this point in the history