1 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
2 | // https://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
3 | // <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your |
4 | // option. This file may not be copied, modified, or distributed |
5 | // except according to those terms. |
6 | |
7 | #![cfg_attr (all(test, feature = "bench" ), feature(test))] |
8 | //#![cfg_attr(test, deny(warnings))] |
9 | |
10 | #[cfg (feature = "encoding" )] |
11 | pub extern crate encoding; |
12 | #[cfg (feature = "encoding_rs" )] |
13 | pub extern crate encoding_rs; |
14 | #[cfg (all(test, feature = "bench" ))] |
15 | extern crate test; |
16 | #[macro_use ] |
17 | extern crate mac; |
18 | extern crate futf; |
19 | extern crate utf8; |
20 | |
21 | pub use fmt::Format; |
22 | pub use stream::TendrilSink; |
23 | pub use tendril::{Atomic, Atomicity, NonAtomic, SendTendril}; |
24 | pub use tendril::{ByteTendril, ReadExt, SliceExt, StrTendril, SubtendrilError, Tendril}; |
25 | pub use utf8_decode::IncompleteUtf8; |
26 | |
27 | pub mod fmt; |
28 | pub mod stream; |
29 | |
30 | mod buf32; |
31 | mod tendril; |
32 | mod utf8_decode; |
33 | mod util; |
34 | |
35 | static OFLOW: &'static str = "tendril: overflow in buffer arithmetic" ; |
36 | |