summaryrefslogtreecommitdiffstats
path: root/server/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/lib.rs')
-rw-r--r--server/src/lib.rs22
1 files changed, 15 insertions, 7 deletions
diff --git a/server/src/lib.rs b/server/src/lib.rs
index b1a1f252..3daeb8d2 100644
--- a/server/src/lib.rs
+++ b/server/src/lib.rs
@@ -1,7 +1,19 @@
#[macro_use]
-extern crate diesel;
-extern crate dotenv;
-extern crate chrono;
+pub extern crate diesel;
+pub extern crate dotenv;
+pub extern crate chrono;
+pub extern crate serde;
+pub extern crate serde_json;
+pub extern crate actix;
+pub extern crate actix_web;
+pub extern crate rand;
+pub extern crate strum;
+#[macro_use] pub extern crate strum_macros;
+
+pub mod schema;
+pub mod apub;
+pub mod actions;
+pub mod websocket_server;
use diesel::*;
use diesel::pg::PgConnection;
@@ -9,11 +21,7 @@ use diesel::result::Error;
use dotenv::dotenv;
use std::env;
-pub mod schema;
-pub mod apub;
-pub mod actions;
-// pub trait Likeable;
pub trait Crud<T> {
fn create(conn: &PgConnection, form: T) -> Result<Self, Error> where Self: Sized;
fn read(conn: &PgConnection, id: i32) -> Self;