From 75eac74f3fb9647d29b50cfae412f09e73bf3eb7 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 10 Oct 2020 19:53:33 -0700 Subject: [PATCH] forgot to expose modules for use as external crate --- server-api/db/src/common.rs | 7 +++++++ server-api/db/src/lib.rs | 10 +++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/server-api/db/src/common.rs b/server-api/db/src/common.rs index 66a6620..f900e67 100644 --- a/server-api/db/src/common.rs +++ b/server-api/db/src/common.rs @@ -18,6 +18,13 @@ macro_rules! sql_err { } } +#[macro_export] +macro_rules! sql_err_log { + ($spec:expr) => { + println!($spec); + } +} + /* * NOTE: pay attention to work on async in traits for rust * Each of one these funcs will implicitly do a single heap allocation which diff --git a/server-api/db/src/lib.rs b/server-api/db/src/lib.rs index 6f9cdc2..a8b0857 100644 --- a/server-api/db/src/lib.rs +++ b/server-api/db/src/lib.rs @@ -1,8 +1,8 @@ -mod member; -mod common; -mod invites; -mod channels; -mod messages; +pub mod member; +pub mod common; +pub mod invites; +pub mod channels; +pub mod messages; use std::vec::Vec;