-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathCargo.toml
More file actions
43 lines (38 loc) · 1.08 KB
/
Cargo.toml
File metadata and controls
43 lines (38 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[package]
name = "tonic-mock"
version = "0.4.0"
authors = ["Tyr Chen <tyr.chen@gmail.com>"]
edition = "2024"
license = "MIT"
documentation = "https://docs.rs/tonic-mock"
repository = "https://github.com/tyrchen/tonic-mock"
homepage = "https://github.com/tyrchen/tonic-mock"
description = """
Test utilities for easy mocking tonic streaming interface
"""
readme = "README.md"
categories = ["development-tools"]
keywords = ["tonic", "testing"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["test-utils"]
test-utils = ["async-stream"]
[dependencies]
async-stream = { version = "0.3", optional = true }
bytes = "1"
futures = "0.3"
http = "1"
http-body = "1"
http-body-util = "0.1.3"
prost = "0.13"
tokio = { version = "1", features = ["time", "rt-multi-thread", "macros"] }
tokio-test = "0.4.4"
tonic = "0.13"
[dev-dependencies]
criterion = { version = "0.6", features = ["async_tokio"] }
rand = "0.8"
tonic-mock = { path = ".", features = ["test-utils"] }
[[bench]]
name = "stream_bench"
harness = false
path = "bench/stream_bench.rs"