mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-01-12 08:12:36 +08:00
12 lines
326 B
Rust
12 lines
326 B
Rust
|
|
#[cfg(not(feature = "library"))]
|
|
fn main() -> std::io::Result<()> {
|
|
ew::runtime::update_data_path(&ew::get_args().path);
|
|
ew::run_server(false)
|
|
}
|
|
|
|
#[cfg(feature = "library")]
|
|
fn main() {
|
|
panic!("Compiled with the library feature! You should load the shared object library and call the exported methods there.");
|
|
}
|