{"id":15684089,"url":"https://github.com/timjentzsch/cargo-bavy","last_synced_at":"2025-03-11T06:30:31.031Z","repository":{"id":56852837,"uuid":"525510162","full_name":"TimJentzsch/cargo-bavy","owner":"TimJentzsch","description":"A third-party CLI utility for the Bevy game engine.","archived":false,"fork":false,"pushed_at":"2023-01-26T17:44:57.000Z","size":103,"stargazers_count":10,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-18T00:10:09.377Z","etag":null,"topics":["bevy","cli"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimJentzsch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-16T19:07:32.000Z","updated_at":"2024-01-12T01:36:13.000Z","dependencies_parsed_at":"2023-02-14T20:15:56.504Z","dependency_job_id":null,"html_url":"https://github.com/TimJentzsch/cargo-bavy","commit_stats":null,"previous_names":["timjentzsch/cargo-bevy-mod"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimJentzsch%2Fcargo-bavy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimJentzsch%2Fcargo-bavy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimJentzsch%2Fcargo-bavy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimJentzsch%2Fcargo-bavy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimJentzsch","download_url":"https://codeload.github.com/TimJentzsch/cargo-bavy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219870511,"owners_count":16555151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","cli"],"created_at":"2024-10-03T17:11:03.323Z","updated_at":"2025-03-11T06:30:31.019Z","avatar_url":"https://github.com/TimJentzsch.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cargo-bavy [![Crates.io](https://img.shields.io/crates/v/cargo-bavy.svg)](https://crates.io/crates/cargo-bavy) [![license: MIT/Apache-2.0](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](https://github.com/TimJentzsch/cargo-bavy/#license)\n\n\u003e [!WARNING]\n\u003e\n\u003e **DEPRECATED**: Use the [bevy_cli](https://github.com/TheBevyFlock/bevy_cli) instead.\n\nA third-party command-line utility for the [Bevy game engine](https://bevyengine.org/).\n\nTo not steal the `cargo bevy` command from the official Bevy maintainers, I chose `cargo bavy` instead.\n\n## Installation\n\n```cli\ncargo install cargo-bavy\n```\n\n## Usage\n\n### Creating a new Bevy app\n\nRun the following command:\n\n```cli\ncargo bavy new \u003cFOLDER_NAME\u003e\n```\n\nYou can then select all the features that you want.\nAfterwards, a template project with the given name is created for you.\n\n### Running your game\n\nRun the following command:\n\n```cli\ncargo bavy run\n```\n\nThis works similar to `cargo run`, but automatically passes the `--features bevy/dynamic` flag to get faster compile times.\n\nIt also provides a `--wasm`/`-w` flag, which allows you to quickly **test your game for the web**.\nIt will automatically compile your game for `wasm32-unknown-unknown`, bundle it with `wasm-bindgen-cli` and then serve it on a local webserver to be playable in your browser.\nAll necessary tools will be installed for you if needed.\n\n### Building your game\n\nRun the following command:\n\n```cli\ncargo bavy build\n```\n\nThis works similar to `cargo build`, but automatically passes the `--features bevy/dynamic` flag to get faster compile times.\n\nIt also provides a `--wasm`/`-w` flag, which allows you to create a bundle for the web.\nIt will automatically compile your game for `wasm32-unknown-unknown` and bundle it with `wasm-bindgen-cli`.\nAll necessary tools will be installed for you if needed.\n\n### Check your code\n\nRun the following command:\n\n```cli\ncargo bavy check\n```\n\nThis works similar to `cargo check`, but automatically passes the `--features bevy/dynamic` flag to get faster compile times.\n\nIt also provides a `--wasm`/`-w` flag, which allows you to check for the WASM target.\n\n### Notes for usage with Rust Analyzer\n\nIf you are using `cargo bavy` with Rust Analyzer, you should configure it to use the `--features bevy/dynamic` flag in your project.\nOtherwise, its checks might interfere with your `cargo bavy run` usage, leading to many non-incremental re-compiles.\n\nCreate a `.vscode/settings.json` file in your project with the following content:\n\n```json\n{\n  \"rust-analyzer.cargo.features\": [\"bevy/dynamic\"]\n}\n```\n\nThis way, Rust Analyzer uses the same features as you.\n\n## License\n\nThe source code of this repository is dual-licensed under either:\n\n- MIT License ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n\nat your option.\n\n## Your contributions\n\nUnless 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimjentzsch%2Fcargo-bavy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimjentzsch%2Fcargo-bavy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimjentzsch%2Fcargo-bavy/lists"}