# 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"
rust-version = "1.90.0"
name = "neva"
version = "0.2.7"
authors = ["Roman Emreis <roman.emreis@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MCP SDK for Rust"
documentation = "https://docs.rs/neva"
readme = "README.md"
keywords = [
    "modelcontextprotocol",
    "mcp",
    "sdk",
    "ai",
    "framework",
]
categories = [
    "web-programming::http-server",
    "network-programming",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/RomanEmreis/neva"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[features]
client = [
    "dep:windows",
    "dep:nix",
    "dep:jsonschema",
    "tokio/process",
    "tokio/signal",
]
client-full = [
    "client-macros",
    "tracing",
    "http-client",
    "client-tls",
    "tasks",
]
client-macros = [
    "client",
    "macros",
    "neva_macros?/client",
]
client-tls = ["reqwest?/rustls"]
default = []
di = ["dep:volga-di"]
full = [
    "server-full",
    "client-full",
]
http-client = [
    "client",
    "dep:reqwest",
    "dep:sse-stream",
    "dep:tokio-stream",
    "dep:once_cell",
]
http-server = [
    "server",
    "dep:volga",
    "dep:tokio-stream",
]
macros = [
    "dep:neva_macros",
    "dep:inventory",
]
server = ["tokio/signal"]
server-full = [
    "server-macros",
    "tracing",
    "http-server",
    "server-tls",
    "di",
    "tasks",
]
server-macros = [
    "server",
    "macros",
    "neva_macros?/server",
]
server-tls = [
    "volga?/tls",
    "volga?/dev-cert",
]
tasks = []
tracing = [
    "dep:tracing",
    "dep:tracing-subscriber",
    "dep:once_cell",
    "volga?/tracing",
]

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

[dependencies.base64]
version = "0.22.1"

[dependencies.bytes]
version = "1.11.1"

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

[dependencies.dashmap]
version = "6.1.0"

[dependencies.futures-util]
version = "0.3.32"
features = ["alloc"]
default-features = false

[dependencies.inventory]
version = "0.3.22"
optional = true

[dependencies.jsonschema]
version = "0.44.1"
optional = true

[dependencies.memchr]
version = "2.8.0"

[dependencies.neva_macros]
version = "0.2.7"
optional = true

[dependencies.once_cell]
version = "1.21.3"
features = ["std"]
optional = true

[dependencies.reqwest]
version = "0.13.2"
features = [
    "stream",
    "json",
]
optional = true

[dependencies.schemars]
version = "1.2.1"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.146"

[dependencies.sse-stream]
version = "0.2.1"
optional = true

[dependencies.tokio]
version = "1.50.0"
features = [
    "sync",
    "io-std",
    "io-util",
    "rt",
    "time",
    "macros",
]

[dependencies.tokio-stream]
version = "0.1.18"
optional = true

[dependencies.tokio-util]
version = "0.7.18"

[dependencies.tracing]
version = "0.1.44"
optional = true

[dependencies.tracing-subscriber]
version = "0.3.22"
features = [
    "fmt",
    "json",
]
optional = true

[dependencies.uuid]
version = "1.22.0"
features = [
    "v4",
    "serde",
]

[dependencies.volga]
version = "0.8.6"
features = [
    "di",
    "jwt-auth-full",
]
optional = true

[dependencies.volga-di]
version = "0.8.6"
optional = true

[dev-dependencies.tokio]
version = "1.50.0"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
]

[dev-dependencies.tokio-stream]
version = "0.1.18"

[target.'cfg(target_os = "linux")'.dependencies.nix]
version = "0.31.1"
features = ["signal"]
optional = true

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62.0"
features = [
    "Win32_Foundation",
    "Win32_System_JobObjects",
    "Win32_System_Threading",
    "Win32_Security",
    "Win32_System_Diagnostics",
    "Win32_System_Diagnostics_ToolHelp",
]
optional = true

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
