Skip to main content

rustfs_utils/
lib.rs

1// Copyright 2024 RustFS Team
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#[cfg(feature = "egress")]
16pub mod egress;
17#[cfg(feature = "ip")]
18pub mod ip;
19#[cfg(feature = "net")]
20pub mod net;
21
22#[cfg(feature = "http")]
23pub mod http;
24
25#[cfg(feature = "egress")]
26pub use egress::*;
27#[cfg(feature = "net")]
28pub use net::*;
29
30#[cfg(all(feature = "net", feature = "io"))]
31pub mod retry;
32
33#[cfg(feature = "io")]
34pub mod io;
35
36#[cfg(feature = "hash")]
37pub mod hash;
38
39#[cfg(feature = "os")]
40pub mod os;
41
42#[cfg(feature = "path")]
43pub mod path;
44
45#[cfg(feature = "string")]
46pub mod string;
47
48#[cfg(feature = "crypto")]
49pub mod crypto;
50
51#[cfg(feature = "compress")]
52pub mod compress;
53
54pub mod logging;
55
56#[cfg(feature = "path")]
57pub mod dirs;
58
59#[cfg(feature = "hash")]
60pub use hash::*;
61
62#[cfg(feature = "io")]
63pub use io::*;
64
65#[cfg(feature = "ip")]
66pub use ip::*;
67
68#[cfg(feature = "crypto")]
69pub use crypto::*;
70
71#[cfg(feature = "compress")]
72pub use compress::*;
73
74#[cfg(feature = "obj")]
75pub mod obj;
76
77#[cfg(feature = "path")]
78mod dunce;
79#[cfg(feature = "path")]
80pub use dunce::*;
81mod envs;
82pub use envs::*;
83pub use logging::*;