# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "spvirit-tools"
version = "0.1.5"
authors = ["Mateusz Leputa for ISIS Neutron and Muon Source Copyright 2026"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PVAccess client/server tools for EPICS"
readme = "README.md"
keywords = [
    "epics",
    "pvaccess",
]
categories = ["science"]
license = "BSD-3-Clause"
repository = "https://github.com/ISISNeutronMuon/spvirit"
resolver = "2"

[features]
client = []
default = [
    "client",
    "server",
    "tui",
]
server = []
tui = [
    "dep:ratatui",
    "dep:color-eyre",
]

[lib]
name = "spvirit_tools"
path = "src/lib.rs"

[[bin]]
name = "spdodeca"
path = "src/bin/spvirit_dodeca.rs"
required-features = ["server"]

[[bin]]
name = "spexplore"
path = "src/bin/spvirit_explore.rs"
required-features = [
    "client",
    "tui",
]

[[bin]]
name = "spget"
path = "src/bin/spvirit_get.rs"
required-features = ["client"]

[[bin]]
name = "spget_compare"
path = "src/bin/spvirit_get_compare.rs"
required-features = ["client"]

[[bin]]
name = "spinfo"
path = "src/bin/spvirit_info.rs"
required-features = ["client"]

[[bin]]
name = "splist"
path = "src/bin/spvirit_list.rs"
required-features = ["client"]

[[bin]]
name = "spmonitor"
path = "src/bin/spvirit_monitor.rs"
required-features = ["client"]

[[bin]]
name = "spput"
path = "src/bin/spvirit_put.rs"
required-features = ["client"]

[[bin]]
name = "spsearch"
path = "src/bin/spvirit_search.rs"
required-features = [
    "client",
    "tui",
]

[[bin]]
name = "spserver"
path = "src/bin/spvirit_server.rs"
required-features = ["server"]

[[bin]]
name = "spsine"
path = "src/bin/spvirit_sine.rs"
required-features = ["client"]

[[example]]
name = "pvget_example"
path = "examples/pvget_example.rs"

[[example]]
name = "search_example"
path = "examples/search_example.rs"

[[test]]
name = "interop_epics_base"
path = "tests/interop_epics_base.rs"

[[test]]
name = "interop_pvaccess_java"
path = "tests/interop_pvaccess_java.rs"

[[test]]
name = "interop_tool_matrix"
path = "tests/interop_tool_matrix.rs"

[[test]]
name = "spvirit_explore_client"
path = "tests/spvirit_explore_client.rs"

[[test]]
name = "spvirit_get"
path = "tests/spvirit_get.rs"

[[test]]
name = "spvirit_nt_codec"
path = "tests/spvirit_nt_codec.rs"

[[test]]
name = "spvirit_nt_lifecycle"
path = "tests/spvirit_nt_lifecycle.rs"

[[test]]
name = "spvirit_protocol_codec"
path = "tests/spvirit_protocol_codec.rs"

[[test]]
name = "spvirit_protocol_lifecycle"
path = "tests/spvirit_protocol_lifecycle.rs"

[[test]]
name = "spvirit_protocol_matrix"
path = "tests/spvirit_protocol_matrix.rs"

[[test]]
name = "spvirit_protocol_unsupported"
path = "tests/spvirit_protocol_unsupported.rs"

[[test]]
name = "spvirit_pvlist"
path = "tests/spvirit_pvlist.rs"

[[test]]
name = "spvirit_record_array"
path = "tests/spvirit_record_array.rs"

[[test]]
name = "spvirit_search_resilience"
path = "tests/spvirit_search_resilience.rs"

[dependencies.argparse]
version = "0.2.2"

[dependencies.chrono]
version = "0.4"

[dependencies.color-eyre]
version = "0.6.5"
optional = true

[dependencies.dns-lookup]
version = "3.0.0"

[dependencies.get_if_addrs]
version = "0.5.3"

[dependencies.hex]
version = "0.4.3"

[dependencies.ratatui]
version = "0.29.0"
optional = true

[dependencies.regex]
version = "1.11.2"

[dependencies.serde_json]
version = "1.0.145"

[dependencies.socket2]
version = "0.5"
features = ["all"]

[dependencies.spvirit-client]
version = "0.1.5"

[dependencies.spvirit-codec]
version = "0.1.5"

[dependencies.spvirit-server]
version = "0.1.5"

[dependencies.spvirit-types]
version = "0.1.5"

[dependencies.tokio]
version = "1.47.1"
features = ["full"]

[dependencies.tracing]
version = "0.1.41"

[dependencies.tracing-subscriber]
version = "0.3.20"
