aboutsummaryrefslogtreecommitdiffstats
path: root/src/files.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/files.rs')
-rw-r--r--src/files.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/files.rs b/src/files.rs
index bc8fb8e..7c9d808 100644
--- a/src/files.rs
+++ b/src/files.rs
@@ -21,15 +21,27 @@ pub(crate) enum FileKind {
Backup,
/// The input of a genesis remake (`--genesis --remake`).
Remake,
+ /// A store's root (`--store-root`).
+ #[cfg(feature = "federation")]
+ Store,
}
impl FileKind {
+ #[cfg(not(feature = "federation"))]
pub(crate) const ALL: [FileKind; 4] = [
FileKind::State,
FileKind::Document,
FileKind::Backup,
FileKind::Remake,
];
+ #[cfg(feature = "federation")]
+ pub(crate) const ALL: [FileKind; 5] = [
+ FileKind::State,
+ FileKind::Document,
+ FileKind::Backup,
+ FileKind::Remake,
+ FileKind::Store,
+ ];
pub(crate) fn as_str(self) -> &'static str {
match self {
@@ -37,6 +49,8 @@ impl FileKind {
FileKind::Document => "document",
FileKind::Backup => "backup",
FileKind::Remake => "remake",
+ #[cfg(feature = "federation")]
+ FileKind::Store => "store",
}
}