diff --git a/Cargo.toml b/Cargo.toml index 0e0712e..a3982ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,11 +2,12 @@ name = "modelz" version = "0.1.5" edition = "2024" -author = "Alexander Medvedev" +authors = ["Alexander Medvedev"] description = "A library to load various 3D file formats into a shared, in-memory representation" + readme = "README.md" license = "MIT" -keywords = ["gltf", "obj", "assimp", "ply", "stl"] +keywords = ["gltf", "stl", "obj", "assimp", "ply"] categories = ["rendering::data-formats", "graphics", "game-development"] repository = "https://github.com/ventengine/Modelz" @@ -25,10 +26,10 @@ ply = ["dep:ply-rs"] log = "0.4" # glTF 2.0 -gltf = {version = "1.4.1", optional = true } +gltf = {version = "1.4", optional = true } # OBJ Wavefront -tobj = { version = "4.0.3", default-features = false, features = ["async"], optional = true } +tobj = { version = "4.0", default-features = false, features = ["async"], optional = true } # STL -stl_io = { version = "0.8.5", optional = true } +stl_io = { version = "0.8", optional = true } # PLY -ply-rs = { version = "0.1.3", optional = true } +ply-rs = { version = "0.1", optional = true } diff --git a/src/lib.rs b/src/lib.rs index 84545b4..a84ab5d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,9 +12,9 @@ use std::path::{Path, PathBuf}; mod gltf; #[cfg(feature = "obj")] mod obj; -#[cfg(feature = "stl")] -mod ply; #[cfg(feature = "ply")] +mod ply; +#[cfg(feature = "stl")] mod stl; pub struct Model3D { @@ -134,6 +134,8 @@ fn get_format>(path: &P) -> Result { "gltf" | "glb" => Ok(ModelFormat::GLTF), #[cfg(feature = "stl")] "stl" => Ok(ModelFormat::STL), + #[cfg(feature = "ply")] + "ply" => Ok(ModelFormat::PLY), _ => Err(ModelError::UnknownFormat), } }