docs.rs failed to build rustecal-pubsub-0.1.8
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
rustecal-pubsub
rustecal-pubsub provides a high-level, type-safe Publisher/Subscriber API on top of eCAL’s raw FFI and Core API, enabling Rust applications to send and receive structured messages with minimal boilerplate.
Features
- Untyped Pub/Sub for raw buffers when needed
- Typed Pub/Sub via
TypedPublisher<T>andTypedSubscriber<T> - Support for arbitrary message types implementing the
PublisherMessageandSubscriberMessagetraits - Metadata propagation: topics carry encoding, type name, and optional descriptor
Requirements
- Rust 1.60 or later
- Eclipse eCAL C/C++ library v6.0 or later installed and accessible on your system
Installation
Add to your Cargo.toml:
[]
= "0.1"
Quickstart
Typed Publisher Example
use ;
use StringMessage;
Typed Subscriber Example
use ;
use StringMessage;
Traits Reference
PublisherMessage: Definesdatatype()andto_bytes()for a message type.SubscriberMessage: Definesdatatype()andfrom_bytes()for reconstructing a message.
Implement these traits to integrate custom types or leverage helper crates like rustecal-types-protobuf or rustecal-types-serde.
Advanced Usage
- Untyped Pub/Sub: Use
rustecal_pubsub::PublisherandSubscriberfor raw buffers. - Metadata Inspection: Retrieve topic metadata via
get_data_type_information(). - Message-format support: Combine with
rustecal-types-bytes,rustecal-types-string,rustecal-types-protobuffor Bytes, String, and Protobuf. - Message-format support: Combine with
rustecal-types-serdefor JSON, CBOR, and MessagePack.
For more examples, see the rustecal-samples/pubsub.