You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
/// Default anonymous name
pub const ANON_NAME : & ' static str = "名無し" ;
/// Max length of `name` and `email` feilds in posts.
pub const POST_ID_MAX_LEN : usize = 32 ;
/// The salt to use for tripcode hashes
pub const TRIPCODE_SALT : khash ::salt ::Salt = khash ::salt ::Salt ::internal ( ) ;
/// The tripcode algorithm to use
pub const TRIPCODE_ALGO : khash ::ctx ::Algorithm = khash ::ctx ::Algorithm ::Sha256 ;
/// What timezone to represent data in.
pub type Timezone = chrono ::offset ::Utc ;
/// Default post expiry duration (120 days)
///
/// # Notes
/// This is specified as a std `Duration`, the chrono `Duration` calculated from the post's offset must be converted into this type to be used for anything.
/// This conversion can fail.
/// If it does fail, then the post should just be treated as expired.
pub const POST_EXPIRE : tokio ::time ::Duration = tokio ::time ::Duration ::from_secs (
60 // Minute
* 60 // Hour
* 24 // Day
* 120
) ;
/// Max size of encrypted body
pub const POST_BODY_MAX_SIZE : usize = ( 1024 * 1024 ) * 20 ; // 20MB