Goods

Easy-to-use asset manager for many environments.

crates docs License

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 execut core traits and types are enabled with features.

General

Sources

Formats

Spawners

Examples

There are few simple examples provided already.

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.

legion example

Shows how to load assets directly into entity using legion ECS crate.

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 fetch,json-format,yaml-format,wasm-spawn python3 server.py

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

Gotchas

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.