swamp-asset-reader

Crates.ioswamp-asset-reader
lib.rsswamp-asset-reader
version0.0.9
sourcesrc
created_at2024-11-08 18:50:19.610209
updated_at2024-11-08 18:50:19.610209
descriptionreads assets async on multiple platforms
homepage
repositoryhttps://github.com/piot/swamp-render
max_upload_size
id1441437
size11,858
Peter Bjorklund (piot)

documentation

README

Swamp Asset Reader 🐊

Swamp Asset Reader is a Rust crate designed to facilitate asynchronous asset loading across different platforms. It provides a unified interface to fetch assets either from the local file system or over HTTP in WebAssembly (WASM) environments. Additionally, it includes a debug module to simulate asset loading delays, aiding in testing and development.

✨ Features

  • Asynchronous Asset Loading: Load assets without blocking the main thread, ensuring smooth application performance.
  • Cross-Platform Support: Seamlessly handle asset loading for both native applications and WASM targets.
  • Debugging Tools: Introduce intentional delays in asset loading to test application responsiveness and error handling.

📦 Installation

Add swamp-asset-reader to your project’s Cargo.toml:

[dependencies]
swamp-asset-reader = "0.0.9"

License

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

Contents credits

Commit count: 71

cargo fmt