You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change what's allowed in extern mod directives #6407
Currently, extern mod directives take an identifier, like: extern mod foo;. We need to instead allow two different forms of extern mod:
First, extern mod foo = "github.com/catamorphism/an-awesome-package-called-foo";
Second, extern mod "github.com/catamorphism/a_valid_identifier";
In the first case, you specify that foo is the short name for the package at the URL (or URL-fragment) on the right-hand side of the =. This allows remote paths to contain any Unicode characters while also associating the package with a valid Rust identifier.
In the second case, rustpkg guesses that a_valid_identifier is the short name. Omitting the foo = in the first case would be a usage error, since the stem of the URL fragment is not a valid identifier (it contains hyphens).
For now we're going to say extern mod foo (id = "github.com/catamorphism/an-awesome-package-called-foo");, since that syntax is already supported. Leaving this bug open but not blocking on it.
Activity
rustpkg: Implement URL-like package IDs
auto merge of #6418 : catamorphism/rust/rustpkg, r=catamorphism
rustc/rusti/rustpkg: Infer packages from `extern mod` directives
catamorphism commentedon May 29, 2013
For now we're going to say
extern mod foo (id = "github.com/catamorphism/an-awesome-package-called-foo");, since that syntax is already supported. Leaving this bug open but not blocking on it.rustc/rusti/rustpkg: Infer packages from `extern mod` directives
emberian commentedon Jun 25, 2013
@catamorphism can this be removed from 0.7 if the syntax isn't an issue?
catamorphism commentedon Jun 25, 2013
@cmr Right, forgot about that. Cleared milestone.
graydon commentedon Jun 26, 2013
Note: 'foo' is not the short name of the package you compile; it's just the local in-crate binding.
bblum commentedon Jul 3, 2013
nominating backwards-compatible milestone
catamorphism commentedon Aug 1, 2013
Done pending #8176
catamorphism commentedon Aug 14, 2013
Forgot to close this.
Rollup merge of rust-lang#6407 - matthiaskrgr:bors_website, r=Manishe…
Auto merge of rust-lang#6415 - flip1995:rollup-fz7872l, r=flip1995
fix versionsort chunk split on non-ASCII numerics (#6407)