This project demonstrates how to use Connext from Rust on a Linux x64 system.
This project is a simple example to get you started with Connext and Rust.
It includes a basic setup and a demonstration of the functionality, and highlights the need for better integrations such as
- Entity lifetime management
- Automatic FFI type generation, also for custom IDL types.
- Wrapping of C types such as
char*
- Support for other architectures
Nonetheless this functionality is included
- Automatic rtiddsgen invocation
- Type support library build
- Link configuration automation
- Rust installed on your system
- Connext installed and configured
- Linux x64 system
-
Clone the repository:
git clone https://github.com/rticommunity/connext-rust-simple-binding.git cd connext-rust-simple-binding
-
Build the project:
export NDDSHOME=path/to/rti_connext_dds-7.3.0 cargo build
Run the project from a cwd where USER_QOS_PROFILES.xml is located:
cargo run -- <pub|sub>
The project is capable of discovering participants in the loopback interface.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.