anagrambuild / bonsol

solana + risc0
https://bonsol.sh
GNU Affero General Public License v3.0
60 stars 9 forks source link

Generate FlatBuffers code at Build Time #83

Closed jac18281828 closed 1 month ago

jac18281828 commented 1 month ago

Change Flatbuffers Code Generation to Build-Time Generation via Cargo

User Story

As a developer, I want changes to the Flatbuffers generated code to be immediately reflected in the code at build time.

Description

Currently, the Flatbuffers-generated code is committed directly to the repository. This approach requires manual updates to these files whenever there is a schema change, increasing the risk of stale code and unnecessary merges. By dynamically generating this code during the build process, we can ensure that the code is always up-to-date without needing to commit generated files to version control.

Acceptance Criteria

Additional Context

Switching to build-time generation will:

Notes

Related Issues

References