-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
44 lines (38 loc) · 1.31 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
[package]
name = "bucket-api"
version = "0.0.0"
rust-version = "1.80"
edition = "2021"
[features]
default = ["server-api", "client-api", "all_api"]
client-api = []
server-api = []
all_api = ["metrics", "storage", "share", "webhook", "search", "engine", "account", "region"]
# API for getting the metrics using operntelemetry over ptotobuf.
metrics = ["opentelemetry-proto"]
storage = []
share = []
webhook = []
search = []
region = []
engine = []
account = []
[dependencies]
tonic-health = {version = "*", default-features = false, features = []}
tonic-web = {version = "*", default-features = false, features = []}
prost = {version = "*"}
prost-types = {version = "*"}
opentelemetry-proto = { version = "0.27.0", optional = true, features = ["gen-tonic-messages"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
tonic-web-wasm-client = { version = "*", features = []}
tonic = { version = "0.12.1", default-features = false, features = [
"prost",
"codegen",
] }
wasm-bindgen = "*"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tonic = {version = "*", features = ["prost", "codegen", "transport"], default-features = false}
tokio = { version = "*" , features = ["rt-multi-thread", "macros"]}
[build-dependencies]
prost = {version = "*"}
tonic-build = {version = "*", default-features = false, features = ["prost"]}