http_box/lib.rs
1// +-----------------------------------------------------------------------------------------------+
2// | Copyright 2016 Sean Kerr |
3// | |
4// | Licensed under the Apache License, Version 2.0 (the "License"); |
5// | you may not use this file except in compliance with the License. |
6// | You may obtain a copy of the License at |
7// | |
8// | http://www.apache.org/licenses/LICENSE-2.0 |
9// | |
10// | Unless required by applicable law or agreed to in writing, software |
11// | distributed under the License is distributed on an "AS IS" BASIS, |
12// | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13// | See the License for the specific language governing permissions and |
14// | limitations under the License. |
15// +-----------------------------------------------------------------------------------------------+
16
17#![crate_name = "http_box"]
18
19#[macro_use]
20extern crate byte_slice;
21
22#[macro_use]
23pub mod fsm;
24
25#[macro_use]
26mod collect;
27
28pub mod byte;
29pub mod http1;
30pub mod http2;
31pub mod util;
32
33#[cfg(test)]
34mod test;
35
36/// Crate major version.
37pub const VERSION_MAJOR: &'static str = env!("CARGO_PKG_VERSION_MAJOR");
38
39/// Crate minor version.
40pub const VERSION_MINOR: &'static str = env!("CARGO_PKG_VERSION_MINOR");
41
42/// Crate patch version.
43pub const VERSION_PATCH: &'static str = env!("CARGO_PKG_VERSION_PATCH");