refactor: extract embedded static assets#1084
Conversation
✅ Deploy Preview for acton-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Why is this necessary, and what problem does it solve? |
This is not required for runtime behavior; it is a maintainability refactor. These strings are production assets, but they were embedded as very large Rust literals. That makes the Rust modules harder to read, makes diffs noisy, and makes editing/reviewing the actual asset content awkward. Moving them into files keeps the code focused on behavior while letting the assets live in their native formats: HTML as HTML, licenses as text files, base templates as template files, and the default config as a BOC64 asset. The binary behavior stays the same because the files are still embedded at compile time with |
This refactors large embedded production string literals into static files loaded with include_str!.