42 lines
843 B
Rust
42 lines
843 B
Rust
//! # luad main library
|
|
//!
|
|
//!
|
|
//!
|
|
#![warn(
|
|
trivial_casts,
|
|
trivial_numeric_casts,
|
|
unused_extern_crates,
|
|
unused_qualifications,
|
|
unused_results,
|
|
missing_docs,
|
|
clippy::pedantic,
|
|
clippy::missing_docs_in_private_items
|
|
)]
|
|
|
|
/// app author
|
|
pub const APP_AUTHOR: &str = "Dany LE <mrsang@iohub.dev>";
|
|
|
|
/// app version
|
|
pub const APP_VERSION: &str = env!("CARGO_PKG_VERSION");
|
|
|
|
/// Application name
|
|
pub const DAEMON_NAME: &str = "luad";
|
|
|
|
mod utils;
|
|
pub use utils::{chmod_file, is_unix_socket, on_exit, privdrop};
|
|
|
|
mod logs;
|
|
pub use logs::{LogLevel, LogManager};
|
|
|
|
mod fcgi;
|
|
pub use fcgi::{fcgi_send_slice, process_request};
|
|
|
|
mod luapi;
|
|
pub use luapi::{
|
|
lua_new_bytes, lua_new_bytes_from_string, lua_new_from_slice, lua_slice_magic,
|
|
vec_from_variadic, LuaSlice, LuabyteArray,
|
|
};
|
|
|
|
mod pool;
|
|
pub use pool::ThreadPool;
|