{"id":15996233,"url":"https://github.com/djeedai/bevy_bootloader","last_synced_at":"2026-04-27T22:31:41.212Z","repository":{"id":77370476,"uuid":"472935678","full_name":"djeedai/bevy_bootloader","owner":"djeedai","description":"App startup and resource management plugin for the Bevy game engine.","archived":false,"fork":false,"pushed_at":"2022-03-22T20:59:19.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T00:41:42.135Z","etag":null,"topics":["bevy","bevy-plugin","boot","resource-management","rust","utility"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djeedai.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-22T20:59:00.000Z","updated_at":"2025-01-22T04:47:38.000Z","dependencies_parsed_at":"2023-03-12T00:43:46.477Z","dependency_job_id":null,"html_url":"https://github.com/djeedai/bevy_bootloader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/djeedai/bevy_bootloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djeedai%2Fbevy_bootloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djeedai%2Fbevy_bootloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djeedai%2Fbevy_bootloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djeedai%2Fbevy_bootloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djeedai","download_url":"https://codeload.github.com/djeedai/bevy_bootloader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djeedai%2Fbevy_bootloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32358509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bevy","bevy-plugin","boot","resource-management","rust","utility"],"created_at":"2024-10-08T07:40:52.723Z","updated_at":"2026-04-27T22:31:41.199Z","avatar_url":"https://github.com/djeedai.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚥 Bevy Bootloader\n\n[![License: MIT/Apache](https://img.shields.io/badge/License-MIT%20or%20Apache2-blue.svg)](https://opensource.org/licenses/MIT)\n[![Doc](https://docs.rs/bevy_bootloader/badge.svg)](https://docs.rs/bevy_bootloader)\n[![Crate](https://img.shields.io/crates/v/bevy_bootloader.svg)](https://crates.io/crates/bevy_bootloader)\n[![Build Status](https://github.com/djeedai/bevy_bootloader/actions/workflows/ci.yaml/badge.svg)](https://github.com/djeedai/bevy_bootloader/actions/workflows/ci.yaml)\n[![Coverage Status](https://coveralls.io/repos/github/djeedai/bevy_bootloader/badge.svg?branch=main\u0026kill_cache=1)](https://coveralls.io/github/djeedai/bevy_bootloader?branch=main)\n[![Bevy tracking](https://img.shields.io/badge/Bevy%20tracking-v0.6-lightblue)](https://github.com/bevyengine/bevy/blob/main/docs/plugins_guidelines.md#main-branch-tracking)\n\nApp startup and resource management plugin for the Bevy game engine.\n\n## Usage\n\n### Dependency\n\nAdd to `Cargo.toml`:\n\n```toml\n[dependencies]\nbevy_bootloader = \"0.1\"\n```\n\n### System setup\n\nAdd the `BootloaderPlugin` to your app:\n\n```rust\nApp::default()\n    .add_plugins(DefaultPlugins)\n    .add_plugin(BootloaderPlugin)\n    .run();\n```\n\nQueue boot-time critical assets, and insert a `BootBundle`:\n\n```rust\n// Queue boot-time resources\nlet mut loader = Loader::new();\nloader.enqueue(\"logo.png\");\nloader.enqueue(\"music.ogg\");\nloader.submit();\n\n// Insert a boot bundle\ncommands.spawn_bundle(BootBundle::new(loader));\n```\n\nCheck the boot state with either of `Boot::progress()`, `Boot::smoothed_progress()`, or\n`Loader::is_done()`. For example, use `Boot::smoothed_progress()` to smoothly update a\nprogress bar made of a `Sprite`:\n\n```rust\nfn update_progress_bar(\n    boot_query: Query\u003c\u0026Boot\u003e,\n    mut sprite_query: Query\u003c(\u0026mut Transform, \u0026mut Sprite), With\u003cProgressBar\u003e\u003e,\n) {\n    if let Ok(boot) = boot_query.get_single() {\n        // Update the progress bar based on the fraction of assets already loaded, smoothed\n        // with a snappy animation to be visually pleasant without too much artifically\n        // delaying the boot sequence.\n        let smoothed_progress = boot.smoothed_progress();\n        let (mut transform, mut sprite) = sprite_query.single_mut();\n        let size = PROGRESS_BAR_SIZE * smoothed_progress;\n        // The sprite is a rect centered at the transform position, so move by half size to\n        // keep aligned to the left while width grows.\n        transform.translation.x = (size - PROGRESS_BAR_SIZE) / 2.;\n        sprite.custom_size = Some(Vec2::new(size, PROGRESS_BAR_THICKNESS));\n    }\n}\n```\n\n See [the `bootloader` example](./examples/bootloader.rs) for the full code.\n\n## Compatible Bevy versions\n\nThe `main` branch is compatible with the latest Bevy release.\n\nCompatibility of `bevy_bootloader` versions:\n\n| `bevy_bootloader` | `bevy` |\n| :--               | :--    |\n| `0.1`             | `0.6`  |\n\nDue to the fast-moving nature of Bevy and frequent breaking changes, and the limited resources to maintan 🚥 Bevy Bootloader, the `main` (unreleased) Bevy branch is not supported.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjeedai%2Fbevy_bootloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjeedai%2Fbevy_bootloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjeedai%2Fbevy_bootloader/lists"}