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

[New Build System] Proposal for a new build system #107

Open
SergioRibera opened this issue Oct 24, 2024 · 0 comments
Open

[New Build System] Proposal for a new build system #107

SergioRibera opened this issue Oct 24, 2024 · 0 comments
Labels
cli This issue is related to the CLI core This issue is related to the core functionality tests This issue is related to the tests

Comments

@SergioRibera
Copy link
Contributor

SergioRibera commented Oct 24, 2024

Current Context

The current Rust-based web services generator works through a CLI that executes commands for the build and the generation of a manifest according to the Solana Blinks standard. Services and endpoints are structured as libraries, and for each build, a new main.rs file is generated, copying all source code to a temporary folder. Although this system has been functional, it has important limitations, such as the need to copy all the source code for each build, resulting in heavy processes and loss of optimization, such as the cache of the target/ folder.

New Proposal

The proposal is to optimize the build system and generation of projects taking advantage of the generation macros that we currently have going from generating a library to generate a binary with a main function, this proposal allows us to preserve much of the infrastructure and allowing easily add the generation of the main function and what is required for each deployment system, in addition to making the deployment systems much more optimal and extensible, currently there is a conceptual test implementation that should be improved, can be reviewed in this file, for this the following tentative tasks are proposed with the possibility of adding more if it is seen convenient

Important

All changes should PR to the runtime branch and you can check the differences here

@SergioRibera SergioRibera added cli This issue is related to the CLI core This issue is related to the core functionality tests This issue is related to the tests labels Oct 24, 2024
@SergioRibera SergioRibera added this to the New Build System milestone Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli This issue is related to the CLI core This issue is related to the core functionality tests This issue is related to the tests
Projects
None yet
Development

No branches or pull requests

1 participant