mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-08 04:21:03 +01:00
In general, it should be possible to use, or at least import all functionality of a library, when having only that library in your cargo.toml.
94 lines
2.6 KiB
TOML
94 lines
2.6 KiB
TOML
[package]
|
|
name = "tarpc"
|
|
version = "0.26.2"
|
|
authors = ["Adam Wright <adam.austin.wright@gmail.com>", "Tim Kuehn <timothy.j.kuehn@gmail.com>"]
|
|
edition = "2018"
|
|
license = "MIT"
|
|
documentation = "https://docs.rs/tarpc"
|
|
homepage = "https://github.com/google/tarpc"
|
|
repository = "https://github.com/google/tarpc"
|
|
keywords = ["rpc", "network", "server", "api", "microservices"]
|
|
categories = ["asynchronous", "network-programming"]
|
|
readme = "../README.md"
|
|
description = "An RPC framework for Rust with a focus on ease of use."
|
|
|
|
[features]
|
|
default = []
|
|
|
|
serde1 = ["tarpc-plugins/serde1", "serde", "serde/derive"]
|
|
tokio1 = ["tokio/rt-multi-thread"]
|
|
serde-transport = ["serde1", "tokio1", "tokio-serde", "tokio-util/codec"]
|
|
serde-transport-json = ["tokio-serde/json"]
|
|
tcp = ["tokio/net"]
|
|
|
|
full = ["serde1", "tokio1", "serde-transport", "serde-transport-json", "tcp"]
|
|
|
|
[badges]
|
|
travis-ci = { repository = "google/tarpc" }
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
fnv = "1.0"
|
|
futures = "0.3"
|
|
humantime = "2.0"
|
|
pin-project = "1.0"
|
|
rand = "0.8"
|
|
serde = { optional = true, version = "1.0", features = ["derive"] }
|
|
static_assertions = "1.1.0"
|
|
tarpc-plugins = { path = "../plugins", version = "0.11" }
|
|
thiserror = "1.0"
|
|
tokio = { version = "1", features = ["time"] }
|
|
tokio-util = { version = "0.6.3", features = ["time"] }
|
|
tokio-serde = { optional = true, version = "0.8" }
|
|
tracing = { version = "0.1", default-features = false, features = ["attributes", "log"] }
|
|
tracing-opentelemetry = { version = "0.12", default-features = false }
|
|
opentelemetry = { version = "0.13", default-features = false }
|
|
|
|
|
|
[dev-dependencies]
|
|
assert_matches = "1.4"
|
|
bincode = "1.3"
|
|
bytes = { version = "1", features = ["serde"] }
|
|
flate2 = "1.0"
|
|
futures-test = "0.3"
|
|
opentelemetry = { version = "0.13", default-features = false, features = ["rt-tokio"] }
|
|
opentelemetry-jaeger = { version = "0.12", features = ["tokio"] }
|
|
pin-utils = "0.1.0-alpha"
|
|
serde_bytes = "0.11"
|
|
tracing-subscriber = "0.2"
|
|
tokio = { version = "1", features = ["full", "test-util"] }
|
|
tokio-serde = { version = "0.8", features = ["json", "bincode"] }
|
|
trybuild = "1.0"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[[example]]
|
|
name = "compression"
|
|
required-features = ["serde-transport", "tcp"]
|
|
|
|
[[example]]
|
|
name = "tracing"
|
|
required-features = ["full"]
|
|
|
|
[[example]]
|
|
name = "readme"
|
|
required-features = ["full"]
|
|
|
|
[[example]]
|
|
name = "pubsub"
|
|
required-features = ["full"]
|
|
|
|
[[example]]
|
|
name = "custom_transport"
|
|
required-features = ["serde1", "tokio1", "serde-transport"]
|
|
|
|
[[test]]
|
|
name = "service_functional"
|
|
required-features = ["serde-transport"]
|
|
|
|
[[test]]
|
|
name = "dataservice"
|
|
required-features = ["serde-transport", "tcp"]
|