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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
pub mod apath;
pub mod archive;
pub mod backup;
mod band;
pub mod bandid;
mod blockdir;
pub mod blockhash;
pub mod compress;
pub mod copy_tree;
mod entry;
pub mod errors;
pub mod excludes;
pub mod index;
mod io;
mod jsonio;
pub mod kind;
pub mod live_tree;
mod merge;
pub(crate) mod misc;
pub mod output;
mod progress;
pub mod restore;
pub mod stats;
mod stitch;
mod stored_file;
mod stored_tree;
pub mod test_fixtures;
pub mod transport;
mod tree;
pub mod ui;
pub mod unix_time;
pub use crate::apath::Apath;
pub use crate::archive::Archive;
pub use crate::backup::BackupOptions;
pub use crate::backup::BackupWriter;
pub use crate::band::Band;
pub use crate::band::BandSelectionPolicy;
pub use crate::bandid::BandId;
pub use crate::blockdir::BlockDir;
pub use crate::blockhash::BlockHash;
pub use crate::copy_tree::copy_tree;
pub use crate::entry::Entry;
pub use crate::errors::Error;
pub use crate::index::{IndexBuilder, IndexEntry, IndexRead};
pub use crate::kind::Kind;
pub use crate::live_tree::{LiveEntry, LiveTree};
pub use crate::merge::{iter_merged_entries, MergedEntryKind};
pub use crate::misc::bytes_to_human_mb;
pub use crate::progress::ProgressBar;
pub use crate::restore::{RestoreOptions, RestoreTree};
pub use crate::stats::ValidateStats;
pub use crate::stored_tree::StoredTree;
pub use crate::tree::{ReadBlocks, ReadTree, TreeSize, WriteTree};
pub use globset::GlobSet;
pub type Result<T> = std::result::Result<T, Error>;
const VERSION: &str = env!("CARGO_PKG_VERSION");
pub fn version() -> &'static str {
VERSION
}
pub const ARCHIVE_VERSION: &str = "0.6";
pub const SYMLINKS_SUPPORTED: bool = cfg!(target_family = "unix");
pub(crate) const MAX_BLOCK_SIZE: usize = 1 << 20;
const TIMESTAMP_FORMAT: &str = "%F %T";
const TMP_PREFIX: &str = "tmp";
static BAND_HEAD_FILENAME: &str = "BANDHEAD";
static BAND_TAIL_FILENAME: &str = "BANDTAIL";
pub(crate) const BLAKE_HASH_SIZE_BYTES: usize = 64;