Skip to content

Commit

Permalink
Move term, terminfo out of extra.
Browse files Browse the repository at this point in the history
  • Loading branch information
xales committed Feb 2, 2014
1 parent 8d7bd49 commit 51260f6
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 15 deletions.
7 changes: 4 additions & 3 deletions mk/crates.mk
Expand Up @@ -49,22 +49,23 @@
# automatically generated for all stage/host/target combinations.
################################################################################

TARGET_CRATES := std extra green rustuv native flate arena glob
TARGET_CRATES := std extra green rustuv native flate arena glob term
HOST_CRATES := syntax rustc rustdoc
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
TOOLS := compiletest rustdoc rustc

DEPS_std := native:rustrt
DEPS_extra := std
DEPS_extra := std term
DEPS_green := std
DEPS_rustuv := std native:uv native:uv_support
DEPS_native := std
DEPS_syntax := std extra
DEPS_syntax := std extra term
DEPS_rustc := syntax native:rustllvm flate arena
DEPS_rustdoc := rustc native:sundown
DEPS_flate := std native:miniz
DEPS_arena := std extra
DEPS_glob := std
DEPS_term := std

TOOL_DEPS_compiletest := extra green rustuv
TOOL_DEPS_rustdoc := rustdoc green rustuv
Expand Down
1 change: 1 addition & 0 deletions src/doc/index.md
Expand Up @@ -40,6 +40,7 @@ li {list-style-type: none; }
* [The `arena` allocation library](arena/index.html)
* [The `flate` compression library](flate/index.html)
* [The `glob` file path matching library](glob/index.html)
* [The `term` terminal-handling library](term/index.html)

# Tooling

Expand Down
5 changes: 1 addition & 4 deletions src/libextra/lib.rs
@@ -1,4 +1,4 @@
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
Expand Down Expand Up @@ -67,7 +67,6 @@ pub mod ebml;
pub mod getopts;
pub mod json;
pub mod tempfile;
pub mod term;
pub mod time;
pub mod base64;
pub mod workcache;
Expand All @@ -87,8 +86,6 @@ pub mod uuid;
#[cfg(unicode)]
mod unicode;

pub mod terminfo;

// Compiler support modules

pub mod test;
Expand Down
2 changes: 1 addition & 1 deletion src/libextra/test.rs
Expand Up @@ -15,6 +15,7 @@
// simplest interface possible for representing and running tests
// while providing a base that other test frameworks may build off of.

extern mod term;

use getopts;
use getopts::groups;
Expand All @@ -23,7 +24,6 @@ use json;
use serialize::Decodable;
use stats::Stats;
use stats;
use term;
use time::precise_time_ns;
use treemap::TreeMap;

Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/diagnostic.rs
Expand Up @@ -16,7 +16,7 @@ use std::io;
use std::io::stdio::StdWriter;
use std::iter::range;
use std::local_data;
use extra::term;
use term;

static BUG_REPORT_URL: &'static str =
"http://static.rust-lang.org/doc/master/complement-bugreport.html";
Expand Down
1 change: 1 addition & 0 deletions src/libsyntax/lib.rs
Expand Up @@ -31,6 +31,7 @@ This API is completely unstable and subject to change.
#[deny(non_camel_case_types)];

extern mod extra;
extern mod term;

pub mod util {
pub mod interner;
Expand Down
17 changes: 14 additions & 3 deletions src/libextra/term.rs → src/libterm/lib.rs
@@ -1,4 +1,4 @@
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
Expand All @@ -10,15 +10,26 @@

//! Simple ANSI color library

#[allow(missing_doc)];
#[crate_id = "term#0.10-pre"];
#[comment = "Simple ANSI color 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")];

#[deny(non_camel_case_types)];
#[allow(missing_doc)];

use std::os;
use terminfo::*;
use terminfo::TermInfo;
use terminfo::searcher::open;
use terminfo::parser::compiled::{parse, msys_terminfo};
use terminfo::parm::{expand, Number, Variables};

pub mod terminfo;

// FIXME (#2807): Windows support.

pub mod color {
Expand Down
@@ -1,4 +1,4 @@
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
Expand Down
Expand Up @@ -573,7 +573,7 @@ fn format(val: Param, op: FormatOp, flags: Flags) -> Result<~[u8],~str> {

#[cfg(test)]
mod test {
use super::*;
use super::{expand,String,Variables,Number};
use std::result::Ok;

#[test]
Expand Down
Expand Up @@ -333,7 +333,8 @@ pub fn msys_terminfo() -> ~TermInfo {

#[cfg(test)]
mod test {
use super::*;

use super::{boolnames, boolfnames, numnames, numfnames, stringnames, stringfnames};

#[test]
fn test_veclens() {
Expand Down
File renamed without changes.

5 comments on commit 51260f6

@bors
Copy link
Contributor

@bors bors commented on 51260f6 Feb 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from huonw
at xales@51260f6

@bors
Copy link
Contributor

@bors bors commented on 51260f6 Feb 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging xales/rust/libextra = 51260f6 into auto

@bors
Copy link
Contributor

@bors bors commented on 51260f6 Feb 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xales/rust/libextra = 51260f6 merged ok, testing candidate = 449a99e

@bors
Copy link
Contributor

@bors bors commented on 51260f6 Feb 3, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 51260f6 Feb 3, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 449a99e

Please sign in to comment.