This repository contains the Rust code for Lingua Franca's (LF) Runtime Infrastructure (RTI) for federated execution of LF.
Disclaimer
This RTI is still a work in progress with unimplemented functionalities; thus, it may not work for certain federated LF programs. Please let @chanijjani or @hokeun know if you find any issues when running federated LF programs with this Rust RTI.
sudo apt update
sudo apt install -y curl gcc make build-essential
curl https://sh.rustup.rs -sSf | sh
source ~/.profile
source ~/.cargo/env
rustc -V
You can see rustc 1.xx.0 (...)
.
https://github.com/hokeun/lf-rust-rti.git
lf-rust-rti/rust/rti
, then run the cargo run
command with options for running the RTI, as shown below.cd lf-rust-rti/rust/rti
cargo run -- -n 2
cargo run -- -n 2
lingua-franca/test/C/fed-gen/HelloDistributed/bin$ ./federate_s
lingua-franca/test/C/fed-gen/HelloDistributed/bin$ ./federate_d
Currently passing federated tests (lingua-franca/test/C/src/federated/) with Rust RTI: (to be updated)