diff --git a/lithium-loader/Cargo.lock b/lithium-loader/Cargo.lock index 275d1c9..6e5c32a 100644 --- a/lithium-loader/Cargo.lock +++ b/lithium-loader/Cargo.lock @@ -2,17 +2,10 @@ # It is not intended for manual editing. version = 3 -[[package]] -name = "anyhow" -version = "1.0.75" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" - [[package]] name = "lithium-loader" version = "0.1.0" dependencies = [ - "anyhow", "lithium-utils", ] diff --git a/lithium-loader/Cargo.toml b/lithium-loader/Cargo.toml index c756fb5..6d0d3bb 100644 --- a/lithium-loader/Cargo.toml +++ b/lithium-loader/Cargo.toml @@ -8,6 +8,4 @@ authors = ["antifallobst"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -lithium-utils = { path = "../lithium-utils" } - -anyhow = "1.0.75" \ No newline at end of file +lithium-utils = { path = "../lithium-utils" } \ No newline at end of file diff --git a/lithium-loader/src/lib.rs b/lithium-loader/src/lib.rs index 77f0a0e..5316e0c 100644 --- a/lithium-loader/src/lib.rs +++ b/lithium-loader/src/lib.rs @@ -1,21 +1,4 @@ -use anyhow::Result; -use lithium_utils::{Vector2, Vector3}; - -pub struct Vertex { - pub position: Vector3, - pub uv: Vector2, - pub normal: Vector3, -} - -impl Vertex { - pub fn new(position: Vector3, uv: Vector2, normal: Vector3) -> Self { - Self { - position, - uv, - normal, - } - } -} +use lithium_utils::{Vector2, Vector3, Vertex}; pub struct Model { name: String, diff --git a/lithium-utils/src/lib.rs b/lithium-utils/src/lib.rs index a5ed86f..6d926f2 100644 --- a/lithium-utils/src/lib.rs +++ b/lithium-utils/src/lib.rs @@ -60,3 +60,19 @@ impl Vector3 { Self { x, y, z } } } + +pub struct Vertex { + pub position: Vector3, + pub uv: Vector2, + pub normal: Vector3, +} + +impl Vertex { + pub fn new(position: Vector3, uv: Vector2, normal: Vector3) -> Self { + Self { + position, + uv, + normal, + } + } +}