chore: refactor write functions, improve CI, MSRV #116
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NOTES:
typed-builder0.23.2 requiring newer Rust, and had to be bumped to 1.88AI:
This pull request introduces several improvements and refactorings across CI configuration, the build system, and the code generation logic. The most significant changes are a major overhaul of the GitHub Actions CI workflow for better modularity and coverage, enhancements to the
justfilebuild automation, and a consistent refactoring of code generation functions to use mutable references for writers. Additionally, a new configuration file for release automation is added, and a minor license list update is made.CI/CD and Build System Improvements:
.github/workflows/ci.ymlworkflow is completely restructured: jobs are modularized intotest,test-msrv,coverage, andrelease-plz, with improved caching, MSRV (Minimum Supported Rust Version) checks, and automated publishing/PR creation for releases. The workflow now usesjustfor build orchestration and adds a job to ensure embedded target builds.justfileis enhanced: a newbuild-thumbv7em-none-eabihfrecipe is added for embedded builds, and the mainci-testandci-test-msrvrecipes now invoke this target. A helper for conditional Rust target installation is introduced, and the code generation snapshot recipe is improved to clear old snapshots before regenerating. [1] [2] [3] [4]Code Generation Refactoring:
src/lib.rsare refactored to accept&mut impl Writeinstead of taking ownership of the writer, ensuring consistency and efficiency. Associated call sites and adapter usages are updated accordingly. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]Release Automation:
release-plz.tomlfile is added to configure release automation, enabling workspace dependency updates and standardized git tag naming.Other Minor Changes:
deny.tomlis updated to removeUnicode-DFS-2016.These changes collectively improve the project's maintainability, CI reliability, and code generation consistency.