You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Fix the current number of dependencies, there are now too many dependencies
Important
All changes should PR to the runtime branch and you can check the differences here
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: