# 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 = "epics-bridge-rs"
version = "0.12.0"
authors = ["Sang Woo Kim <sngwkim915@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "EPICS protocol bridges: Record↔PVA (QSRV), CA gateway, pvalink, PVA gateway"
readme = "README.md"
license-file = "LICENSE"
repository = "https://github.com/epics-rs/epics-rs"

[features]
all-bridges = [
    "qsrv",
    "qsrv-bin",
    "ca-gateway",
    "ca-gateway-bin",
    "pvalink",
    "pva-gateway",
    "pva-gateway-bin",
    "dual-gateway",
    "dual-gateway-bin",
]
ca-gateway = [
    "dep:epics-ca-rs",
    "dep:regex",
]
ca-gateway-bin = [
    "ca-gateway",
    "dep:clap",
    "dep:tracing-subscriber",
]
ca-gateway-tls = [
    "ca-gateway",
    "ca-gateway-bin",
    "epics-ca-rs/experimental-rust-tls",
]
default = [
    "qsrv",
    "qsrv-bin",
    "ca-gateway",
    "ca-gateway-bin",
]
dual-gateway = [
    "ca-gateway",
    "pva-gateway",
]
dual-gateway-bin = [
    "dual-gateway",
    "ca-gateway-bin",
    "pva-gateway-bin",
    "dep:serde",
    "dep:toml",
]
dual-ioc = [
    "dep:epics-pva-rs",
    "dep:epics-ca-rs",
]
dual-ioc-bin = [
    "dual-ioc",
    "dep:clap",
    "dep:tracing-subscriber",
]
pva-gateway = [
    "dep:epics-pva-rs",
    "dep:regex",
]
pva-gateway-bin = [
    "pva-gateway",
    "dep:clap",
    "dep:tracing-subscriber",
]
pvalink = ["dep:epics-pva-rs"]
qsrv = [
    "dep:epics-pva-rs",
    "dep:epics-ca-rs",
    "dep:serde",
    "dep:serde_json",
]
qsrv-bin = [
    "qsrv",
    "dep:clap",
    "dep:tracing-subscriber",
]

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

[[bin]]
name = "ca-gateway-rs"
path = "src/bin/ca_gateway_rs.rs"
required-features = ["ca-gateway-bin"]

[[bin]]
name = "dual-gateway-rs"
path = "src/bin/dual_gateway_rs.rs"
required-features = ["dual-gateway-bin"]

[[bin]]
name = "dual-ioc-rs"
path = "src/bin/dual_ioc_rs.rs"
required-features = ["dual-ioc-bin"]

[[bin]]
name = "pva-gateway-rs"
path = "src/bin/pva_gateway_rs.rs"
required-features = ["pva-gateway-bin"]

[[bin]]
name = "qsrv-rs"
path = "src/bin/qsrv_rs.rs"
required-features = ["qsrv-bin"]

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

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

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

[dependencies.arc-swap]
version = "1"

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.epics-base-rs]
version = "0.12.0"

[dependencies.epics-ca-rs]
version = "0.12.0"
optional = true

[dependencies.epics-pva-rs]
version = "0.12.0"
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.regex]
version = "1"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.thiserror]
version = "2"

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

[dependencies.toml]
version = "0.8"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
optional = true

[dev-dependencies.serial_test]
version = "3"
