Patch to use protobuf - #7
Open
cjac wants to merge 3 commits into
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.
feat(protobuf): add Google::ProtocolBuffers::Dynamic compatibility API shim & bump version to 0.09
Summary
This PR introduces a compatibility layer (
Google::ProtocolBuffers::Dynamic) forProtobufbacked by the high-performanceupbC runtime, refactors downstream client code (App::EvalServerAdvanced), and hardens build targets and CPAN packaging across platforms.Key Changes
1.
Google::ProtocolBuffers::DynamicCompatibility API Layerlib/Google/ProtocolBuffers/Dynamic.pm, providing compatibility shims (load_file,load_string,map_package,encode,decode,new) so legacy codebases written forGoogle::ProtocolBuffers::Dynamiccan seamlessly run against the UPB XS backend.t/025_dynamic_compat.tvalidating package mapping, encoding, and decoding round-trips.2.
App-EvalServerAdvancedRefactoringApp::EvalServerAdvanced::Protocolto consumeGoogle::ProtocolBuffers::Dynamicover the UPB backend.share/proto/evalserver.protoand implemented dynamic relative path resolution viaFile::Specand__FILE__.3. Build System & Packaging Hardening (
Makefile.PL&makefile.tt)bin/protoc-gen-perl-pbinto standard Makefileall ::andinstalltargets viaEXE_FILES.vendorandupbobject path structures fromrealclean => { FILES => ... }inMakefile.PL, ensuringmake realcleancleans build artifacts without deleting tracked C source headers.git checkout -- vendor/) inMakefile.PLifvendor/is missing when executing in a Git workspace.libprotobufperl.mapfile dependency frominc/templates/makefile.tt.bin/protoc-gen-perl-pbfrom Git index and added to.gitignore.4. Versioning & Acknowledgments
$VERSIONto0.09across allProtobufmodules.Changesfile with release notes for0.09(in dev),0.08, and0.07.ChangesandTHANKS.mdcrediting Ryan Voots (@simcop2387) for testing, feedback, and driving compatibility requirements.Testing & Verification
prove -b -It/lib t/025_dynamic_compat.tApp-EvalServerAdvancedIntegration: Verified packet encoding and decoding round-trips.make realclean > /dev/null && cpanm .installsProtobuf-0.09cleanly.TAG=agy
CONV=90cea78f-e93a-4503-a0da-3ed22cf7f7cc