-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
73 lines (64 loc) · 1.87 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
[package]
name = "apisix-admin-rs"
version = "0.0.3"
description = "Apisix Admin Client"
homepage = "https://apisix.apache.org/"
authors = ["Michallis Pashidis <michallis@trust1team.com>"]
license = "Apache-2.0"
repository = "https://github.com/Trust1Team/apisix-admin-rs"
edition = "2021"
keywords = ["apisix", "gateway", "api", "microservice"]
categories = ["api-bindings"]
readme = "README.MD"
[lib]
name = "apisix_admin_client"
path = "src/lib.rs"
test = true
doc = true
edition = "2021"
crate-type = ["lib"]
[[example]]
name = "apisix-admin"
path = "examples/apisix_admin.rs"
[[example]]
name = "apisix-plugins"
path = "examples/apisix_plugins.rs"
[[example]]
name = "apisix-ctrl"
path = "examples/apisix_ctrl.rs"
[dependencies]
anyhow = "1.0.81"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
tokio = { version = "1.36.0", features = ["full"] }
tracing = "0.1.40"
#ring = "0.17.8"
reqwest = { version = "0.12.4", features = [
"json",
"rustls-tls",
] }
thiserror = "1.0.59"
serde_with = "3.8.0"
validator = { version = "0.18.1", features = ["derive"] }
rand = "0.9.0-alpha.2"
strum_macros = "0.26.4"
strum = "0.26.3"
[dev-dependencies]
serial_test = { version = "3.1.0", features = ["async"] }
serial_test_derive = "3.1.0"
tracing-test = "0.2.4"
tracing-subscriber = { version = "0.3.18", features = [
"env-filter",
"fmt",
"json",
] }
[profile.dev]
opt-level = 1 # Use slightly better optimizations.
strip = false # Automatically strip symbols from the binary.
split-debuginfo = "packed" # this feature on the dev profile is necessary to make sure we can use GDB for debugging --> will make sure it can load all symbols
[profile.release]
opt-level = "s"
strip = true
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
panic = 'abort'