393 Commits (aea6dfc49585698c46a33d0037e51d956ba34766)

Author SHA1 Message Date
Derek Benson f87523dd41 fix the crate name being used by the gencode library. 4 months ago
Yamil Morales 582e80eb8a Set up for Rust-cpp Protobuf implementation message matcher. 4 months ago
Derek Benson 9d628f8024 Create an initial version of protobuf-codegen. This exposes an initial working version of codegen for use with cargo. 4 months ago
Adam Cozzette 6ab302d3a3 Rust: cut down on the amount of generated C++ code needed for maps 4 months ago
Protobuf Team Bot 76c767fa1c Add traits for interop fns. 4 months ago
Derek Benson 9cceb6278d Fix broken github_only comment in cargo build rule 4 months ago
Protobuf Team Bot c7d4697481 Add an protobuf::__internal::SealedInternal trait 4 months ago
Protobuf Team Bot 7ad56e7cbb Introduce an upb::AssociatedMiniTable trait in Rust. 4 months ago
Derek Benson 504a5d0311 Add pkg build rules to create a zip of the protobuf rust crate 4 months ago
Jakob Buchgraber 5854e2b6a8 Implement std::error::Error for String 4 months ago
Adam Cozzette 7141c30425 Rust: update map setters to take `IntoProxied` 4 months ago
Derek Benson 1e1bf0d1fc Move the declaration of the upb map begin constant into rust 4 months ago
Protobuf Team Bot 0fbba32b3e Add Message::Clear() and MessageMut::Clear() (behind the Clear trait) 4 months ago
Derek Benson 6f58085577 Adds an initial Cargo.toml for the protobuf crate. 4 months ago
Protobuf Team Bot a98c7f79aa Internal 4 months ago
Protobuf Team Bot 461450834b Introduce a prelude and remove the inherent impls for serialize() 4 months ago
Protobuf Team Bot c5ca2cf8fb Internal 4 months ago
Protobuf Team Bot e6304eb3a2 Add AsView + AsMut as supertraits of Proxied and MutProxied. 4 months ago
Protobuf Team Bot e618b282d4 Add AsView and AsMut implementations to owned messages. 4 months ago
Jakob Buchgraber 8cdc700b5b Implement ctype=CORD for singular string & byte fields 4 months ago
Derek Benson 41f12a239c Add missing #![deny(unsafe_op_in_unsafe_fn)] to upb/rust/lib.rs and fix violating functions 4 months ago
Protobuf Team Bot 607b4b1b6c Change rust/upb to only ever do `use super::` rather than `use crate::` 4 months ago
Protobuf Team Bot 3c95fc8b76 Create AsView/IntoView/AsMut/IntoMut traits 4 months ago
Protobuf Team Bot a1c53e4da2 Remove +?Sized bounds which simply aren't honored anyway. 4 months ago
Protobuf Team Bot 9d2dafe1e5 Add #[doc(hidden)] and a _private arg on SerializedData 4 months ago
Protobuf Team Bot 6d25846f47 Add 'specific' traits for common gencode message operations. 4 months ago
Dmitri Gribenko 0a917b95f2 Use `#[googletest::test]` in Protobuf Rust 4 months ago
Protobuf Team Bot cf948e4a81 Restructure the ViewProxy versus MutProxy trait setup. 4 months ago
Derek Benson a6a0680e95 allow __ for inferred submessage types and implement array literal parsing in proto!. 4 months ago
Protobuf Team Bot 7c5dd9ec64 Remove the second 'unset' generic argument from Optional 4 months ago
Adam Cozzette efb57278a9 Protobuf Rust: simplify the MakeCleanup() helper function 4 months ago
Adam Cozzette f712ca5d1c Rust protobuf: fix memory leaks 5 months ago
Protobuf Team Bot ea241fe5aa Add Message, MessageMut, MessageView traits. 5 months ago
Derek Benson 9c994245f2 implement repeated_new and repeated_free for enums and messages. Drop the default impl since it is now required 5 months ago
Derek Benson cee9da9469 add IntoProxied Repeated blanket impl for Iterators 5 months ago
Sandy Zhang 956ce0f3fd Add visibility for rust public aliases for '@protobuf//:protobuf_rust' 5 months ago
Protobuf Team Bot b14d9ee01f Automated Code Change 5 months ago
Protobuf Team Bot f9dd9ce66e UPB text encoder without using reflection for Rust (used for a message's Debug trait) that will print out field number to value entries instead of field name to value entries of a message like how it's expected for the usual text format using reflection. 5 months ago
Jakob Buchgraber 08da921314 Remove the defensive copy on singular string setter 5 months ago
Jakob Buchgraber 0d6e9794d1 Migrate Repeated::{push, set} and Map::insert to use the IntoProxied trait. 5 months ago
Protobuf Team Bot f810cc5b66 Enable MessageLite::DebugString to use Message::DebugString where possible. 5 months ago
Jakob Buchgraber 73db255168 Require all Proxied types to be Sized. 5 months ago
Jakob Buchgraber 64912c50cb Use a std::string as the backing string & bytes type in the C++ kernel. This will allow us to move a ProtoString/Bytes to a message accessor without copying. This change only touches the C++ kernel, as the UPB kernel already uses the native arena-allocated UPB string type for ProtoString/Bytes. 5 months ago
Protobuf Team Bot c07de7c9df Change to proto2_rust C prefix and proto2::rust C++ namespace 5 months ago
Protobuf Team Bot 5bb8c51f3f Add C++ protobuf runtime to Rust proto deps and add specific #includes in the Rust .cc codegen. 5 months ago
Protobuf Team Bot a9bc366522 Stop using double underscores for our C function names and standardize on the 'rust_proto_' prefix. 5 months ago
Derek Benson 91dfd8698a add .. operator to proto! for merge_from. This mimics Rust's struct update syntax. 5 months ago
Protobuf Team Bot 419760f873 Split up cpp_api.h/.cc into smaller units. 5 months ago
Protobuf Team Bot 219e8ead2f Add license headers 5 months ago
Derek Benson 237332ef92 Add merge_from to Msg and MsgMut codegen. Cpp Kernel uses new thunk to typed MergeFrom() and Upb Kernel uses new upb_Message_MergeFrom() function 5 months ago