open_dis_rust/lib.rs
1// open-dis-rust - Rust implementation of the IEEE 1278.1-2012 Distributed Interactive
2// Simulation (DIS) application protocol
3// Copyright (C) 2025 Cameron Howell
4//
5// Licensed under the BSD 2-Clause License
6
7//! # `open_dis_rust` crate
8//!
9//! This is a library that implements the IEEE 1278.1-2012 Distributed Interactive Simulation
10//! application protocol.
11//!
12//! For more information on this standard, you may view the publication from the
13//! [IEEE website](https://ieee.org/).
14//!
15//! ## Example usage
16//!
17//! ```rust
18//! use open_dis_rust::common::Pdu;
19//! use open_dis_rust::simulation_management::AcknowledgePdu;
20//! use bytes::BytesMut;
21//!
22//! // Create new mutable byte array
23//! let mut bytes = BytesMut::new();
24//! // Create a pre-populated AcknowledgePdu
25//! let mut pdu = AcknowledgePdu::default();
26//! // Serialize the PDU into the byte array, which can then be sent over UDP
27//! pdu.serialize(&mut bytes);
28//! ```
29
30pub mod common;
31pub mod distributed_emissions;
32pub mod entity_information;
33pub mod entity_management;
34pub mod information_operations;
35pub mod pdu_macro;
36//pub mod live_entity_information;
37pub mod logistics;
38pub mod minefield;
39pub mod radio_communications;
40pub mod simulation_management;
41pub mod simulation_management_with_reliability;
42pub mod synthetic_environment;
43pub mod warfare;