nemo-flow 0.2.0

Core Rust SDK for NeMo Flow observability, scope management, and runtime instrumentation.
Documentation
# 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 = "nemo-flow"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core Rust SDK for NeMo Flow observability, scope management, and runtime instrumentation."
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/NVIDIA/NeMo-Flow"
resolver = "2"

[features]
default = [
    "otel",
    "openinference",
]
openinference = [
    "dep:async-trait",
    "dep:getrandom",
    "dep:js-sys",
    "dep:openinference-semantic-conventions",
    "dep:opentelemetry",
    "dep:opentelemetry-http",
    "dep:opentelemetry-otlp",
    "dep:opentelemetry_sdk",
    "dep:reqwest",
    "dep:rustls",
    "dep:tonic",
    "dep:web-sys",
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
]
otel = [
    "dep:async-trait",
    "dep:getrandom",
    "dep:js-sys",
    "dep:opentelemetry",
    "dep:opentelemetry-http",
    "dep:opentelemetry-otlp",
    "dep:opentelemetry_sdk",
    "dep:reqwest",
    "dep:rustls",
    "dep:tonic",
    "dep:web-sys",
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
]
schema = ["dep:schemars"]

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

[[test]]
name = "api_surface_integration"
path = "tests/integration/api_surface_tests.rs"

[[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 = "pipeline_integration"
path = "tests/integration/pipeline_tests.rs"

[[test]]
name = "scope_local_integration"
path = "tests/integration/scope_local_tests.rs"

[[test]]
name = "stream_integration"
path = "tests/integration/stream_tests.rs"

[dependencies.async-trait]
version = "0.1"
optional = true

[dependencies.bitflags]
version = "2"
features = ["serde"]

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.getrandom]
version = "0.3.4"
features = ["wasm_js"]
optional = true

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.openinference-semantic-conventions]
version = "0.1.1"
optional = true

[dependencies.opentelemetry]
version = "0.31"
features = ["trace"]
optional = true
default-features = false

[dependencies.opentelemetry-http]
version = "0.31"
optional = true
default-features = false

[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["trace"]
optional = true
default-features = false

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

[dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "sync",
]
default-features = false

[dependencies.tokio-stream]
version = "0.1"
default-features = false

[dependencies.typed-builder]
version = "0.23.2"

[dependencies.uuid]
version = "=1.18.1"
features = [
    "v7",
    "serde",
]

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true

[dependencies.web-sys]
version = "0.3"
features = [
    "Headers",
    "Request",
    "RequestInit",
    "Response",
    "Window",
    "console",
]
optional = true

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.opentelemetry_sdk]
version = "0.31"
features = [
    "trace",
    "testing",
]
default-features = false

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "sync",
    "test-util",
    "rt-multi-thread",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.opentelemetry-otlp]
version = "0.31.1"
features = [
    "trace",
    "http-proto",
    "reqwest-blocking-client",
    "grpc-tonic",
]
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.12"
features = ["rustls-tls-native-roots-no-provider"]
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
    "tls12",
]
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tonic]
version = "0.14.1"
optional = true
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.opentelemetry-otlp]
version = "0.31.1"
features = [
    "trace",
    "http-proto",
]
optional = true
default-features = false

[lints.rust]
missing_docs = "deny"