Skip to content

Commit 966e53d

Browse files
committed
Add librustc_data_structures crate
1 parent b7fb575 commit 966e53d

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

mk/crates.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ TARGET_CRATES := libc std flate arena term \
5454
log graphviz core rbml alloc \
5555
unicode rustc_bitflags
5656
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
57-
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint
57+
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
58+
rustc_data_structures
5859
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
5960
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
6061
TOOLS := compiletest rustdoc rustc rustbook
@@ -80,9 +81,10 @@ DEPS_rustc_resolve := rustc log syntax
8081
DEPS_rustc_privacy := rustc log syntax
8182
DEPS_rustc_lint := rustc log syntax
8283
DEPS_rustc := syntax flate arena serialize getopts rbml \
83-
log graphviz rustc_llvm rustc_back
84+
log graphviz rustc_llvm rustc_back rustc_data_structures
8485
DEPS_rustc_llvm := native:rustllvm libc std
8586
DEPS_rustc_back := std syntax rustc_llvm flate log libc
87+
DEPS_rustc_data_structures := std log serialize
8688
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
8789
test rustc_lint
8890
DEPS_rustc_bitflags := core

src/librustc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ extern crate graphviz;
5454
extern crate libc;
5555
extern crate rustc_llvm;
5656
extern crate rustc_back;
57+
extern crate rustc_data_structures;
5758
extern crate serialize;
5859
extern crate rbml;
5960
extern crate collections;

src/librustc_data_structures/lib.rs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
//! Various data structures used by the Rust compiler. The intention
12+
//! is that code in here should be not be *specific* to rustc, so that
13+
//! it can be easily unit tested and so forth.
14+
//!
15+
//! # Note
16+
//!
17+
//! This API is completely unstable and subject to change.
18+
19+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
20+
#![cfg_attr(stage0, feature(custom_attribute))]
21+
#![crate_name = "rustc_data_structures"]
22+
#![unstable(feature = "rustc_private")]
23+
#![crate_type = "dylib"]
24+
#![crate_type = "rlib"]
25+
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
26+
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
27+
html_root_url = "http://doc.rust-lang.org/nightly/")]
28+
29+
#![feature(rustc_private)]
30+
#![feature(test)]
31+
32+
#[macro_use] extern crate log;
33+
extern crate serialize as rustc_serialize; // used by deriving

0 commit comments

Comments
 (0)