Skip to content

Move term, terminfo out of extra. #11945

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions mk/crates.mk
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.