[package]
edition = "2024"
name = "nt_client"
version = "0.5.1"
authors = ["Zachary Su <contact@datasiqn.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A blazingly fast NetworkTables 4.1 client"
readme = "README.md"
keywords = [
"wpi",
"wpilib",
"networktables",
"NT",
]
categories = ["api-bindings"]
license = "MIT"
repository = "https://github.com/DatAsianBoi123/nt_client"
[features]
math = []
protobuf = [
"nt_client_macros/protobuf",
"dep:protobuf",
"dep:protobuf-codegen",
"dep:protoc-bin-vendored",
]
publish_bypass = []
struct = ["nt_client_macros/struct"]
[lib]
name = "nt_client"
path = "src/lib.rs"
[[example]]
name = "generic_pub"
path = "examples/generic_pub.rs"
[[example]]
name = "path"
path = "examples/path.rs"
[[example]]
name = "property"
path = "examples/property.rs"
[[example]]
name = "protobuf"
path = "examples/protobuf.rs"
required-features = [
"protobuf",
"math",
]
[[example]]
name = "pubsub"
path = "examples/pubsub.rs"
[[example]]
name = "reconnect"
path = "examples/reconnect.rs"
[[example]]
name = "schema"
path = "examples/schema.rs"
required-features = [
"struct",
"protobuf",
]
[[example]]
name = "struct_data"
path = "examples/struct_data.rs"
required-features = [
"struct",
"math",
]
[[example]]
name = "topiccollection"
path = "examples/topiccollection.rs"
[dependencies.futures-util]
version = "0.3"
features = [
"sink",
"std",
]
default-features = false
[dependencies.nt_client_macros]
version = "0.1.0"
[dependencies.protobuf]
version = "3"
optional = true
[dependencies.rand]
version = "0.9"
[dependencies.rmp-serde]
version = "1.3"
[dependencies.rmpv]
version = "1.3"
features = ["with-serde"]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3"
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"sync",
"time",
]
[dependencies.tokio-tungstenite]
version = "0.28"
features = ["rustls"]
[dependencies.tracing]
version = "0.1"
[dev-dependencies.lazy_static]
version = "1.5.0"
[dev-dependencies.tokio-test]
version = "0.4"
[dev-dependencies.tracing-subscriber]
version = "0.3"
[build-dependencies.protobuf-codegen]
version = "3"
optional = true
[build-dependencies.protoc-bin-vendored]
version = "3"
optional = true