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
// Copyright 2019 Zhizhesihai (Beijing) Technology Limited.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.

#![recursion_limit = "1024"]
#![cfg_attr(feature = "clippy", feature(plugin))]
#![cfg_attr(feature = "clippy", plugin(clippy))]
#![cfg_attr(not(feature = "clippy"), allow(unknown_lints))]
#![feature(exact_size_is_empty)]
#![feature(drain_filter)]
#![feature(hashmap_internals)]
#![feature(integer_atomics)]
#![feature(vec_remove_item)]
#![feature(specialization)]
#![allow(clippy::cast_lossless)]
#![feature(fn_traits)]
#![feature(maybe_uninit_ref)]
#![feature(maybe_uninit_extra)]

#[macro_use]
extern crate error_chain;
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate log;
extern crate rand;
extern crate regex;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;

extern crate alloc;
extern crate byteorder;
extern crate bytes;
extern crate crc;
extern crate crossbeam;
extern crate fasthash;
extern crate flate2;
extern crate memmap;
extern crate num_cpus;
extern crate num_traits;
extern crate smallvec;
extern crate thread_local;
extern crate unicode_reader;

pub mod core;
pub mod error;