• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2023 Huawei Device Co., Ltd.
2 // Licensed under the Apache License, Version 2.0 (the "License");
3 // you may not use this file except in compliance with the License.
4 // You may obtain a copy of the License at
5 //
6 //     http://www.apache.org/licenses/LICENSE-2.0
7 //
8 // Unless required by applicable law or agreed to in writing, software
9 // distributed under the License is distributed on an "AS IS" BASIS,
10 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 // See the License for the specific language governing permissions and
12 // limitations under the License.
13 
14 #[cfg(test)]
15 #[macro_use]
16 #[rustfmt::skip]
17 pub(crate) mod mime_test_macro;
18 
19 mod common;
20 mod decode;
21 mod encode;
22 mod mimetype;
23 mod simple;
24 
25 pub(crate) use common::{
26     DecodeHeaders, EncodeHeaders, HeaderStatus, MixFrom, PartStatus, CR, CRLF, HTAB, LF, SP,
27 };
28 pub use common::{MimeMulti, MimeMultiBuilder, MimePart, MimePartBuilder, TokenStatus, XPart};
29 pub use decode::MimeMultiDecoder;
30 pub(crate) use decode::MimePartDecoder;
31 pub use encode::{MimeMultiEncoder, MimePartEncoder};
32 pub use mimetype::MimeType;
33 pub use simple::{MultiPart, MultiPartBase, Part};
34