-
Notifications
You must be signed in to change notification settings - Fork 32
/
Cargo.toml
96 lines (82 loc) · 2.81 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
[package]
name = "nacos-sdk"
version = "0.4.2"
edition = "2021"
authors = ["nacos-group", "CheirshCai <[email protected]>", "onewe <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
documentation = "https://docs.rs/nacos-sdk/latest"
repository = "https://github.com/nacos-group/nacos-sdk-rust"
homepage = "https://nacos.io"
description = "Nacos client in Rust."
categories = ["network-programming", "development-tools"]
keywords = ["microservices", "config", "naming", "service-discovery", "config-management"]
exclude = [".github", "proto", "tests"]
[workspace]
members = [
"nacos-macro"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["config", "naming", "auth-by-http"]
config = []
naming = []
tls = ["reqwest/default-tls"]
auth-by-http = ["reqwest"]
auth-by-aliyun = ["ring", "base64", "chrono"]
[dependencies]
arc-swap = "1.7"
nacos-macro = { version = "0.1.1", path = "nacos-macro" }
thiserror = "1.0"
tokio = { version = "1", features = ["full"] }
futures = "0.3"
prost = "0.13"
prost-types = "0.13"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
lazy_static = "1.4"
tracing = "0.1"
local_ipaddress = "0.1.3"
rand = "0.8.5"
# now only for feature="auth-by-http"
reqwest = { version = "0.12", default-features = false, features = [], optional = true }
# only for aliyun-ram-auth
ring = { version = "0.17.8", default-features = false, optional = true }
base64 = { version = "0.22.1", default-features = false, optional = true }
chrono = { version = "0.4", features = ["now"] ,optional = true }
async-trait = "0.1"
async-stream = "0.3.5"
tonic = "0.12"
tower = { version = "0.4.13", features = ["filter", "log"] }
futures-util = "0.3.28"
want = "0.3.0"
dashmap = "5.4.0"
home = "0.5.4"
dotenvy = "0.15"
[dev-dependencies]
tracing-subscriber = { version = "0.3", features = ["default"] }
tonic-build = "0.12"
mockall = { version = "0.11" }
[[example]]
name = "simple_app"
path = "examples/simple_app.rs"
[[example]]
name = "lazy_app"
path = "examples/lazy_app.rs"