#loading #async #io #wasm #networking

chunk-reader

reads octets async on multiple platforms

1 unstable release

0.0.1 Nov 13, 2024

#110 in #loading

Download history 57/week @ 2024-11-16 58/week @ 2024-11-23 153/week @ 2024-11-30 144/week @ 2024-12-07 49/week @ 2024-12-14 16/week @ 2024-12-21 60/week @ 2024-12-28 78/week @ 2025-01-04 117/week @ 2025-01-11 65/week @ 2025-01-18 18/week @ 2025-01-25 23/week @ 2025-02-01 14/week @ 2025-02-08 30/week @ 2025-02-15 50/week @ 2025-02-22 108/week @ 2025-03-01

209 downloads per month
Used in 25 crates (5 directly)

MIT license

14KB
217 lines

💾 Chunk Reader

Chunk 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 chunk-reader to your project’s Cargo.toml:

[dependencies]
chunk-reader = "0.0.1"

License

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

Contents credits

Dependencies

~0.5–3.5MB
~62K SLoC