{"id":16613026,"url":"https://github.com/craftspider/rbxm-rs","last_synced_at":"2025-04-05T00:17:15.394Z","repository":{"id":46130405,"uuid":"352172922","full_name":"CraftSpider/rbxm-rs","owner":"CraftSpider","description":"A Rust implementation for reading/writing roblox models","archived":false,"fork":false,"pushed_at":"2022-12-19T13:23:38.000Z","size":488,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T20:48:33.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CraftSpider.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-27T20:41:43.000Z","updated_at":"2022-04-24T23:36:25.000Z","dependencies_parsed_at":"2023-01-29T21:45:44.372Z","dependency_job_id":null,"html_url":"https://github.com/CraftSpider/rbxm-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraftSpider%2Frbxm-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraftSpider%2Frbxm-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraftSpider%2Frbxm-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraftSpider%2Frbxm-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CraftSpider","download_url":"https://codeload.github.com/CraftSpider/rbxm-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266568,"owners_count":20910837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T01:45:47.139Z","updated_at":"2025-04-05T00:17:15.375Z","avatar_url":"https://github.com/CraftSpider.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rbxm-rs\n\n[![crates.io](https://img.shields.io/crates/v/rbxm.svg)](https://crates.io/crates/rbxm)\n[![Documentation](https://docs.rs/rbxm/badge.svg)](https://docs.rs/rbxm)\n[![MIT/Apache-2 licensed](https://img.shields.io/crates/l/rbxm.svg)](./LICENSE-APACHE)\n\nA reader for Roblox model files, implemented in Rust.\n\n## Features\n\n- Strongly-typed handling of many Roblox instance kinds\n- Feature flags to add support for less stable formats, E.G. CSGPHS Meshes.\n- `#[no_std]` support, as long as alloc is present\n\n## Example\n\n```rust\nuse rbxm::{from_file, SerdeError, ModelError};\n\nfn main() {\n    // Read a model from a file\n    let model = match from_file(\"./Model.rbxm\") {\n        Ok(model) =\u003e model,\n        Err(SerdeError::IoError(err)) =\u003e panic!(\"IO Error: {}\", err),\n        Err(err) =\u003e panic!(\"Error parsing model: {}\", err),\n    };\n\n    // Get a part from a path, this looks for a root node named ModelSection with a child named Part, and returns\n    // that child.\n    let part = match model.get_path(\"ModelSection/Part\") {\n        Ok(part) =\u003e part,\n        Err(ModelError::NotFound) =\u003e panic!(\"Couldn't find instance at \\\"ModelSection/Part\\\"\"),\n        Err(ModelError::AmbiguousPath) =\u003e panic!(\"Found more than one instance matching \\\"ModelSection/Part\\\"\"),\n        Err(err) =\u003e panic!(\"Model Error: {}\", err),\n    };\n\n    println!(\"Part Class: {}\", part.borrow().kind.class_name())\n}\n```\n\n## TODO\n\n- Complete instance info documentation\n- XML file support\n- More helper methods on data\n- Instance new methods + `#[non_exhaustive]` for better future compat\n- Improve parsing modularity, add a low-level API for it maybe\n\n## License\nLicensed under either of\n- Apache License, Version 2.0 (LICENSE-APACHE or http://apache.org/licenses/LICENSE-2.0)\n- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you,\nas defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraftspider%2Frbxm-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraftspider%2Frbxm-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraftspider%2Frbxm-rs/lists"}