{"id":16005901,"url":"https://github.com/laundmo/simple_bevy_template","last_synced_at":"2025-10-25T06:30:59.986Z","repository":{"id":215348470,"uuid":"738713084","full_name":"laundmo/simple_bevy_template","owner":"laundmo","description":"cargo-generate template for a very simple bevy project. No conditionals, fast compiles active, only bevy.","archived":false,"fork":false,"pushed_at":"2025-01-05T21:45:38.000Z","size":16,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T22:58:18.648Z","etag":null,"topics":["bevy","bevy-engine","cargo-generate","template"],"latest_commit_sha":null,"homepage":"","language":"Liquid","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/laundmo.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-01-03T21:48:30.000Z","updated_at":"2025-02-04T14:33:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"2429d85f-03cf-4cd4-a230-5d9ecf7d5cfb","html_url":"https://github.com/laundmo/simple_bevy_template","commit_stats":null,"previous_names":["laundmo/simple_bevy_template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laundmo%2Fsimple_bevy_template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laundmo%2Fsimple_bevy_template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laundmo%2Fsimple_bevy_template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laundmo%2Fsimple_bevy_template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laundmo","download_url":"https://codeload.github.com/laundmo/simple_bevy_template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238093093,"owners_count":19415166,"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","bevy-engine","cargo-generate","template"],"created_at":"2024-10-08T11:22:20.957Z","updated_at":"2025-10-25T06:30:59.969Z","avatar_url":"https://github.com/laundmo.png","language":"Liquid","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic Bevy template\nBasic Bevy project template to get started quickly.\n\nUse this template with:\n```bash\ncargo generate laundmo/simple_bevy_template --allow-commands\n```\n\nFast-compile config, optional during setup:\n  - Mold (when on linux)\n  - Nightly Rust (generics sharing)\n    - Cranelift\n    - Parallel frontend\n\nOther useful files included: \n- Bacon config for running on save\n- KDE Window Rule for always on top without focus stealing\n  - Import .kwinrule in the KDE \"Window Rules\" settings\n  - Move window and detect properties, then click on checkmark for position and size to adjust to your screen layout\n\nRe-compile time for small changes (string content):\n| time  | options | OS/Kernel      | CPU         | RAM                       | Disk                 |\n| ----- | ------- | -------------- | ----------- | ------------------------- | -------------------- |\n| 0.53s | All     | 6.14.3-arch1-1 | Ryzen 5800X | 2x16GB CL16 DDR4 3200MT/s | Samsung 980 PRO NVMe |\n\n\n## Global cargo config / expert mode\nOr: What is meant by \"Skip generating cargo/toolchain config? (expert only)\"?\n\nI added that question for primarily myself, since i configure cargo with most of these options globally.\n\nThe downside of doing that is that it will cause cargo to complain about unstable options when trying to compile a project with the stable toolchain. This can be worked around by wrapping `cargo` in a shell function which runs with an extra config based on some conditions. \n\nThis is in my `.zshrc` - it defaults to nightly with fastcompiles config unless the local a `rust-toolchain.toml` (relative to call) specifies `stable`. You might want to adjust this, its supposed to serve as an example more than a finished solution.\n```sh\nfunction cargo() {\n    if [[ -f \"rust-toolchain.toml\" ]]; then\n        local channel=$(awk '/^channel =/ {print $3}' rust-toolchain.toml)\n        \n        # Don't pass extra config for stable\n        if [[ $channel == *\"stable\"* ]]; then\n            echo Running cargo with stable config\n            command cargo \"$@\"\n            return\n        fi\n    fi\n    \n    # Default behavior\n    echo Running cargo with fastcompiles config\n    command cargo --config ~/.cargo/config-fastcompiles.toml \"$@\"\n    return\n}\ncompdef _cargo cargo\n```\n\nThis is my `~/.cargo/config-fastcompiles.toml` - it matches pretty closely what is generated by this template, with the exception of setting `opt-level` in it instead of in `Cargo.toml` and configuring a global target dir so projects can share cache.\n```toml\n[target.x86_64-unknown-linux-gnu]\nlinker = \"clang\"\nrustflags = [\n  \"-Clink-arg=-fuse-ld=/usr/bin/mold\",\n\n  # Nightly\n  \"-Zshare-generics=y\",\n  \"-Zthreads=0\",\n]\n\n[unstable]\ncodegen-backend = true\n\n[profile.dev]\ncodegen-backend = \"cranelift\"\nopt-level = 3\n\n[profile.dev.package.\"*\"]\ncodegen-backend = \"llvm\"\nopt-level = 3\n\n[build]\ntarget-dir = \"/home/a/rust-projects/GLOBAL_TARGET_DIR/\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaundmo%2Fsimple_bevy_template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaundmo%2Fsimple_bevy_template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaundmo%2Fsimple_bevy_template/lists"}