[package]
edition = "2024"
rust-version = "1.92"
name = "natnet"
version = "0.1.0"
build = false
include = [
"/src",
"/examples",
"/tests",
"/README.md",
"/LICENSE-APACHE",
"/LICENSE-MIT",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OptiTrack NatNet protocol"
readme = "README.md"
keywords = [
"natnet",
"optitrack",
"motive",
"mocap",
]
categories = [
"parser-implementations",
"network-programming",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/AndrejOrsula/natnet"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["net"]
imagery = []
nalgebra = ["dep:nalgebra"]
net = []
serde = ["dep:serde"]
[lib]
name = "natnet"
path = "src/lib.rs"
[[example]]
name = "probe"
path = "examples/probe.rs"
test = true
required-features = ["net"]
[[test]]
name = "command"
path = "tests/command.rs"
[[test]]
name = "decoder"
path = "tests/decoder.rs"
[[test]]
name = "frame_versions"
path = "tests/frame_versions.rs"
[[test]]
name = "imagery"
path = "tests/imagery.rs"
[[test]]
name = "imagery_net"
path = "tests/imagery_net.rs"
[[test]]
name = "messages"
path = "tests/messages.rs"
[[test]]
name = "modeldef_versions"
path = "tests/modeldef_versions.rs"
[[test]]
name = "net_command"
path = "tests/net_command.rs"
[[test]]
name = "net_data"
path = "tests/net_data.rs"
[[test]]
name = "optional_features"
path = "tests/optional_features.rs"
[[test]]
name = "payload_robustness"
path = "tests/payload_robustness.rs"
[[test]]
name = "robustness"
path = "tests/robustness.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[[test]]
name = "serverinfo_encoding"
path = "tests/serverinfo_encoding.rs"
[[test]]
name = "typed_sections"
path = "tests/typed_sections.rs"
[dependencies.nalgebra]
version = "0.35"
features = ["std"]
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dev-dependencies.serde_test]
version = "1.0.177"
[target."cfg(any(unix, windows))".dev-dependencies.if-addrs]
version = "0.15"
features = ["link-local"]
[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
exit = "warn"
expect_used = "warn"
panic = "warn"
panic_in_result_fn = "warn"
redundant_closure_for_method_calls = "allow"
string_slice = "warn"
todo = "warn"
unimplemented = "warn"
unreachable = "warn"
unwrap_used = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]