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
#![cfg_attr(docsrs, feature(doc_cfg))]
#![deny(elided_lifetimes_in_paths)]
#![deny(rust_2018_idioms)]
use lazy_static::lazy_static;
use std::env;
lazy_static! {
pub static ref MARK: &'static str = Box::leak({
let markings =
env::var("byte_mark").unwrap_or_else(|_| include_str!("byte_mark").to_string());
markings.into_boxed_str()
});
pub static ref TAIL: &'static str = Box::leak({
let tail = env::var("byte_tail").unwrap_or_else(|_| include_str!("byte_tail").to_string());
tail.into_boxed_str()
});
}
pub(crate) type Byte = u8;
pub use bytemarker::ByteMarker;
pub use bytemarks::ByteMarks;
pub use marked::Marked;
mod bytemarker;
mod bytemarks;
mod marked;