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:
2025-11-11 17:00:09 -06:00
parent 6614b32969
commit 78ed28a334
2 changed files with 6 additions and 7 deletions

3
src/lib.rs Normal file
View File

@@ -0,0 +1,3 @@
pub mod primitives;
pub mod renderer;
pub mod scene;

View File

@@ -1,11 +1,7 @@
mod primitives;
mod renderer;
mod scene;
use rustpt::primitives::{Vec2i, Vec3};
use rustpt::scene::{Camera, Scene};
use crate::primitives::{Vec2i, Vec3};
use crate::scene::{Camera, Scene};
use crate::renderer::{RenderProperties, Tile};
use rustpt::renderer::{RenderProperties, Tile};
use rand::SeedableRng;
use rand::rngs::SmallRng;