-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathlib.rs
More file actions
56 lines (49 loc) · 1.19 KB
/
lib.rs
File metadata and controls
56 lines (49 loc) · 1.19 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! The library crate for `pdu`.
//!
//! The things you are most interested in are likely [`fs_tree_builder::FsTreeBuilder`],
//! [`tree_builder::TreeBuilder`], [`data_tree::DataTree`], or [`visualizer::Visualizer`].
#![deny(warnings)]
#[cfg(feature = "json")]
pub use serde;
#[cfg(feature = "json")]
pub use serde_json;
#[cfg(feature = "cli")]
pub mod app;
#[cfg(feature = "cli")]
pub mod args;
#[cfg(feature = "cli-man")]
pub mod man_page;
#[cfg(feature = "cli")]
pub mod runtime_error;
#[cfg(feature = "cli")]
pub mod usage_md;
/// The main program.
#[cfg(feature = "cli")]
pub fn main() -> std::process::ExitCode {
if let Err(error) = app::App::from_env().run() {
eprintln!("[error] {error}");
return error.code();
}
std::process::ExitCode::SUCCESS
}
#[cfg(feature = "cli")]
pub use clap;
#[cfg(feature = "cli")]
pub use clap_complete;
#[cfg(feature = "cli")]
pub use clap_utilities;
pub mod bytes_format;
pub mod data_tree;
pub mod device;
pub mod fs_tree_builder;
pub mod get_size;
pub mod hardlink;
pub mod inode;
pub mod json_data;
pub mod os_string_display;
pub mod reporter;
pub mod size;
pub mod status_board;
pub mod tree_builder;
pub mod visualizer;
pub use zero_copy_pads;