Protobuf Team Bot
d0395408aa
Fix outputted command for usage of update_failure_list.py
...
PiperOrigin-RevId: 654738180
4 months ago
Joshua Haberman
85c7cc24e0
Add an indirection to sub-messages pointers to allow for static tree shaking.
...
PiperOrigin-RevId: 640369522
6 months ago
Hong Shin
0645439efa
Introduce upb_EncodeStatus_String and upb_DecodeStatus_String
...
Wrapper languages can now use these helpers to get human-friendly
error codes as opposed to manually re-mapping.
PiperOrigin-RevId: 634112262
7 months ago
Hong Shin
335edb909f
update decode_fast.c to assert that non-const messages are not frozen
...
PiperOrigin-RevId: 627393634
7 months ago
Protobuf Team Bot
b8bb56df4c
Change Rust-upb to use upb_Encode and upb_Decode directly, instead of going through the upb C gencode.
...
PiperOrigin-RevId: 623474125
8 months ago
Éamonn McManus
0013736b04
Fix typo in `kUpb_EncodeOption_SkipUnkown`.
...
It is about encoding, not printing.
PiperOrigin-RevId: 622979373
8 months ago
Hong Shin
09529fe018
Update reader.c to initialize i inside loop
...
PiperOrigin-RevId: 622958098
8 months ago
Protobuf Team Bot
d5a435fb4b
Rename 'length delimited' to 'length prefixed'
...
PiperOrigin-RevId: 621597812
8 months ago
Protobuf Team Bot
c6f6a3291e
Add Length-Delimited Encode and Decode functions to upb.
...
PiperOrigin-RevId: 621510731
8 months ago
Protobuf Team Bot
d7f032ad15
Move private definitions out of //bazel
...
This is needed to make protobuf/bazel package minimal for other proto rules.
Keep 4 public bzl files in upb/bazel. They end up under protobuf/bazel, and they are legitimately used by other repositories.
Move upb_proto_library_internal/* under bazel/private. Those are utilities used in the rules. Moving them one level deeper makes protobuf/bazel package clean for other rules.
Move build_defs.bzl and amalgamation under /upb/bazel. Those are utilities used in the build.
Move lua.BUILD and python* uner /python/dist. Those are used in the WORKSPACE dependency setup.
PiperOrigin-RevId: 621442236
8 months ago
Hong Shin
f520cf3dbf
upb:decode initialize int inside loop for upb_DecodeLongVarintReturn
...
PiperOrigin-RevId: 621284070
8 months ago
Mike Kruskal
b6032d72e3
Add basic upb cmake support.
...
libupb will always be statically linked, and currently doesn't ever install itself.
PiperOrigin-RevId: 615136389
9 months ago
Eric Salo
b0d3a787cc
upb: Simplify inline functions in mini_table/ and mem/ and wire/ and message/
...
PiperOrigin-RevId: 605413999
10 months ago
Eric Salo
f212cc23d7
upb: use upb_MessageValue in upb_Extension
...
PiperOrigin-RevId: 602785269
10 months ago
Eric Salo
98843d15ac
upb: attempt to reduce the direct use of UPB_PRIVATE() fields
...
PiperOrigin-RevId: 602270576
10 months ago
Eric Salo
7b6a845ab7
upb: implement immutability
...
PiperOrigin-RevId: 601848001
10 months ago
Eric Salo
5bded04d28
upb: add 'static' to UPB_FORCEINLINE()
...
PiperOrigin-RevId: 601525709
10 months ago
Eric Salo
9d625a1df7
upb: fix the map encoder to stop dying under ubsan
...
PiperOrigin-RevId: 601004095
10 months ago
Eric Salo
07f784a2f3
upb: tag _upb_Message_GetOrCreateExtension() as UPB_PRIVATE()
...
PiperOrigin-RevId: 600653849
10 months ago
Eric Salo
7c5ff29979
upb: add upb_MiniTableExtension_CType()
...
PiperOrigin-RevId: 599313198
10 months ago
Eric Salo
72275ded70
upb: move upb_Message definition back into upb/message/
...
PiperOrigin-RevId: 598741329
11 months ago
Eric Salo
5c5f092606
upb: implement upb_Message
...
PiperOrigin-RevId: 597662892
11 months ago
Eric Salo
c7f44a02eb
upb: finish locking down the upb_Array internals
...
PiperOrigin-RevId: 597629658
11 months ago
Protobuf Team Bot
d4dfb9c4a6
Add kUpb_DecodeOption_AlwaysValidateUtf8 decode option, to force UTF-8 validation of proto2 strings.
...
PiperOrigin-RevId: 597341799
11 months ago
Eric Salo
bdf24b2e0d
upb: add 'static' to some wire decoder functions
...
PiperOrigin-RevId: 596390524
11 months ago
Eric Salo
9debd6b10a
upb: merge upb:message_accessors into upb:message
...
PiperOrigin-RevId: 595137531
11 months ago
Eric Salo
4ba7d27201
upb: implement _upb_Message_ClearOneofCase()
...
PiperOrigin-RevId: 595018281
11 months ago
Eric Salo
4f1eba857a
upb: lock down the internal headers for upb:wire_reader
...
PiperOrigin-RevId: 595002227
11 months ago
Eric Salo
64dbf0dba4
upb: delete the aliases for upb:hash, upb:lex, upb:reflection_internal
...
PiperOrigin-RevId: 594992691
11 months ago
Eric Salo
f0cf0b653c
upb: clean up and consolidate the upb/message/ build targets
...
PiperOrigin-RevId: 594514934
11 months ago
Eric Salo
1fc0e72416
upb: make :wire internal headers private
...
PiperOrigin-RevId: 594337191
11 months ago
Adam Cozzette
4ec9170bcd
Fix layering check for usage of gtest
...
To satisfy the layering check, we need to depend on :gtest for the headers, in
addition to :gtest_main which provides the main() function.
There are a bunch of formatting changes as a side effect of this, but they
should be harmless.
PiperOrigin-RevId: 594318263
11 months ago
Eric Salo
090c3adbf2
upb: start consolidating the upb/message/ build targets
...
PiperOrigin-RevId: 594074354
11 months ago
Eric Salo
e397296217
upb: restore the mini_table:internal target
...
PiperOrigin-RevId: 593870914
11 months ago
Joshua Haberman
ca58c35e24
Added `explicit` to a single-arg constructor to fix a ClangTidy warning.
...
This is the only remaining ClangTidy warning in this directory.
PiperOrigin-RevId: 593867029
11 months ago
Eric Salo
3c3d77158f
upb: add :test_srcs targets for cmake on GH
...
PiperOrigin-RevId: 593854176
11 months ago
Eric Salo
f50ea84d19
upb: the triumphant return of upb/mem:internal
...
PiperOrigin-RevId: 593835739
11 months ago
Eric Salo
2fb0b93d9d
upb: tighten up and lock down upb/wire/
...
PiperOrigin-RevId: 593821827
11 months ago
Eric Salo
b997cb6d8d
upb: add a non-void typedef for upb_Message
...
PiperOrigin-RevId: 592863926
11 months ago
Eric Salo
de7f589d44
upb: eliminate :mini_table_internal
...
PiperOrigin-RevId: 592392732
11 months ago
Eric Salo
e3ed59102c
upb: replumb upb_Arena to be substantially more opaque
...
PiperOrigin-RevId: 592345066
11 months ago
Eric Salo
121896da15
upb: add upb_Message_ExtensionByIndex()
...
PiperOrigin-RevId: 592091162
11 months ago
Eric Salo
1f67b8dfe1
upb: tag upb_MiniTableField:offset as UPB_ONLYBITS()
...
PiperOrigin-RevId: 592081461
11 months ago
Eric Salo
5b7bafc60e
upb: upb_Message_Extension -> upb_Extension
...
PiperOrigin-RevId: 592075816
11 months ago
Eric Salo
a4a98bdcc0
upb: tag upb_Array.size as UPB_ONLYBITS()
...
PiperOrigin-RevId: 592035282
11 months ago
Protobuf Team Bot
9c7d2b9d83
Make the utf8_range implementation just in C
...
PiperOrigin-RevId: 590961088
12 months ago
Eric Salo
e1d3008eaf
upb: tighten up the upb_Arena code
...
PiperOrigin-RevId: 590419408
12 months ago
Eric Salo
0c3e116c25
upb: tag _upb_Message_AddUnknown() as UPB_PRIVATE()
...
PiperOrigin-RevId: 590013675
12 months ago
Eric Salo
0755621dd2
Automated rollback of commit 3c75c331d3
.
...
PiperOrigin-RevId: 588239901
12 months ago
Eric Salo
3c75c331d3
upb: inline upb_Message_New()
...
PiperOrigin-RevId: 588189563
12 months ago