Jon Skeet
c32d7ec2ab
Helper method on Any to allow an any to be unpacked more easily
...
We already have the TypeRegistry abstraction for JSON parsing, so it lends itself well to this.
Note that this is much more useful than it would have been before C# gained pattern matching support: it's easy to imagine a switch statement/expression using pattern matching with the result of this, with cases for a set of known message types, for example.
3 years ago
David L. Jones
b3cbea18ea
[Bazel] Move Python rules to //python ( #9952 )
3 years ago
deannagarcia
1978a6f723
Merge pull request #9946 from boscosiu/install-endian-h
...
Add endian.h to includes list
3 years ago
David L. Jones
d60c0d2d35
Expose generated files from proto_gen via DefaultInfo, and change to new provider syntax. ( #9951 )
...
* Switch to new provider syntax instead of structs.
* Expose files via `DefaultInfo`, and use that for `py_proto_library`.
* Several changes from buildifier.
3 years ago
David L. Jones
b64cd5ac64
Switch C++ test protos to use the normal cc_proto_library rules. ( #9950 )
3 years ago
David L. Jones
87c5475687
[Kokoro] Add dist check build for linux+cmake ( #9939 )
...
The cmake tests are expected to fail for now due to Abseil sources missing from the distribution artifact. The tests are structured as expected failures.
3 years ago
Elliotte Rusty Harold
309e24e86a
Run kotlin tests on JDK 8 *and later* ( #9949 )
...
@deannagarcia fixes #9870
3 years ago
boscosiu
f91b078abf
Add endian.h to includes list
...
Client code is breaking due to missing include. (endian.h was added in 9e09343
but didn't make it into this list, so it wasn't getting installed)
3 years ago
Joshua Haberman
b2a51f8525
Merge pull request #9621 from bshaffer/remove-class-aliases
...
feat: [PHP] remove legacy generate class file
3 years ago
Joshua Haberman
7303304585
Merge pull request #9941 from haberman/toolchain-flags
...
Updated toolchain to support optimization flags, and updated to the latest upb
3 years ago
Joshua Haberman
6018e9edef
Minor CHANGES.txt fix and pulled one more upb commit.
3 years ago
Joshua Haberman
915d439df0
Updated the release notes and the upb version.
...
Also removed the obsolete PROTOBUF_VERSION variable now that
upb is updated.
3 years ago
Joshua Haberman
14803e6f63
Optimization is now working.
3 years ago
Joshua Haberman
1f3c00eaac
Added default flags for all of the compilation modes.
3 years ago
David L. Jones
354aba886e
Add a test for bazel-built dist archives ( #9929 )
...
This also fixes some packaging rules that are needed for the result to be buildable.
3 years ago
Adam Cozzette
b180b2809f
Use __constinit only in GCC 12.2 and up ( #9936 )
...
Fixes #9916 . GCC appears to have a bug preventing our use of __constinit
from working correctly, but this bug will be fixed in GCC 12.2.
3 years ago
deannagarcia
32d99bb00a
Merge pull request #9928 from veblush/cmake-abseil
...
Added cmake abseil include guard
3 years ago
Esun Kim
b6ee841d7c
Added cmake abseil include guard
3 years ago
David L. Jones
637a699969
[Bazel] Move conformance test targets to //conformance. ( #9922 )
3 years ago
David L. Jones
52655b1f5e
[Bazel] Move C++ build-related logic into //build_defs ( #9921 )
...
These are all "toolchain-y" things, like copts, link_opts, and config_settings. These are very different from what is in //toolchain, though, so I chose the somewhat common name build_defs for the package. For now, I am only using this package for purely internal things. (Most public "defs"-type things should come from rules_proto/rules_cc, anyhow.)
3 years ago
deannagarcia
e305932431
Merge pull request #9891 from deannagarcia/osx_toolchain
...
Add macosx action environment variable
3 years ago
Adam Cozzette
4ebe8ffef4
Merge pull request #9927 from acozzette/sync-stage
...
Integrate from Piper for C++, Java, and Python
3 years ago
Joshua Haberman
d8b0884442
Merge pull request #9536 from bshaffer/patch-2
...
chore: [PHP] fix phpdoc for MapField keys
3 years ago
Adam Cozzette
f026a14caa
Merge tag 'refs/tags/sync-piper' into sync-stage
3 years ago
Adam Cozzette
48cb9d10fe
Sync from Piper @447000875
...
PROTOBUF_SYNC_PIPER
3 years ago
zhangskz
0e6ac3d789
Increment python major version in version.json for python upb ( #9926 )
3 years ago
Joshua Haberman
29d5ca825a
Merge pull request #9923 from haberman/update-upb2
...
Updated to upb for -rc1.
3 years ago
Joshua Haberman
49d6b35576
Updated to upb for -rc1.
3 years ago
David L. Jones
5ebde5bd20
[Bazel] Expand lists of protos in BUILD files ( #9915 )
...
This unrolls several lists based on WELL_KNOWN_PROTO maps, and move internal java codegen rules next to the corresponding java_library targets that expose them.
3 years ago
Adam Cozzette
152249204b
Merge pull request #9912 from acozzette/sync-stage
...
Integrate from Piper for C++, Java, and Python
3 years ago
David L. Jones
67823fe8dc
[Bazel] Fix broken build rules or mark them manual ( #9913 )
...
* Fix filename for unittest_gen_import.proto.
* Add 'manual' tags to jvm_export rules so they aren't selected by wildcard
* Run buildifier
3 years ago
Adam Cozzette
df00695437
Remove unused ShouldVerifyInt32() function
3 years ago
Adam Cozzette
a3193ed5ee
Fix spelling error
3 years ago
Adam Cozzette
f744bddb63
Sync from Piper @446575720
...
PROTOBUF_SYNC_PIPER
3 years ago
Adam Cozzette
e94aa9ff0b
Merge tag 'refs/tags/sync-piper' into sync-stage
3 years ago
David L. Jones
3c5ad8c524
Remove references to //:composer.json and JS compiler. ( #9910 )
3 years ago
Ryan VanderMeulen
a1fca10ddc
Use PROTOBUF_CONSTEXPR instead of constexpr for kRepHeaderSize. ( #9885 )
...
Fixes "no matching function for call to 'CalculateReserveSize'" compiler errors with older clang versions.
3 years ago
deannagarcia
f2a126e349
Merge pull request #9909 from deannagarcia/ktDuplicates
...
Remove duplicate java generated code
3 years ago
David L. Jones
24ec0b9ffb
Add Starlark utilities to generate files with lists of files ( #9882 )
...
This adds logic to generate files with lists of files in cmake and automake syntax. This will allow Bazel to serve as the single Source of Truth for library sources, with cmake and automake using Bazel-derived definitions.
The definition files are not yet generated or checked in, but that will be a fairly straightforward set of follow-up changes.
3 years ago
Deanna Garcia
7bd1da828b
Remove duplicate java generated code
3 years ago
Thomas Van Lenten
35e2f8cd5a
ObjC: Revise the minimal extension deps algorithm.
...
When generating, it isn't uncommon to have generate >1 file at a time, and it is
likely that one file will include another. So cache the results as the
calculation is done so the work isn't repeated.
The previous pruning method didn't have any concept of tracking already done
work, this changes the algorithm to avoid the repeated work to make things more
minimal on the way up.
Some extremely deep proto graphs, this takes the generation time from around 15
min to under 45 seconds.
3 years ago
Thomas Van Lenten
0a73ec7e88
Remove the support for the kokoro cocoapods integration tests.
3 years ago
Adam Cozzette
c03eb88a87
Merge pull request #9907 from acozzette/sync-stage
...
Integrate from Piper for C++, Java, and Python
3 years ago
mkruskal-google
d93d6cc295
Rollforward of #9852 ( #9886 )
...
* Rollback pull request #9852 , which will break clients who don't IWYU and depend on us for these STL headers
* Rolling forward https://github.com/protocolbuffers/protobuf/pull/9852 after confirming it doesn't break google internals
3 years ago
Adam Cozzette
5718cfc757
Merge tag 'refs/tags/sync-piper' into sync-stage
...
# Conflicts:
# BUILD.bazel
3 years ago
Adam Cozzette
c693ba3c87
Sync from Piper @446230931
...
PROTOBUF_SYNC_PIPER
3 years ago
Adam Cozzette
5eafa23c98
Update CHANGES.txt ( #9897 )
3 years ago
zhangskz
b37b613436
Update protobuf_version.bzl to separate protoc and per-language java major version ( #9900 )
3 years ago
Adam Cozzette
ec91c0e929
Sync from Piper @446048300
...
PROTOBUF_SYNC_PIPER
3 years ago
Adam Cozzette
cdc11c2d2d
Remove cuda.list from apt sources ( #9896 )
...
This will fix the collect_all_artifacts.sh script, which was broken
recently when NVidia stopped publishing Cuda packages for Ubuntu 16.04.
3 years ago