143 Commits (18da465815e609732b902d8cbc79d2d12e90686d)

Author SHA1 Message Date
Marcel Hlopko 69a26b217d Use the name of the rust_proto_library as the crate name 7 months ago
Protobuf Team Bot 2238cdc091 Add impl Clone for Rust proto owned messages. 7 months ago
Protobuf Team Bot d8329b68e4 Add .to_owned(&self)->Msg functions to MsgMut and MsgView 7 months ago
Bastien Jacot-Guillarmod 7b3682fcf2 Pin the rev of googletest to the GitHub main branch 7 months ago
Adrian Sadłocha 733b9c54e9 Implement `is_known` method on the `Enum` trait 7 months ago
Jakob Buchgraber 959903d199 Remove the now unused vtable types. In particular, 8 months ago
Jakob Buchgraber e181855abe Implement flat setters for map and repeated fields. 8 months ago
Jakob Buchgraber d76fdc56bb Implement IntoProxied for messages 8 months ago
Protobuf Team Bot 55875598f7 Add a collision-avoidance behavior to the Rust Proto codegen. 8 months ago
Derek Benson b4bd664b07 Rust: fix proto! msgtype matcher to look for :: separated idents instead of a ty to avoid syntax errors during parse 8 months ago
Marcel Hlopko 1a7ea70730 Add test coverage for UTF-8 behavior 8 months ago
Derek Benson e485d4f03d Adds an initial version of the proto! macro to simplify construction of proto messages in Rust. Currently supports all field types except Repeated and Map 8 months ago
Alyssa Haroldsen 3f493d9e52 Use the same set of exports as regular users in shared tests 8 months ago
Marcel Hlopko b4bf6b22e5 Add missing map thunks for nested enums. 8 months ago
Protobuf Team Bot 847d31afb2 Add a convenience SomeMsg::parse(bytes) -> Result<SomeMsg, ParseErr> 9 months ago
Protobuf Team Bot 0c8f970fc9 Implement Default::default() for owned messages. 9 months ago
Protobuf Team Bot fa0d25a707 Add has_field() accessors for any field that supports presence. 9 months ago
Protobuf Team Bot 8198fe9a5f Change message-nesting namespacing to be some_msg:: instead of SomeMsg_:: 9 months ago
Protobuf Team Bot 06444cb6a1 Clean up some now-unnecessary or_default()s 9 months ago
Marcel Hlopko 71eed03fda Remove unnecessary tags 9 months ago
Protobuf Team Bot f72c45ff75 Change .submsg_mut() to return $Msg$Mut instead of FieldEntry<$Msg$>. 9 months ago
Protobuf Team Bot 7e47fc3e39 Remove the _mut() accessors from primitive fields (both explicit presence where they were FieldEntry and implicit presence where they were PrimitiveMut). 9 months ago
Protobuf Team Bot 7ec56d4243 Remove the oneof_mut accessor and expose the oneof_case accessor on gencode api. 9 months ago
Protobuf Team Bot bb1c0abcbf Make the oneof view accessors use consuming-self and the corresponding longer lifetime, avoiding unnecessary shortening of lifetimes in some cases. 9 months ago
Protobuf Team Bot fd4625e906 Remove setter_opt and add clearer for with-presence scalar fields, and add flat setter for msg fields. 10 months ago
Alyssa Haroldsen fe5092a392 Support enums as map values 10 months ago
Protobuf Team Bot 5a0135e65a Bring back 'flat' setters for singular scalars and strings. 10 months ago
Protobuf Team Bot 033ff1710e Introduce a RustFieldType enum which captures the primitive types that a rust field can be. 10 months ago
Protobuf Team Bot 9a56a497b2 Fix unused 'use' warning in simple_nested_test.rs 10 months ago
Protobuf Team Bot 42c215718e Add serialize(&self) on MsgView and MsgMut (in addition to the preexisting owned Message) 10 months ago
Protobuf Team Bot 3dc3dab85c Add zero-length deserialize unit test. 10 months ago
Marcel Hlopko 73769a030d Fix msan issue in Map<bool,*> 10 months ago
Marcel Hlopko 5842cc9c3d Implement support for messages as map values 10 months ago
Alyssa Haroldsen a522a47120 Validate that map keys are copied 10 months ago
Alyssa Haroldsen 398508287e Correct ExactSizeIterator impl for RepeatedIter 10 months ago
Alyssa Haroldsen 3ccccdb855 Copy repeated string/bytes in upb when pushing/setting/copying 10 months ago
Alyssa Haroldsen d445953603 Add map key and value iterators 10 months ago
Alyssa Haroldsen 035d6ec2cb Implement map iteration 10 months ago
Alyssa Haroldsen a48090e329 Make map insert return if the value was newly inserted 10 months ago
Hong Shin dc7001e517 Fix message vtable::clear 10 months ago
Hong Shin f9ec860691 Add more test coverage exercising msg_mut and msg_opt 10 months ago
Protobuf Team Bot d2b2ef34ba Add SettableValue<Msg> for owned Msg. 11 months ago
Hong Shin 7e1316ca81 Implement _opt for messages 11 months ago
Hong Shin f4511fda5a Implement and use field entries for `_mut` 11 months ago
Jakob Buchgraber 90015d3145 #protobuf #rust Generate fields with imported types 11 months ago
Marcel Hlopko 0e744e12d6 Fix bug number in a TODO 11 months ago
Jakob Buchgraber 4517308a91 Also apply r# prefix to crates whose names are reserved keywords 11 months ago
Alyssa Haroldsen f0ccf26e63 Correct raw identifier terminology in rust_keywords 11 months ago
Marcel Hlopko c1d174f7d2 Stop codegenning module for .proto package 11 months ago
Marcel Hlopko 39e8ca7faf Add support for repeated strings/bytes 11 months ago