Skip to content

Commit 449a99e

Browse files
committed
auto merge of #11945 : xales/rust/libextra, r=huonw
cc #8784
2 parents 8d7bd49 + 51260f6 commit 449a99e

File tree

11 files changed

+27
-15
lines changed

11 files changed

+27
-15
lines changed

mk/crates.mk

+4-3
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,23 @@
4949
# automatically generated for all stage/host/target combinations.
5050
################################################################################
5151

52-
TARGET_CRATES := std extra green rustuv native flate arena glob
52+
TARGET_CRATES := std extra green rustuv native flate arena glob term
5353
HOST_CRATES := syntax rustc rustdoc
5454
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5555
TOOLS := compiletest rustdoc rustc
5656

5757
DEPS_std := native:rustrt
58-
DEPS_extra := std
58+
DEPS_extra := std term
5959
DEPS_green := std
6060
DEPS_rustuv := std native:uv native:uv_support
6161
DEPS_native := std
62-
DEPS_syntax := std extra
62+
DEPS_syntax := std extra term
6363
DEPS_rustc := syntax native:rustllvm flate arena
6464
DEPS_rustdoc := rustc native:sundown
6565
DEPS_flate := std native:miniz
6666
DEPS_arena := std extra
6767
DEPS_glob := std
68+
DEPS_term := std
6869

6970
TOOL_DEPS_compiletest := extra green rustuv
7071
TOOL_DEPS_rustdoc := rustdoc green rustuv

src/doc/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ li {list-style-type: none; }
4040
* [The `arena` allocation library](arena/index.html)
4141
* [The `flate` compression library](flate/index.html)
4242
* [The `glob` file path matching library](glob/index.html)
43+
* [The `term` terminal-handling library](term/index.html)
4344

4445
# Tooling
4546

src/libextra/lib.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -67,7 +67,6 @@ pub mod ebml;
6767
pub mod getopts;
6868
pub mod json;
6969
pub mod tempfile;
70-
pub mod term;
7170
pub mod time;
7271
pub mod base64;
7372
pub mod workcache;
@@ -87,8 +86,6 @@ pub mod uuid;
8786
#[cfg(unicode)]
8887
mod unicode;
8988

90-
pub mod terminfo;
91-
9289
// Compiler support modules
9390

9491
pub mod test;

src/libextra/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// simplest interface possible for representing and running tests
1616
// while providing a base that other test frameworks may build off of.
1717

18+
extern mod term;
1819

1920
use getopts;
2021
use getopts::groups;
@@ -23,7 +24,6 @@ use json;
2324
use serialize::Decodable;
2425
use stats::Stats;
2526
use stats;
26-
use term;
2727
use time::precise_time_ns;
2828
use treemap::TreeMap;
2929

src/libsyntax/diagnostic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::io;
1616
use std::io::stdio::StdWriter;
1717
use std::iter::range;
1818
use std::local_data;
19-
use extra::term;
19+
use term;
2020

2121
static BUG_REPORT_URL: &'static str =
2222
"http://static.rust-lang.org/doc/master/complement-bugreport.html";

src/libsyntax/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ This API is completely unstable and subject to change.
3131
#[deny(non_camel_case_types)];
3232

3333
extern mod extra;
34+
extern mod term;
3435

3536
pub mod util {
3637
pub mod interner;

src/libextra/term.rs renamed to src/libterm/lib.rs

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -10,15 +10,26 @@
1010

1111
//! Simple ANSI color library
1212
13-
#[allow(missing_doc)];
13+
#[crate_id = "term#0.10-pre"];
14+
#[comment = "Simple ANSI color library"];
15+
#[license = "MIT/ASL2"];
16+
#[crate_type = "rlib"];
17+
#[crate_type = "dylib"];
18+
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
19+
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
20+
html_root_url = "http://static.rust-lang.org/doc/master")];
1421

22+
#[deny(non_camel_case_types)];
23+
#[allow(missing_doc)];
1524

1625
use std::os;
17-
use terminfo::*;
26+
use terminfo::TermInfo;
1827
use terminfo::searcher::open;
1928
use terminfo::parser::compiled::{parse, msys_terminfo};
2029
use terminfo::parm::{expand, Number, Variables};
2130

31+
pub mod terminfo;
32+
2233
// FIXME (#2807): Windows support.
2334

2435
pub mod color {

src/libextra/terminfo/mod.rs renamed to src/libterm/terminfo/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//

src/libextra/terminfo/parm.rs renamed to src/libterm/terminfo/parm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ fn format(val: Param, op: FormatOp, flags: Flags) -> Result<~[u8],~str> {
573573

574574
#[cfg(test)]
575575
mod test {
576-
use super::*;
576+
use super::{expand,String,Variables,Number};
577577
use std::result::Ok;
578578

579579
#[test]

src/libextra/terminfo/parser/compiled.rs renamed to src/libterm/terminfo/parser/compiled.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ pub fn msys_terminfo() -> ~TermInfo {
333333

334334
#[cfg(test)]
335335
mod test {
336-
use super::*;
336+
337+
use super::{boolnames, boolfnames, numnames, numfnames, stringnames, stringfnames};
337338

338339
#[test]
339340
fn test_veclens() {
File renamed without changes.

0 commit comments

Comments
 (0)