about summary refs log tree commit diff
path: root/src/librustpkg
diff options
context:
space:
mode:
authorZack Corr <zack@z0w0.me>2013-01-23 19:25:03 +1000
committerGraydon Hoare <graydon@mozilla.com>2013-02-15 18:04:10 -0800
commitb10dc1af0661c68155c49f508fe7a26a2ea02083 (patch)
tree739a5d4a077e0faecba6a4b1378426bdcfa320f7 /src/librustpkg
parent2192d11cd197a983f3ceb58aad98786c1b9f890d (diff)
downloadrust-b10dc1af0661c68155c49f508fe7a26a2ea02083.tar.gz
rust-b10dc1af0661c68155c49f508fe7a26a2ea02083.zip
Move semver to std and finish rustpkg
Diffstat (limited to 'src/librustpkg')
-rw-r--r--src/librustpkg/rustpkg.rc7
-rw-r--r--src/librustpkg/util.rs10
2 files changed, 8 insertions, 9 deletions
diff --git a/src/librustpkg/rustpkg.rc b/src/librustpkg/rustpkg.rc
index 329c61f1918..bb858f9070d 100644
--- a/src/librustpkg/rustpkg.rc
+++ b/src/librustpkg/rustpkg.rc
@@ -33,7 +33,7 @@ use send_map::linear::LinearMap;
 use rustc::metadata::filesearch;
 use rustc::driver::{driver, session};
 use syntax::{ast, attr, codemap, diagnostic, parse, visit};
-use semver::Version;
+use std::semver;
 
 mod usage;
 mod util;
@@ -43,7 +43,7 @@ use util::Package;
 struct PackageScript {
     id: ~str,
     name: ~str,
-    vers: Version,
+    vers: semver::Version,
     crates: ~[~str],
     deps: ~[(~str, Option<~str>)],
     input: driver::input,
@@ -222,8 +222,7 @@ impl PackageScript {
     }
 
     // Build the bootstrap and run a command
-    // FIXME: Use workcache to only compile the script when changed
-    // FIXME: Use JIT once it works, it should be faster
+    // FIXME (#4432): Use workcache to only compile the script when changed
     fn run(cmd: ~str) -> int {
         let work_dir = self.work_dir();
         let input = self.input;
diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs
index f9ac1b59782..150098cb57d 100644
--- a/src/librustpkg/util.rs
+++ b/src/librustpkg/util.rs
@@ -15,14 +15,14 @@ use rustc::driver::{driver, session};
 use syntax::ast_util::*;
 use syntax::{ast, attr, codemap, diagnostic, fold, parse, visit};
 use codemap::span;
-use semver::Version;
+use std::semver;
 use std::{json, term, sort, getopts};
 use getopts::groups::getopts;
 use Listener;
 
 pub struct Package {
     id: ~str,
-    vers: Version,
+    vers: semver::Version,
     bins: ~[~str],
     libs: ~[~str],
 }
@@ -488,7 +488,7 @@ pub fn ready_crate(sess: session::Session,
     @fold.fold_crate(*crate)
 }
 
-pub fn parse_vers(vers: ~str) -> result::Result<Version, ~str> {
+pub fn parse_vers(vers: ~str) -> result::Result<semver::Version, ~str> {
     match semver::parse(vers) {
         Some(vers) => result::Ok(vers),
         None => result::Err(~"could not parse version: invalid")
@@ -1023,7 +1023,7 @@ pub fn exe_suffix() -> ~str { ~".exe" }
 pub fn exe_suffix() -> ~str { ~"" }
 
 
-// FIXME: Use workcache to only compile when needed
+// FIXME (#4432): Use workcache to only compile when needed
 pub fn compile_crate(sysroot: Option<Path>, crate: &Path, dir: &Path,
                      flags: ~[~str], cfgs: ~[~str], opt: bool,
                      test: bool) -> bool {
@@ -1040,7 +1040,7 @@ pub fn compile_str(sysroot: Option<Path>, code: ~str, dir: &Path,
 
 #[cfg(windows)]
 pub fn link_exe(_src: &Path, _dest: &Path) -> bool {
-    /* FIXME: Investigate how to do this on win32
+    /* FIXME (#1768): Investigate how to do this on win32
        Node wraps symlinks by having a .bat,
        but that won't work with minGW. */