# 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 = "2021"
name = "multi-rpc"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Define a Rust service trait once and serve it simultaneously over multiple RPC protocols like Tarpc, REST/Axum, and JSON-RPC."
homepage = "https://github.com/dan-da/multi-rpc"
readme = "README.md"
keywords = [
    "rpc",
    "axum",
    "tarpc",
    "json-rpc",
    "macros",
]
categories = [
    "network-programming",
    "web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/dan-da/multi-rpc"

[features]
default = []
jsonrpsee = [
    "dep:jsonrpsee",
    "multi-rpc-macros/jsonrpsee",
]
rest-axum = [
    "dep:axum",
    "multi-rpc-macros/rest-axum",
]
tarpc = [
    "dep:tarpc",
    "multi-rpc-macros/tarpc",
]

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

[dependencies.axum]
version = "0.8.6"
optional = true

[dependencies.futures]
version = "0.3.31"

[dependencies.jsonrpsee]
version = "0.26.0"
features = [
    "server",
    "macros",
]
optional = true

[dependencies.multi-rpc-macros]
version = "0.3.1"
default-features = false

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

[dependencies.serde_json]
version = "1.0.145"
features = ["arbitrary_precision"]

[dependencies.tarpc]
version = "0.37.0"
features = ["full"]
optional = true

[dependencies.thiserror]
version = "1.0.69"

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

[dependencies.trait-variant]
version = "0.1.2"
