41 lines
755 B
Rust
41 lines
755 B
Rust
|
|
#![no_std]
|
||
|
|
|
||
|
|
extern crate alloc;
|
||
|
|
|
||
|
|
mod allocator;
|
||
|
|
pub mod bsp;
|
||
|
|
pub mod chunk;
|
||
|
|
pub mod log;
|
||
|
|
pub mod math;
|
||
|
|
pub mod procgen;
|
||
|
|
pub mod sim;
|
||
|
|
pub mod transport;
|
||
|
|
pub mod voxel;
|
||
|
|
pub mod world;
|
||
|
|
|
||
|
|
use core::panic::PanicInfo;
|
||
|
|
|
||
|
|
#[global_allocator]
|
||
|
|
static ALLOCATOR: allocator::Allocator = allocator::Allocator;
|
||
|
|
|
||
|
|
#[panic_handler]
|
||
|
|
fn panic(_info: &PanicInfo) -> ! {
|
||
|
|
loop {}
|
||
|
|
}
|
||
|
|
|
||
|
|
#[allow(dead_code, non_camel_case_types, non_snake_case, non_upper_case_globals)]
|
||
|
|
pub mod protocol {
|
||
|
|
include!(concat!(env!("OUT_DIR"), "/protocol.rs"));
|
||
|
|
}
|
||
|
|
|
||
|
|
pub use bsp::*;
|
||
|
|
pub use chunk::*;
|
||
|
|
pub use chunk::stream::*;
|
||
|
|
pub use math::*;
|
||
|
|
pub use procgen::{ProcgenParams, generate, generate_rooms};
|
||
|
|
pub use protocol::*;
|
||
|
|
pub use sim::*;
|
||
|
|
pub use transport::*;
|
||
|
|
pub use voxel::*;
|
||
|
|
pub use world::*;
|