veloren_server_agent/
lib.rs1#[cfg(all(feature = "be-dyn-lib", feature = "use-dyn-lib"))]
2compile_error!("Can't use both \"be-dyn-lib\" and \"use-dyn-lib\" features at once");
3
4pub mod action_nodes;
5pub mod attack;
6pub mod consts;
7pub mod data;
8pub mod util;
9
10#[cfg(feature = "use-dyn-lib")]
11use {common_dynlib::LoadedLib, lazy_static::lazy_static, std::sync::Arc, std::sync::Mutex};
12
13#[cfg(feature = "use-dyn-lib")]
14lazy_static! {
15 pub static ref LIB: Arc<Mutex<Option<LoadedLib>>> =
16 common_dynlib::init("veloren-server-agent", "agent", &[]);
17}
18
19#[cfg(feature = "use-dyn-lib")]
20pub fn init() { lazy_static::initialize(&LIB); }