mozilla/rust — pull request #5896 by catamorphism (2013-04-16 00:01:26+00:00)
Title: rustpkg: Allow building executables, and normalize '-' to '_'

r? @graydon First, don't assume that all crates are library crates; use the
parser to determine whether a potential crate has a `main` function.

Second, normalize any hyphens that appear in the package ID to
underscores.