Skip to content

Commit

Permalink
auto merge of #10919 : alexcrichton/rust/snapshots, r=brson
Browse files Browse the repository at this point in the history
Understand 'pkgid' in stage0. As a bonus, the snapshot now contains now metadata
(now that those changes have landed), and the snapshot download is half as large
as it used to be!
  • Loading branch information
bors committed Dec 16, 2013
2 parents 9eb89a6 + d9ea475 commit dc7a2e1
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 63 deletions.
16 changes: 4 additions & 12 deletions src/libextra/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,14 @@ Rust extras are part of the standard Rust distribution.
*/

#[pkgid="extra#0.9-pre"];
// NOTE: remove after the next snapshot
#[link(name = "extra",
package_id = "extra",
vers = "0.9-pre",
uuid = "122bed0b-c19b-4b82-b0b7-7ae8aead7297",
url = "https://github.com/mozilla/rust/tree/master/src/libextra")];

#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];

#[pkgid = "extra#0.9-pre"];
#[comment = "Rust extras"];
#[license = "MIT/ASL2"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];

#[feature(macro_rules, globs, managed_boxes)];

Expand Down
5 changes: 2 additions & 3 deletions src/librustc/front/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,8 @@ fn mk_tests(cx: &TestCtxt) -> @ast::item {
}

fn is_extra(crate: &ast::Crate) -> bool {
let items = attr::find_linkage_metas(crate.attrs);
match attr::last_meta_item_value_str_by_name(items, "name") {
Some(s) if "extra" == s => true,
match attr::find_pkgid(crate.attrs) {
Some(ref s) if "extra" == s.name => true,
_ => false
}
}
Expand Down
9 changes: 1 addition & 8 deletions src/librustc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[pkgid="rustc#0.9-pre"];
// NOTE: remove after the next snapshot
#[link(name = "rustc",
package_id = "rustc",
vers = "0.9-pre",
uuid = "0ce89b41-2f92-459e-bbc1-8f5fe32f16cf",
url = "https://github.com/mozilla/rust/tree/master/src/rustc")];

#[pkgid = "rustc#0.9-pre"];
#[comment = "The Rust compiler"];
#[license = "MIT/ASL2"];
#[crate_type = "dylib"];
Expand Down
9 changes: 1 addition & 8 deletions src/librustdoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[pkgid="rustdoc#0.9-pre"];
// NOTE: remove after the next snapshot
#[link(name = "rustdoc",
package_id = "rustdoc",
vers = "0.9-pre",
uuid = "8c6e4598-1596-4aa5-a24c-b811914bbbc6",
url = "https://github.com/mozilla/rust/tree/master/src/librustdoc")];

#[pkgid = "rustdoc#0.9-pre"];
#[desc = "rustdoc, the Rust documentation extractor"];
#[license = "MIT/ASL2"];
#[crate_type = "dylib"];
Expand Down
9 changes: 1 addition & 8 deletions src/librustpkg/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@

// rustpkg - a package manager and build system for Rust

#[pkgid="rustpkg#0.9-pre"];
// NOTE: remove after the next snapshot
#[link(name = "rustpkg",
package_id = "rustpkg",
vers = "0.9-pre",
uuid = "25de5e6e-279e-4a20-845c-4cabae92daaf",
url = "https://github.com/mozilla/rust/tree/master/src/librustpkg")];

#[pkgid = "rustpkg#0.9-pre"];
#[license = "MIT/ASL2"];
#[crate_type = "dylib"];

Expand Down
9 changes: 1 addition & 8 deletions src/librustuv/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,7 @@ via `close` and `delete` methods.
*/

#[pkgid="rustuv#0.9-pre"];
// NOTE: remove after the next snapshot
#[link(name = "rustuv",
package_id = "rustuv",
vers = "0.9-pre",
uuid = "f3719011-0459-9b86-b11c-29265c0d0864",
url = "https://github.com/mozilla/rust/tree/master/src/librustuv")];

#[pkgid = "rustuv#0.9-pre"];
#[license = "MIT/ASL2"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
Expand Down
10 changes: 1 addition & 9 deletions src/libstd/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,11 @@
//!
//! use std::prelude::*;
#[pkgid="std#0.9-pre"];
// NOTE: remove after the next snapshot
#[link(name = "std",
package_id = "std",
vers = "0.9-pre",
uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8",
url = "https://github.com/mozilla/rust/tree/master/src/libstd")];

#[pkgid = "std#0.9-pre"];
#[comment = "The Rust standard library"];
#[license = "MIT/ASL2"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];

#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
Expand Down
8 changes: 1 addition & 7 deletions src/libsyntax/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@
* macros.
*/

#[pkgid="syntax#0.9-pre"];
// NOTE: remove after the next snapshot
#[link(name = "syntax",
package_id = "syntax",
vers = "0.9-pre",
uuid = "9311401b-d6ea-4cd9-a1d9-61f89499c645")];

#[pkgid = "syntax#0.9-pre"];
#[license = "MIT/ASL2"];
#[crate_type = "dylib"];
#[crate_type = "rlib"];
Expand Down
8 changes: 8 additions & 0 deletions src/snapshots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
S 2013-12-10 b8b16ae
freebsd-x86_64 08d28a3a47f4263dc0a005374e59d30b1b942ab2
linux-i386 4cd5d8b80014a69dea9744fd12c8cdab6269d263
linux-x86_64 b68c106f377b226ebd17210fbce84423e3ffa6c2
macos-i386 797b3e01c5ed9fbd3549d75300a005e4a987a84c
macos-x86_64 b5f33edc57378ef1533dea258ac04c3bbe0e71da
winnt-i386 656ffae4528290f942acf4ac5af515fb802d6bd9

S 2013-12-09 b485e2b
freebsd-x86_64 424f1504e7dfe43d1238a8b6e6abea8879297fa2
linux-i386 214dc3cb3224f7ad6ef02e684cf6505113e5dc9a
Expand Down

0 comments on commit dc7a2e1

Please sign in to comment.