[package]
edition = "2024"
name = "nemo-relay"
version = "0.7.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core Rust SDK for NeMo Relay observability, scope management, and runtime instrumentation."
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/NVIDIA/NeMo-Relay"
resolver = "2"
[features]
atof-streaming = [
"dep:tokio-tungstenite",
"tokio/io-util",
"tokio/net",
"tokio/rt-multi-thread",
"tokio/time",
]
default = [
"guardrails-remote",
"object-store",
]
guardrails-remote = []
object-store = [
"dep:object_store",
"tokio/net",
"tokio/time",
]
schema = [
"dep:schemars",
"nemo-relay-types/schema",
]
worker-grpc = [
"dep:nemo-relay-worker-proto",
"dep:hyper-util",
"dep:tower",
"tokio-stream/net",
"tonic/codegen",
"tonic/router",
"tonic/transport",
"tokio/io-util",
"tokio/net",
"tokio/process",
"tokio/rt-multi-thread",
]
[lib]
name = "nemo_relay"
path = "src/lib.rs"
[[test]]
name = "api_surface_integration"
path = "tests/integration/api_surface_tests.rs"
[[test]]
name = "atif_storage_integration"
path = "tests/integration/atif_storage_tests.rs"
required-features = ["object-store"]
[[test]]
name = "codec_integration"
path = "tests/integration/codec_tests.rs"
[[test]]
name = "context_isolation_integration"
path = "tests/integration/context_isolation_tests.rs"
[[test]]
name = "middleware_integration"
path = "tests/integration/middleware_tests.rs"
[[test]]
name = "native_plugin_integration"
path = "tests/integration/native_plugin_tests.rs"
[[test]]
name = "pipeline_integration"
path = "tests/integration/pipeline_tests.rs"
[[test]]
name = "plugin_host_builtin_ownership"
path = "tests/integration/plugin_host_builtin_ownership_tests.rs"
[[test]]
name = "scope_local_integration"
path = "tests/integration/scope_local_tests.rs"
[[test]]
name = "stream_integration"
path = "tests/integration/stream_tests.rs"
[[test]]
name = "subscriber_dispatcher_integration"
path = "tests/integration/subscriber_dispatcher_tests.rs"
[[test]]
name = "worker_plugin_integration"
path = "tests/integration/worker_plugin_tests.rs"
required-features = ["worker-grpc"]
[dependencies.bitflags]
version = "2"
features = ["serde"]
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.futures-util]
version = "0.3"
[dependencies.hyper-util]
version = "0.1"
features = ["tokio"]
optional = true
[dependencies.libloading]
version = "0.8"
[dependencies.log]
version = "0.4"
features = ["kv"]
[dependencies.nemo-relay-plugin]
version = "0.7.2"
[dependencies.nemo-relay-types]
version = "0.7.2"
[dependencies.nemo-relay-worker-proto]
version = "0.7.2"
optional = true
[dependencies.object_store]
version = "0.14.1"
features = ["aws"]
optional = true
default-features = false
[dependencies.opentelemetry]
version = "0.32"
features = ["trace"]
default-features = false
[dependencies.opentelemetry-otlp]
version = "0.32"
features = [
"trace",
"http-proto",
"reqwest-blocking-client",
"reqwest-rustls",
"grpc-tonic",
"tls-ring",
"tls-roots",
]
default-features = false
[dependencies.opentelemetry-semantic-conventions]
version = "0.32.1"
features = ["semconv_experimental"]
default-features = false
[dependencies.opentelemetry_sdk]
version = "0.32.1"
features = [
"trace",
"internal-logs",
]
default-features = false
[dependencies.reqwest]
version = "0.12"
features = [
"charset",
"http2",
"rustls-tls-native-roots",
"stream",
]
default-features = false
[dependencies.schemars]
version = "0.8"
optional = true
[dependencies.semver]
version = "1"
[dependencies.serde]
version = "1"
features = [
"derive",
"rc",
]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.11"
[dependencies.shell-words]
version = "1"
[dependencies.spdlog-rs]
version = "0.5"
features = [
"log",
"multi-thread",
]
[dependencies.strum]
version = "0.27"
features = ["derive"]
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
"sync",
"time",
]
default-features = false
[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
default-features = false
[dependencies.tokio-tungstenite]
version = "0.27"
features = [
"connect",
"rustls-tls-native-roots",
]
optional = true
default-features = false
[dependencies.toml]
version = "0.9"
[dependencies.tonic]
version = "0.14.1"
default-features = false
[dependencies.tower]
version = "0.5"
features = ["util"]
optional = true
[dependencies.tracing]
version = "0.1"
features = [
"std",
"log",
]
default-features = false
[dependencies.typed-builder]
version = "0.23.2"
[dependencies.unicode-general-category]
version = "1.1"
[dependencies.uuid]
version = "=1.18.1"
features = [
"v7",
"serde",
]
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.object_store]
version = "0.14.1"
features = ["aws"]
default-features = false
[dev-dependencies.opentelemetry_sdk]
version = "0.32.1"
features = [
"trace",
"testing",
]
default-features = false
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
"sync",
"test-util",
"rt-multi-thread",
"time",
]
[lints.clippy]
cognitive_complexity = "deny"
[lints.rust]
missing_docs = "deny"