
Removig chrono from api code as well Removing chrono as dep in api code + Using Content-Type for /message/send content type Updating cargo lists for removal of fluff deps Removal of more fluff Addking makefile to avoid compiling debug builds by accident while developing
27 lines
496 B
Rust
27 lines
496 B
Rust
#[macro_export]
|
|
macro_rules! no_conn {
|
|
($spec:literal) => {
|
|
format!("[ CON Error ] : {}", $spec)
|
|
}
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! sql_err {
|
|
($spec:literal) => {
|
|
format!("[ SQL Error ] : {}", $spec)
|
|
};
|
|
|
|
// Using this mostly to pull in sql err types from lib to outside world for logging
|
|
($exp:expr) => {
|
|
format!("[ SQL Error ] : {}", $exp)
|
|
}
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! sql_err_log {
|
|
($spec:expr) => {
|
|
println!($spec);
|
|
}
|
|
}
|
|
|