dep-protobuf/rust/cpp_kernel
Joshua Haberman f54e9a1eaf Refactor: Move interop traits to kernel-specific modules.
This change moves the `OwnedMessageInterop`, `MessageViewInterop`, and `MessageMutInterop` traits from `codegen_traits.rs` into new `interop.rs` files within both the `cpp_kernel` and `upb_kernel` directories.

The `KernelMessage`, `KernelMessageView`, and `KernelMessageMut` traits in each kernel's `message.rs` are updated to include the respective kernel-specific interop traits. This ensures that the interop functionality is tied to the specific kernel implementation.

The `shared.rs` module now re-exports the interop traits from `crate::__internal::runtime::interop`, which will resolve to the correct kernel's interop module.

It would be possible to take this farther by making the interop traits return strongly typed pointers to `upb_Message*` and `proto2::MessageLite*` instead of `c_void`, but that would be a breaking change.

PiperOrigin-RevId: 892470084
2026-03-31 12:04:34 -07:00
..
compare.cc Suppress failure to consume parse/serialize return values. 2025-12-05 08:01:34 -08:00
compare.h Set up for Rust-cpp Protobuf implementation message matcher. 2024-08-01 07:52:17 -07:00
debug.cc Enable MessageLite::DebugString to use Message::DebugString where possible. 2024-07-03 09:37:37 -07:00
debug.h Enable MessageLite::DebugString to use Message::DebugString where possible. 2024-07-03 09:37:37 -07:00
interop.rs Refactor: Move interop traits to kernel-specific modules. 2026-03-31 12:04:34 -07:00
map.cc Refactor: Split upb and cpp backends into submodules 2026-03-20 11:13:43 -07:00
map.rs Refactor: Split upb and cpp backends into submodules 2026-03-20 11:13:43 -07:00
message.cc Automated Code Change 2025-10-30 02:55:48 -07:00
message.rs Refactor: Move interop traits to kernel-specific modules. 2026-03-31 12:04:34 -07:00
mod.rs Refactor: Move interop traits to kernel-specific modules. 2026-03-31 12:04:34 -07:00
raw.rs Refactor: Split upb and cpp backends into submodules 2026-03-20 11:13:43 -07:00
repeated.cc Pass down Arena* to RepeatedPtrFieldBase::AddInternal. 2025-09-15 17:27:17 -07:00
repeated.rs Added appropriate super-traits to Enum. 2026-03-23 14:40:03 -07:00
rust_alloc_for_cpp_api.h Change to proto2_rust C prefix and proto2::rust C++ namespace 2024-07-02 11:44:17 -07:00
rust_alloc_for_cpp_api.rs Start testing against Rust edition 2024 2025-10-07 09:21:51 -07:00
serialized_data.h Make SerializedData into a POD struct. 2024-09-18 14:17:14 -07:00
string.rs Refactor: Split upb and cpp backends into submodules 2026-03-20 11:13:43 -07:00
strings.cc Make conversion functions for into c++ string types from PtrAndLen. 2024-12-10 11:15:00 -08:00
strings.h Make conversion functions for into c++ string types from PtrAndLen. 2024-12-10 11:15:00 -08:00