1 unstable release
0.1.0 | Jan 2, 2023 |
---|
#1861 in Game dev
4KB
bevy_assets_tar_zstd
This package is for packaging assets in bevy in a tar.zstd
file at compile-time.
Automatically package assets
Package assets in the assets
directory in the assets.tar.zstd file at built-time:
fn main() {
bevy_assets_tar_zstd_bundler::bundle_asset(bevy_assets_tar_zstd_bundler::Config::default());
}
Add asset loader
App::new()
.add_plugin(bevy_assets_tar_zstd::AssetsTarZstdPlugin::default())
lib.rs
:
Crate for supporting the bevy_assets_tar_zstd
crate.
This generates an assets.bin
in the folder next-to or the parent directory of the generated
executable by cargo.
Use this in your build scripts build.rs
file:
fn main() {
bevy_assets_tar_zstd_bundler::bundle_asset(bevy_assets_tar_zstd_bundler::Config::default());
}
You have to add bevy_assets_tar_zstd_bundler
as a build dependency in Cargo.toml
[build-dependencies]
bevy_assets_tar_zstd_bundler = { version = "0" }
Dependencies
~5–14MB
~170K SLoC