goods

Easy-to-use asset manager for many environments.

crates docs actions MIT/Apache loc

Easy-to-use asset manager for many environments.

Goals

This crate is written with following goals in mind:

Non-Goals

This crate is not aimed to support every possible feature. Here's list of some of those features:

Features

All out-of-the-box functionality exept core traits and types must be enabled with features.

General

Sources

Formats

Spawners

Examples

There are few simple examples provided to learn how use this crate.

fs examlple

Shows how to build registry with [FileSource] and load simple assets from it.

reqwest example

Async example that loads assets using HTTP protocol with [tokio] and [reqwest] crates.

fetch example

Shows how to load assets in browser using Fetch API.

This example can be built using build-wasm32.sh or build-wasm32.bat in examples directory.\ wasm-bindgen (compatible version) and wasm-opt must be in PATH

sh cd examples build-wasm32 fetch --features std,fetch,json-format,yaml-format,wasm-bindgen-spawn python3 server.py

Then open http://localhost:8000/fetch in your favorite browser. Loaded assets must be shown on the page. Otherwise see for errors in log.

License

This repository is licensed under either of

at your option.

Contribution Licensing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.