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
#![feature(
specialization,
unboxed_closures,
fn_traits,
arbitrary_self_types,
ptr_offset_from,
iterator_find_map,
int_to_from_bytes,
)]
#![cfg_attr(test, allow(warnings))]
#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(not(feature = "std"))]
extern crate core as std;
extern crate memchr;
pub mod haystack;
pub mod needle;
mod slices;
mod strings;
mod omgwtf8;
pub mod ext;
pub use haystack::{Hay, Haystack, SharedHaystack, Span};
pub use needle::{Needle, Searcher, ReverseSearcher, DoubleEndedSearcher, Consumer, ReverseConsumer, DoubleEndedConsumer};
pub use omgwtf8::Wtf8;