From e643a50f4d62b3a18551e7fd8768e1364a14aeba Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Tue, 8 Mar 2022 18:52:49 +0100 Subject: [PATCH] Module refactor part 2 --- bffhd/{db/pass.rs => authentication/db.rs} | 0 bffhd/authentication/mod.rs | 3 +++ bffhd/{db.rs => db/mod.rs} | 6 ------ bffhd/lib.rs | 1 + bffhd/{db/resources.rs => resource/db.rs} | 0 bffhd/resource/mod.rs | 1 + 6 files changed, 5 insertions(+), 6 deletions(-) rename bffhd/{db/pass.rs => authentication/db.rs} (100%) create mode 100644 bffhd/authentication/mod.rs rename bffhd/{db.rs => db/mod.rs} (98%) rename bffhd/{db/resources.rs => resource/db.rs} (100%) diff --git a/bffhd/db/pass.rs b/bffhd/authentication/db.rs similarity index 100% rename from bffhd/db/pass.rs rename to bffhd/authentication/db.rs diff --git a/bffhd/authentication/mod.rs b/bffhd/authentication/mod.rs new file mode 100644 index 0000000..344bf1b --- /dev/null +++ b/bffhd/authentication/mod.rs @@ -0,0 +1,3 @@ + + +pub mod db; \ No newline at end of file diff --git a/bffhd/db.rs b/bffhd/db/mod.rs similarity index 98% rename from bffhd/db.rs rename to bffhd/db/mod.rs index 00070af..93139f7 100644 --- a/bffhd/db.rs +++ b/bffhd/db/mod.rs @@ -36,12 +36,6 @@ pub use hash::{ mod fix; pub use fix::LMDBorrow; -mod resources; -pub use resources::ResourceDB; - -mod pass; -pub use pass::PassDB; - use lmdb::Error; use rkyv::Deserialize; use rkyv::ser::serializers::AlignedSerializer; diff --git a/bffhd/lib.rs b/bffhd/lib.rs index 49cd862..2962eb9 100644 --- a/bffhd/lib.rs +++ b/bffhd/lib.rs @@ -18,6 +18,7 @@ pub mod error; pub mod permissions; pub mod users; +pub mod authentication; /// Resources pub mod resource; diff --git a/bffhd/db/resources.rs b/bffhd/resource/db.rs similarity index 100% rename from bffhd/db/resources.rs rename to bffhd/resource/db.rs diff --git a/bffhd/resource/mod.rs b/bffhd/resource/mod.rs index fd1e337..d91cbf8 100644 --- a/bffhd/resource/mod.rs +++ b/bffhd/resource/mod.rs @@ -10,6 +10,7 @@ use state::db::StateAccessor; pub mod state; pub mod claim; +pub mod db; /// A resource in BFFH has to contain several different parts;