[package]
edition = "2024"
rust-version = "1.88"
name = "microrti-encoding"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HLA 4 data encoding of IEEE 1516.2-2025: basic types, strings, handles, arrays, records, variant records and a FOM-driven codec."
readme = "README.md"
keywords = [
"hla",
"rti",
"simulation",
"ieee-1516",
"federate",
]
categories = [
"simulation",
"network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/microrti/microrti"
[package.metadata.docs.rs]
features = ["fom"]
[features]
default = []
fom = [
"dep:microrti-fom",
"dep:serde",
]
[lib]
name = "microrti_encoding"
path = "src/lib.rs"
[[test]]
name = "allocation"
path = "tests/allocation.rs"
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "constructed"
path = "tests/constructed.rs"
[[test]]
name = "extendable"
path = "tests/extendable.rs"
[[test]]
name = "fom_codec"
path = "tests/fom_codec.rs"
[[test]]
name = "fom_value"
path = "tests/fom_value.rs"
[[test]]
name = "hostile"
path = "tests/hostile.rs"
[[test]]
name = "hostile_fom"
path = "tests/hostile_fom.rs"
[[test]]
name = "mom"
path = "tests/mom.rs"
[[test]]
name = "omt_encoding"
path = "tests/omt_encoding.rs"
[dependencies.microrti-core]
version = "0.4.0"
[dependencies.microrti-fom]
version = "0.4.0"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "2"
[dev-dependencies.postcard]
version = "1"
features = ["use-std"]
[dev-dependencies.serde_json]
version = "1"
features = ["float_roundtrip"]
[dev-dependencies.stats_alloc]
version = "0.1"
[lints.rust]
unsafe_code = "forbid"