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
#![no_std]

#![feature(non_ascii_idents)]

#![cfg_attr(feature = "box", feature(fundamental))]
#![cfg_attr(feature = "box", feature(lang_items))]

#![cfg_attr(test, feature(custom_attribute))]
#![cfg_attr(test, feature(plugin))]

#![cfg_attr(test, plugin(quickcheck_macros))]

extern crate loca as alloc;
extern crate either;
extern crate fallible;
extern crate heap;
extern crate ptr;
extern crate rel;
extern crate siphasher;
extern crate unreachable;

#[cfg(any(test, feature = "default_allocator"))]
extern crate default_allocator;

use siphasher::sip;

#[cfg(test)] extern crate quickcheck;
#[cfg(test)] extern crate std;

#[cfg(feature = "box")]
pub mod boxed;
pub mod collections;

mod util;

#[cfg(not(any(test, feature = "default_allocator")))]
type DefaultA = alloc::NullAllocator;

#[cfg(any(test, feature = "default_allocator"))]
type DefaultA = default_allocator::Heap;