Split crate into lib and bin chunks
I'm going to be doing some silly WASM and ES Module stuff here shortly, so I need a cdylib. This means I'll need the crate to actually have a library in it.
This commit is contained in:
3
src/lib.rs
Normal file
3
src/lib.rs
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
pub mod primitives;
|
||||||
|
pub mod renderer;
|
||||||
|
pub mod scene;
|
||||||
10
src/main.rs
10
src/main.rs
@@ -1,11 +1,7 @@
|
|||||||
mod primitives;
|
use rustpt::primitives::{Vec2i, Vec3};
|
||||||
mod renderer;
|
use rustpt::scene::{Camera, Scene};
|
||||||
mod scene;
|
|
||||||
|
|
||||||
use crate::primitives::{Vec2i, Vec3};
|
use rustpt::renderer::{RenderProperties, Tile};
|
||||||
use crate::scene::{Camera, Scene};
|
|
||||||
|
|
||||||
use crate::renderer::{RenderProperties, Tile};
|
|
||||||
|
|
||||||
use rand::SeedableRng;
|
use rand::SeedableRng;
|
||||||
use rand::rngs::SmallRng;
|
use rand::rngs::SmallRng;
|
||||||
|
|||||||
Reference in New Issue
Block a user