forked from servo/string-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlib.rs
More file actions
75 lines (57 loc) · 1.55 KB
/
lib.rs
File metadata and controls
75 lines (57 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Copyright 2014 The Servo Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![crate_name = "string_cache"]
#![crate_type = "rlib"]
#![feature(phase, macro_rules, default_type_params, globs)]
#![no_std]
#[phase(plugin, link)]
extern crate core;
extern crate alloc;
extern crate collections;
extern crate sync;
#[cfg(test)]
extern crate test;
#[cfg(test)]
extern crate native;
#[cfg(test)]
extern crate std;
#[phase(plugin)]
extern crate phf_mac;
extern crate phf;
#[phase(plugin)]
extern crate lazy_static;
extern crate xxhash;
#[phase(plugin)]
extern crate string_cache_macros;
#[cfg(feature = "log-events")]
extern crate serialize;
pub use atom::Atom;
pub use namespace::{Namespace, QualName};
#[cfg(feature = "log-events")]
pub mod event;
pub mod atom;
pub mod namespace;
// A private module so that macro-expanded idents like
// `::string_cache::atom::Atom` will also work in this crate.
//
// `libstd` uses the same trick.
#[doc(hidden)]
mod string_cache {
pub use atom;
pub use namespace;
}
// For macros and deriving.
#[cfg(not(test))]
mod std {
pub use core::{cmp, fmt, clone, option, mem, result};
pub use collections::hash;
pub mod sync {
pub use sync::one::{Once, ONCE_INIT};
}
}