Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📋 Overview
This PR updates deprecated and outdated dependencies to their modern equivalents. The main driver was migrating away from
serde_yaml(deprecated) and updating to the latest tonic ecosystem packages. As a side effect, the API was simplified by removing redundant parameters.What Changed
🏗️ API Changes (Required by Dependency Updates)
Before (0.13):
After (0.14):
Dependencies Migration
tonic-buildtotonic-prost-build0.14 - Following the tonic ecosystem's evolutionserde_yamlwithserde_yaml_ng- The original serde_yaml is no longer maintaineduuidfrom 1.10 to 1.17 - Latest stable version with security improvementstonicto 0.14 - Latest version withtls-webpki-rootsfeatureExamples
Added 4 comprehensive examples showing different use cases:
buf-yaml- Basic usage with buf.yamlbuf-work-yaml- Buf workspace supportbuf-yaml-advanced- Advanced configuration with file descriptors and mock serverbuf-yaml-custom-dir- Custom directory usage (monorepo scenarios)API Functions Added
compile_from_buf()- Simplified basic usagecompile_from_buf_workspace()- Simplified workspace usagecompile_from_buf_with_builder_config()- Advanced configuration via closurecompile_from_buf_with_config()- Custom directory supportcompile_from_buf_workspace_with_config()- Workspace + custom directorycompile_from_buf_with_builder_and_buf_config()- Full configuration controlDocumentation
MIGRATION_0.13-0.14.md) with clear before/after examplesWhy These Changes?
1. Critical Dependency Updates
serde_yamlis officially deprecated and no longer receives security updatesuuidwas several versions behind (1.10 vs 1.17)tonicecosystem moved to 0.14 with important security fixes2. Forced API Changes
tonic-buildtotonic-prost-buildrequired function signature changes