Sandy Zhang
b660646cc2
internal change
...
PiperOrigin-RevId: 595509922
11 months ago
Protobuf Team Bot
f4ff5018df
Add manual epilogue for vectorized loop, and use the SIMD loop for 64 bit ints when AVX2 is available.
...
PiperOrigin-RevId: 595487765
11 months ago
Joshua Haberman
5cfc9e775d
Breaking Change: Dropped support for Ruby DSL, [as previously announced]( https://engdoc.corp.google.com/eng/doc/devguide/proto/news/2023-12-27.md#ruby-breaking-changes ).
...
The generated code has not used the DSL since 23.0 (released May 8, 2023).
PiperOrigin-RevId: 595481605
11 months ago
Protobuf Team Bot
f00fc70bde
Auto-generate files after cl/595467581
11 months ago
Protobuf Team Bot
3869318558
Add inner verification code to detect accessors missing required annotations.
...
This change has no behavior change, other than CHECK-fail `protoc` when a bug is detected instead of generating the buggy code.
PiperOrigin-RevId: 595467581
11 months ago
Mike Kruskal
807f00b4db
Fix typo in cache-clearing workflow
...
PiperOrigin-RevId: 595424484
11 months ago
Protobuf Team Bot
2bf62b1873
Internal Code Change
...
PiperOrigin-RevId: 595410785
11 months ago
Protobuf Team Bot
670e0c2a0d
Fix begin iterator for empty arrays.
...
If the underlying array for a repeated field is a nullptr (which is possible for const array access on a message field that hasn't been set) the begin iterator will currently contain garbage data, which can lead to an illegal access. This CL adds a nullptr check to `begin()`, similar to what already exists for `size()`.
PiperOrigin-RevId: 595217999
11 months ago
Eric Salo
df57e5474b
upb: fix Ruby bug which allowed map.delete(key) on a frozen map
...
Also clean up some compiler warnings about exiting from non-void functions without returning a value.
PiperOrigin-RevId: 595185251
11 months ago
Protobuf Team Bot
255f95e5b1
Include JSON output tests with Proto2 messages in the conformance test suite.
...
PiperOrigin-RevId: 595173790
11 months ago
Kevin King
8876b1069f
impl SettableValue for MsgView
...
For the cpp runtime, call the `Message::CopyFrom` method.
For the upb runtime, expose the message `MiniTable` and call `upb_Message_DeepCopy`.
PiperOrigin-RevId: 595166276
11 months ago
Protobuf Team Bot
569548cd82
Make Rust Conformance skip non-wire output test cases by using an overlay proto.
...
PiperOrigin-RevId: 595152672
11 months ago
Protobuf Team Bot
84f8e4fbbc
Auto-generate files after cl/595144470
11 months ago
Kevin King
fa5f8fa7e8
Depend on upb_generator:mangle from rust compiler
...
Update cmake to include necessary upb_generator files and upb namespace.
PiperOrigin-RevId: 595144470
11 months ago
Protobuf Team Bot
3d9916caca
Auto-generate files after cl/595137531
11 months ago
Eric Salo
9debd6b10a
upb: merge upb:message_accessors into upb:message
...
PiperOrigin-RevId: 595137531
11 months ago
Protobuf Team Bot
18d4a7651b
Auto-generate files after cl/595018281
11 months ago
Eric Salo
4ba7d27201
upb: implement _upb_Message_ClearOneofCase()
...
PiperOrigin-RevId: 595018281
11 months ago
Protobuf Team Bot
de5ea1e6a4
Auto-generate files after cl/595002227
11 months ago
Eric Salo
4f1eba857a
upb: lock down the internal headers for upb:wire_reader
...
PiperOrigin-RevId: 595002227
11 months ago
Protobuf Team Bot
cb8a31ee3d
Auto-generate files after cl/594992691
11 months ago
Eric Salo
64dbf0dba4
upb: delete the aliases for upb:hash, upb:lex, upb:reflection_internal
...
PiperOrigin-RevId: 594992691
11 months ago
Protobuf Team Bot
2b79738d5f
Auto-generate files after cl/594654099
11 months ago
Eric Salo
f1b8f477d7
upb: factor out message internal data pointers
...
PiperOrigin-RevId: 594654099
11 months ago
Protobuf Team Bot
499c748e39
Auto-generate files after cl/594514934
11 months ago
Eric Salo
f0cf0b653c
upb: clean up and consolidate the upb/message/ build targets
...
PiperOrigin-RevId: 594514934
11 months ago
Protobuf Team Bot
6e25bb8d4c
Optimize AddAllocatedForParse function.
...
PiperOrigin-RevId: 594422850
11 months ago
Protobuf Team Bot
61b82528ba
Auto-generate files after cl/594337191
11 months ago
Eric Salo
1fc0e72416
upb: make :wire internal headers private
...
PiperOrigin-RevId: 594337191
11 months ago
Protobuf Team Bot
1597bf4971
Auto-generate files after cl/594322509
11 months ago
Joshua Haberman
c16ac66e85
Fixed non-conformance in upb JSON enum decoding when ignoring unknown enum values.
...
PiperOrigin-RevId: 594322509
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
Protobuf Team Bot
79cc57bf57
Auto-generate files after cl/594312823
11 months ago
Protobuf Team Bot
a83da510c4
Automated rollback of commit 0bcc8ef9f2
.
...
PiperOrigin-RevId: 594312823
11 months ago
Hong Shin
4c35408777
Rename Thunk to ThunkName
...
Let's hint at returning a name as opposed to a computed chunk / lambda
PiperOrigin-RevId: 594300381
11 months ago
Joshua Haberman
37a926e177
Added JSON parsing/serialization to benchmark
...
PiperOrigin-RevId: 594293336
11 months ago
Protobuf Team Bot
27cccac563
Fix some non-breaking issues with rust gencode.
...
- Stop emitting a clear thunk for without-presence string/bytes fields (was unused, but would link-error it was used since there's no such operation).
- Remove unused clearer_thunk variable in message.cc
- Remove unsafe{} block surrounding non-unsafe BytesMutVTable::new
- Add #[allow(non_snake_case)] on module names (the new mangling added in cr/593048297 puts double-underscore in names which rustc recognizes as non-snake).
PiperOrigin-RevId: 594287606
11 months ago
Hong Shin
50f0140780
Fix textfmt typo: vaid -> valid
...
PiperOrigin-RevId: 594286947
11 months ago
Protobuf Team Bot
c2c01b6166
Auto-generate files after cl/594280505
11 months ago
Eric Salo
0eac807f3b
upb: delete the aliases for base:internal and mini_descriptor:internal
...
PiperOrigin-RevId: 594280505
11 months ago
Dmitri Gribenko
b82bb29340
Internal Code Change
...
PiperOrigin-RevId: 594266511
11 months ago
Protobuf Team Bot
e0b3610e7f
Auto-generate files after cl/594261739
11 months ago
Protobuf Team Bot
0bcc8ef9f2
Removed the unused "JSPB (internal)" from conformance the conformance test suite.
...
PiperOrigin-RevId: 594261739
11 months ago
Protobuf Team Bot
0b237199c5
Hook up the edition2023 cases to Rust conformance test.
...
PiperOrigin-RevId: 594235463
11 months ago
Joshua Haberman
442e079677
Removed Ruby compatibility tests.
...
In Ruby protobuf 4.26.0 we are intentionally breaking compatibility with our generated code from Protobuf 3.0.0. So these tests are now obsolete.
PiperOrigin-RevId: 594157323
11 months ago
Protobuf Team Bot
e9ea4a5154
Auto-generate files after cl/594135760
11 months ago
Eric Salo
7e1fd68667
upb: clean up some of the includes in upb/message/
...
PiperOrigin-RevId: 594135760
11 months ago
Sandy Zhang
0317875286
Update Ruby GHA to test against Ruby 3.3 in Linux / MacOS / Install and FFI combinations.
...
PiperOrigin-RevId: 594132729
11 months ago
Jie Luo
4f77929203
BREAKING CHANGE in v26: check if Timestamp is valid.
...
Seconds should be in range [-62135596800, 253402300799]
Nanos should be in range [0, 999999999]
PiperOrigin-RevId: 594119545
11 months ago
Joshua Haberman
75455eae6c
Fixed compiler warnings in the Ruby C extension.
...
PiperOrigin-RevId: 594106078
11 months ago