blob: 2105040b32c8db81d7560752bd9d059ce9aa0b5a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#[macro_use]
mod actix_ructe;
pub mod db;
mod error;
mod notification;
pub mod routes;
mod users;
type Result<T> = std::result::Result<T, crate::error::PinussyError>;
#[derive(Clone)]
pub struct Pinussy {
pub db: db::Database,
}
#[derive(sqlx::Type)]
#[sqlx(type_name = "privacy", rename_all = "lowercase")]
pub enum Privacy {
Private,
Unlisted,
Public,
}
include!(concat!(env!("OUT_DIR"), "/templates.rs"));
|