about summary refs log tree commit diff
path: root/src/libextra
diff options
context:
space:
mode:
authorJack Moffitt <jack@metajack.im>2013-12-09 14:56:53 -0700
committerJack Moffitt <jack@metajack.im>2013-12-10 17:04:24 -0700
commitb349036e5f4f5f42e34ae9dd7859f3dc7a79de94 (patch)
treec11b022d85120eddff8bdf1be2fd36fe3939369f /src/libextra
parent29ca4350c8d64facb39311660e8ee919766f481a (diff)
downloadrust-b349036e5f4f5f42e34ae9dd7859f3dc7a79de94.tar.gz
rust-b349036e5f4f5f42e34ae9dd7859f3dc7a79de94.zip
Make crate hash stable and externally computable.
This replaces the link meta attributes with a pkgid attribute and uses a hash
of this as the crate hash. This makes the crate hash computable by things
other than the Rust compiler. It also switches the hash function ot SHA1 since
that is much more likely to be available in shell, Python, etc than SipHash.

Fixes #10188, #8523.
Diffstat (limited to 'src/libextra')
-rw-r--r--src/libextra/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libextra/lib.rs b/src/libextra/lib.rs
index ca2b76b620a..6532ae3dc5c 100644
--- a/src/libextra/lib.rs
+++ b/src/libextra/lib.rs
@@ -20,6 +20,8 @@ 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",