mi/backend/src/lib.rs

29 lines
539 B
Rust
Raw Normal View History

2020-11-03 14:47:19 +00:00
#![feature(proc_macro_hygiene, decl_macro)]
#[macro_use]
extern crate diesel;
#[macro_use]
extern crate rocket;
#[macro_use]
extern crate rocket_contrib;
#[macro_use]
extern crate tracing;
use diesel::sqlite::SqliteConnection;
2020-11-03 15:26:51 +00:00
pub const APPLICATION_NAME: &str = concat!(
env!("CARGO_PKG_NAME"),
"/",
env!("CARGO_PKG_VERSION"),
" +https://mi.within.website/.within/botinfo"
);
2020-11-03 14:47:19 +00:00
pub mod api;
pub mod models;
2020-11-03 19:55:03 +00:00
pub mod paseto;
2020-11-03 14:47:19 +00:00
pub mod schema;
pub mod web;
#[database("main_data")]
pub struct MainDatabase(SqliteConnection);