3 releases

new 0.0.12 Dec 3, 2024
0.0.11 Nov 30, 2024
0.0.10 Nov 24, 2024

#1935 in Game dev

Download history 122/week @ 2024-11-20 244/week @ 2024-11-27

366 downloads per month
Used in 37 crates (19 directly)

MIT license

7KB
73 lines

Limnus Resource 🧱

Welcome to the Limnus Resource crate!

This crate offers a flexible and type-safe storage system for managing resources in your Rust applications. It allows you to dynamically store and retrieve resources using their type identifiers, enabling seamless interaction with various types without sacrificing type safety.

Each resource can be thought of as a data singleton within the limnus-resource storage. By design, every resource type is stored as a single instance, ensuring you have a unique and easily accessible representation of each resource throughout your application.

✨ Features

  • Dynamic Resource Storage: Store resources of different types.
  • Type Safety: Retrieve resources safely with downcasting to ensure type correctness.
  • Efficient: Uses a HashMap for quick lookups and management of resources.
  • Simple API: Easy-to-use methods for inserting, fetching, and managing resources.

📦 Installation

Add limnus-resource your project’s Cargo.toml:

[dependencies]
limnus-resource = "0.0.12"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Dependencies

~240–690KB
~16K SLoC