# Bevy Archive Reader
[](https://crates.io/crates/bevy_archive_reader)
[](https://docs.rs/bevy_archive_reader)
[](https://github.com/bevy_archive_reader/bevy_archive_reader#license)
Simple crate for reading Bevy assets from archives. Supports adding password protection, obfuscation and compression. Support for generating archives is included behind the `bundler` feature.
### Using in game
```rust
app.add_plugins(
bevy_archive_reader::ArchivePlugin::default()
.with_path_relative("file.zip")
.with_password("SomeSecretPassword"),
);
```
### Generating Archives
Generating archives should be done outside of the game (or at least outside of the shipped game), for example in a build script.
```rust
bevy_archive_reader::bundle_assets(
"imported_assets/Default", // or "assets", depends on the use case
ArchiveSaveSettings::default()
.with_password("SomeSecretPassword")
.with_compression(bevy_archive_reader::ArchiveCompression::Xz)
.with_path_relative("file.zip"),
```
## License
`bevy_archive_reader` is dual-licensed under MIT and Apache 2.0 at your option.
## Compatibility
| 0.17 | 0.1 |