Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to set up fast compiles configuration #213

Open
TimJentzsch opened this issue Jan 5, 2025 · 3 comments
Open

Add command to set up fast compiles configuration #213

TimJentzsch opened this issue Jan 5, 2025 · 3 comments
Labels
A-CI Related to CI and GitHub Actions C-Feature Make something new possible D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Ready-for-Implementation This issue is ready for an implementation PR. Go for it!

Comments

@TimJentzsch
Copy link
Collaborator

Add a new command (e.g. bevy fast-compiles) to guide the user through the process of improving compile times.

It should be interactive, asking the user about their preferences.
At the end, the user should be asked if the configuration should be saved locally and applied to all projects (in ~/.cargo/config.toml) or saved in the repository.

At the start, the CLI should ask if the user wants to use nightly rust and then only provide the nightly only options if the user agrees.

Some things we can set up:

  • Faster linker (e.g. mold or lld)
  • Cranelift backend
  • Dynamic linking
@TimJentzsch TimJentzsch added A-CI Related to CI and GitHub Actions C-Feature Make something new possible D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes labels Jan 5, 2025
@TimJentzsch
Copy link
Collaborator Author

TimJentzsch commented Jan 5, 2025

Prior work e.g. this template: https://github.com/laundmo/simple_bevy_template/blob/main/init-script.rhai

But it doesnt have a license yet it does now

@BD103
Copy link
Member

BD103 commented Jan 5, 2025

Could we make this more general? Such as a bevy setup command that can do more than just fast compilation?

@TimJentzsch
Copy link
Collaborator Author

Could we make this more general? Such as a bevy setup command that can do more than just fast compilation?

Sure, works for me!

@TimJentzsch TimJentzsch added the S-Ready-for-Implementation This issue is ready for an implementation PR. Go for it! label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI Related to CI and GitHub Actions C-Feature Make something new possible D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Ready-for-Implementation This issue is ready for an implementation PR. Go for it!
Projects
None yet
Development

No branches or pull requests

2 participants