Skip to content

Commit 44dd9fb

Browse files
stkimmerjrebelo
andauthored
Add a Rust main for Dust DDS (#13)
* Add first version of Dust DDS tests * Uncomment code to enable latest dust dds version * Add missing prints * add CLA * move rust source * add Dust CI * Fix typo * update dust_dds --------- Co-authored-by: Joao Rebelo <jrebelo@s2e-systems.com>
1 parent 9a7ebb2 commit 44dd9fb

6 files changed

Lines changed: 1064 additions & 0 deletions

File tree

.github/workflows/ci_dustdds.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI DustDDS
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- 'src/rs/DustDDS/**'
8+
9+
jobs:
10+
create_bin_release:
11+
name: Create binary release
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: src/rs/DustDDS
16+
steps:
17+
- name: Checkout sources
18+
uses: actions/checkout@v4
19+
- name: Build executable
20+
run: cargo build --package dust_dds_test_main --release
21+
- name: Rename executable
22+
run: |
23+
version=$( cargo tree --package dust_dds --depth 0 --prefix none | grep -oP '(?<=v)[0-9]+\.[0-9]+\.[0-9]+' )
24+
cp ./target/release/dust_dds_test_main ./dust_dds-${version}_test_main_linux
25+
mkdir artifacts
26+
zip --junk-paths artifacts/dust_dds-${version}_test_main_linux.zip ./dust_dds-${version}_test_main_linux
27+
- name: Upload executable artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: interoperability_executable
31+
path: src/rs/DustDDS/artifacts/

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,6 @@ doc/detailed_report.rst
7878
doc/test_results.rst
7979
test_description.rst
8080
doc/test_description.rst
81+
82+
# Rust target files
83+
target/

CLA/CLA_S2E_Software_Systems.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# OMG DDS INTEROPERABILITY REPOSITORY - CONTRIBUTOR LICENSE AGREEMENT
2+
3+
**This Contributor License Agreement ("Agreement") specifies the terms under which the individual or corporate entity specified in the signature block below (“You”) agree to make intellectual property contributions to the OMG DDS Interoperability Repository. BY SIGNING BELOW YOU ARE AGREEING TO BE BOUND BY THE TERMS OF THIS AGREEMENT. If You are signing this Agreement in Your capacity as an employee, THEN YOUR EMPLOYER AND YOU ARE BOTH BOUND BY THIS AGREEMENT.**
4+
5+
1. Definitions
6+
7+
1. "OMG DDS Xtypes Interoperability Repository" (or “Repository”) means the Git repository [https://github.com/omg-dds/dds-xtypes](https://github.com/omg-dds/dds-xtypes).
8+
9+
2. "Moderator" means an entity or individual responsible for authorizing changes to the Repository.
10+
11+
3. "Submit" (or “Submitted”) means any submission, including source code, binaries, code, pull requests, issue reports, comments, etc., made to the Moderators for inclusion in the Repository either through the Git repository interface or through electronic file transfer.
12+
13+
4. A "Contribution" is any original work of authorship, including any modifications or additions to an existing work, that You Submit to the DDS Interoperability Repository.
14+
15+
5. A "User" is anyone who accesses the Repository.
16+
17+
2. Allowable Contribution Representations
18+
19+
1. You represent that You have the necessary rights to the Contribution(s) to meet the obligations of this Agreement. If You are employed, Your employer has authorized Contribution(s) under this Agreement.
20+
21+
2. You represent that you have no knowledge of third-party intellectual property rights that are likely to be infringed by the Contribution(s). You represent that you have no knowledge that such infringement or any allegation of misappropriation of intellectual property rights is likely to be claimed or has already been claimed.
22+
23+
3. License
24+
25+
You grant Moderators a perpetual, worldwide, non-exclusive, assignable, paid-up license to publish, display, and redistribute the Contribution as part of the Repository. You also license to Moderators under the same terms any other intellectual property rights required to publish, display, and redistribute the Contributions as part of the Repository. You further grant all Users of the Repository a license to the Contribution under the terms of the [OMG DDS Interoperability Testing License](../LICENSE.md) included in the Repository. Moderators are under no obligation to publish Contributions.
26+
27+
4. No Warranty, Consequential Damages. Limited Liability
28+
29+
Other than explicitly stated herein, You provide the Contribution(s) "as is" with no warranty nor claims of fitness to any purpose. Neither party shall be liable for consequential or special damages of any kind. Other than for breach of warranty or representations herein, the liability of either party to the other shall be limited to $1000.
30+
31+
5. General
32+
33+
1. If You are an agency of the United States Government, then this Agreement will be governed by the United States federal common law. Otherwise, this Agreement will be governed by the laws of the State of California except with regard to its choice of law rules.
34+
35+
2. A party may assign this Agreement to an entity acquiring essentially all of the party’s relevant business.
36+
37+
6. Electronic Signatures
38+
39+
"Electronic Signature" means any electronic sound, symbol, or process attached to or logically associated with a record and executed and adopted by a party with the intent to sign such record.
40+
41+
Each party agrees that the Electronic Signatures, whether digital or encrypted, of the parties included in this Agreement are intended to authenticate this writing and to have the same force and effect as manual signatures.
42+
43+
44+
IN WITNESS WHEREOF, You, intending to be legally bound, have executed this Agreement or caused Your employer’s proper and duly authorized officer to execute and deliver this Agreement, for good and valuable consideration, the sufficiency of which is hereby acknowledged, as of the day and year first written below.
45+
46+
**For:**
47+
48+
Entity Name: S2E Software Systems B.V.
49+
50+
Address: St. Jacobstraat 125, 3511 BP Utrecht, The Netherlands
51+
52+
("**You**")
53+
54+
**By:**
55+
56+
Name: Stefan Kimmer
57+
58+
Title: Director
59+
60+
Date: May 22, 2026

src/rs/DustDDS/Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[package]
2+
name = "dust_dds_test_main"
3+
version = "0.1.0"
4+
description = "OMG DDS_XTYPES Interoperability"
5+
edition = "2024"
6+
rust-version = "1.87"
7+
8+
[dependencies]
9+
clap = { version = "4.5.47", features = ["derive", "string"] }
10+
ctrlc = "3.4"
11+
dust_dds = { version = "0.16.0", git = "https://github.com/s2e-systems/dust-dds", branch = "main", features = [
12+
"xtypes-xml",
13+
] }

0 commit comments

Comments
 (0)