about summary refs log tree commit diff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib.rs b/src/lib.rs
index dfcfe6d..108a42f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,6 +1,7 @@
 use tide::{Request, Response};
 
-mod database;
+/// Database abstraction layer for Kittybox, allowing the CMS to work with any kind of database.
+pub mod database;
 mod frontend;
 mod indieauth;
 mod micropub;
@@ -35,7 +36,7 @@ where
         .with(IndieAuthMiddleware::new())
         .get(micropub::get_handler)
         .post(micropub::post_handler);
-    // The Micropub client. It'll start small, but could grow into something full-featured!
+    // The Micropub client. It'll start small, but could grow into something full-featured
     app.at("/micropub/client").get(|_: Request<_>| async move {
         Ok(Response::builder(200)
             .body(MICROPUB_CLIENT)
@@ -67,7 +68,7 @@ where
     app
 }
 
-#[cfg(redis)]
+/*#[cfg(feature="redis")]
 pub async fn get_app_with_redis(
     token_endpoint: surf::Url,
     authorization_endpoint: surf::Url,
@@ -85,7 +86,7 @@ pub async fn get_app_with_redis(
     });
 
     equip_app(app)
-}
+}*/
 
 pub async fn get_app_with_file(
     token_endpoint: surf::Url,
@@ -128,7 +129,7 @@ pub async fn get_app_with_test_file(token_endpoint: surf::Url) -> (
     (tempdir, backend, equip_app(app))
 }
 
-#[cfg(all(redis, test))]
+/*#[cfg(all(redis, test))]
 pub async fn get_app_with_test_redis(
     token_endpoint: surf::Url,
 ) -> (
@@ -151,7 +152,7 @@ pub async fn get_app_with_test_redis(
         http_client: surf::Client::new(),
     });
     (redis_instance, backend, equip_app(app))
-}
+}*/
 
 #[cfg(test)]
 #[allow(unused_variables)]