generated from aetheric-oss/svc-template-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
51 lines (43 loc) · 1.46 KB
/
Cargo.toml
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
44
45
46
47
48
49
50
51
[package]
description = "Arrow devops-test service gRPC client"
keywords = ["vtol", "client", "grpc", "devops-test"] # max 5
name = "svc-devops-test-client-grpc"
version = "0.1.4"
authors.workspace = true
categories.workspace = true
edition.workspace = true
homepage.workspace = true
license-file.workspace = true
repository.workspace = true
[features]
dev = ["mock", "tokio"]
test_util = ["mock", "stub_backends", "tokio"]
# Will add a 'mock' module for the enabled resources, providing access to mock data generation functions
mock = []
# Will use a stubbed server connection, only use for tests!
stub_backends = ["svc-devops-test/stub_server", "lib-common/grpc_mock", "tower"]
# Will implement stub functions for the client, only use for tests!
stub_client = ["svc-devops-test"]
[dependencies]
cfg-if = "1.0"
log = { version = "0.4" }
prost = "0.12"
svc-devops-test = { path = "../server", optional = true }
tonic = "0.10"
tower = { version = "0.4", optional = true }
[dependencies.lib-common]
features = ["grpc"]
git = "https://github.com/Arrow-air/lib-common.git"
tag = "latest-develop"
[dependencies.tokio]
features = ["macros", "rt-multi-thread"]
optional = true
version = "1.33"
[dev-dependencies]
logtest = "2.0"
# Make sure we enable the required modules for testing
[dev-dependencies.svc-devops-test-client-grpc]
features = ["dev"]
path = "."
[[example]]
name = "grpc"