zerodds-proto
Protocol Buffers type reuse for DDS:
FileDescriptorSet→ XTypesDynamicType, so a.protodata model rides the DDS-native XCDR wire.
- Source: crates/proto
- API docs: docs.rs/zerodds-proto
Protocol Buffers type reuse for DDS. A FileDescriptorSet (from protoc -o out.pb --include_imports x.proto) is mapped to an XTypes DynamicType, so a .proto data model becomes a DDS topic type and rides the DDS-native XCDR wire through the reflective DynamicData codec of ZeroDDS — not a protobuf payload. proto field numbers map directly to XTypes member IDs.
foo.proto --protoc--> FileDescriptorSet --zerodds-proto--> DynamicType --XCDR--> DDS wire
This is the type-system counterpart to zerodds-grpc-bridge, which bridges the gRPC protocol: zerodds-proto reuses the types.
Pure Rust; needs std (the mapping is built on the dynamic feature of zerodds-types). Safety classification: STANDARD.
Position
- Built on
zerodds-types,zerodds-astandzerodds-ast-core.
zerodds-proto
Wiederverwendung von Protocol-Buffers-Typen für DDS:
FileDescriptorSet→ XTypes-DynamicType, damit ein.proto-Datenmodell über die DDS-eigene XCDR-Kodierung läuft.
- Quelle: crates/proto
- API-Docs: docs.rs/zerodds-proto
Wiederverwendung der Typen von Protocol Buffers für DDS. Ein FileDescriptorSet (aus protoc -o out.pb --include_imports x.proto) wird auf einen XTypes-DynamicType abgebildet. Ein .proto-Datenmodell wird so zu einem DDS-Topic-Typ und läuft über die DDS-eigene XCDR-Kodierung durch den reflektiven DynamicData-Codec von ZeroDDS — nicht als Protobuf-Nutzlast. Die Feldnummern von proto werden direkt zu Member-IDs von XTypes.
foo.proto --protoc--> FileDescriptorSet --zerodds-proto--> DynamicType --XCDR--> DDS wire
Das ist das Gegenstück im Typsystem zu zerodds-grpc-bridge, das das Protokoll gRPC überbrückt: zerodds-proto verwendet die Typen wieder.
Reines Rust; braucht std (die Abbildung baut auf dem Feature dynamic von zerodds-types auf). Sicherheitseinstufung: STANDARD.
Stellung
- Baut auf
zerodds-types,zerodds-astundzerodds-ast-coreauf.