Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.34 KB

README.md

File metadata and controls

59 lines (40 loc) · 1.34 KB

Connext from Rust

This project demonstrates how to use Connext from Rust on a Linux x64 system.

Overview

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

Prerequisites

  • Rust installed on your system
  • Connext installed and configured
  • Linux x64 system

Installation

  1. Clone the repository:

    git clone https://github.com/rticommunity/connext-rust-simple-binding.git
    cd connext-rust-simple-binding
  2. Build the project:

    export NDDSHOME=path/to/rti_connext_dds-7.3.0
    cargo build

Usage

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.

Demo

Demo

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.