Skip to content

Commit

Permalink
chore: Remove unused rust dependencies
Browse files Browse the repository at this point in the history
Clean-up dependencies by removing unused ones and moving test-only ones
to dev-dependencies section

Signed-off-by: Nicolas Belouin <[email protected]>
  • Loading branch information
diconico07 committed Sep 5, 2023
1 parent 683564b commit e5fd147
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 134 deletions.
78 changes: 0 additions & 78 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 10 additions & 16 deletions agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,50 @@ rust-version = "1.68.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
akri-debug-echo = { path = "../discovery-handlers/debug-echo" }
akri-debug-echo = { path = "../discovery-handlers/debug-echo", optional = true }
akri-discovery-utils = { path = "../discovery-utils" }
akri-onvif = { path = "../discovery-handlers/onvif", optional = true }
akri-opcua = { path = "../discovery-handlers/opcua", optional = true }
akri-udev = { path = "../discovery-handlers/udev", optional = true }
akri-shared = { path = "../shared" }
akri-udev = { path = "../discovery-handlers/udev", optional = true }
anyhow = "1.0.38"
async-stream = "0.3"
async-trait = "0.1.0"
blake2 = "0.9.0"
chrono = "0.4.10"
cfg-if = "1.0.0"
env_logger = "0.10.0"
futures = { version = "0.3.1", package = "futures" }
futures-core = "0.3"
futures-util = "0.3"
hyper = "0.14.2"
h2 = "=0.3.3"
k8s-openapi = { version = "0.17.0", default-features = false, features = ["schemars", "v1_23"] }
kube = { version = "0.80.0", features = ["derive"] }
kube-runtime = "0.80.0"
k8s-openapi = { version = "0.17.0", default-features = false, features = ["schemars", "v1_23"] }
lazy_static = "1.4"
log = "0.4"
mockall_double = "0.2.0"
prometheus = { version = "0.12.0", features = ["process"] }
prost = "0.8.0"
prost-types = "0.8.0"
rand = "0.8.2"
serde = "1.0.104"
serde_json = "1.0.45"
serde_yaml = "0.8.11"
serde_derive = "1.0.104"
serde_json = "1.0.45"
serde_yaml = { version = "0.8.11", optional = true }
tokio = { version = "1.0", features = ["rt-multi-thread", "time", "fs", "macros", "net"] }
tokio-stream = { version = "0.1", features = ["net"] }
tonic = "0.5.2"
tower = "0.4.8"
url = "2.1.0"
uuid = { version = "0.8.1", features = ["v4"] }

[build-dependencies]
tonic-build = "0.5.2"

[dev-dependencies]
# for testing using a simple discovery handler
akri-debug-echo = { path = "../discovery-handlers/debug-echo" }
akri-discovery-utils = { path = "../discovery-utils", features = ["mock-discovery-handler"] }
akri-onvif = { path = "../discovery-handlers/onvif" }
akri-opcua = { path = "../discovery-handlers/opcua" }
akri-udev = { path = "../discovery-handlers/udev"}
mockall = "0.10.2"
env_logger = "0.10.0"
mock_instant = { version = "0.2", features = ["sync"] }
mockall = "0.10.2"
serde_yaml = "0.8.11"
tempfile = "3.1.0"

[features]
Expand All @@ -69,4 +63,4 @@ default = []
onvif-feat = [ "akri-onvif"]
opcua-feat = ["akri-opcua"]
udev-feat = ["akri-udev"]
agent-full = []
agent-full = ["serde_yaml", "akri-debug-echo"]
11 changes: 4 additions & 7 deletions controller/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,20 @@ rust-version = "1.68.1"

[dependencies]
akri-shared = { path = "../shared" }
anyhow = "1.0.38"
async-std = "1.5.0"
async-trait = "0.1.0"
chrono = "0.4.10"
env_logger = "0.10.0"
futures = "0.3.1"
anyhow = "1.0.38"
k8s-openapi = { version = "0.17.0", default-features = false, features = ["schemars", "v1_23"] }
kube = { version = "0.80.0", features = ["derive"] }
kube-runtime = "0.80.0"
k8s-openapi = { version = "0.17.0", default-features = false, features = ["schemars", "v1_23"] }
lazy_static = "1.4"
log = "0.4"
prometheus = { version = "0.12.0", features = ["process"] }
serde = "1.0.104"
serde_derive = "1.0.104"
serde_json = "1.0.45"
serde_yaml = "0.8.11"
tokio = { version = "1.0.2", features = ["full"] }

[dev-dependencies]
mockall = "0.10.2"
serde_json = "1.0.45"

8 changes: 3 additions & 5 deletions discovery-handlers/debug-echo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@ rust-version = "1.68.1"

[dependencies]
akri-discovery-utils = { path = "../../discovery-utils" }
anyhow = "1.0.38"
async-trait = "0.1.0"
env_logger = "0.10.0"
futures-util = "0.3"
log = "0.4"
serde = "1.0.104"
serde_json = "1.0.45"
serde_yaml = "0.8.11"
serde_derive = "1.0.104"
tokio = { version = "1.0.1", features = ["time", "net", "sync"] }
tokio-stream = { version = "0.1", features = ["net"] }
tonic = { version = "0.5.2", features = ["tls"] }

[dev-dependencies]
akri-shared = { path = "../../shared" }
anyhow = "1.0.38"
serde_json = "1.0.45"
serde_yaml = "0.8.11"
7 changes: 3 additions & 4 deletions discovery-handlers/onvif/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,17 @@ rust-version = "1.68.1"

[dependencies]
akri-discovery-utils = { path = "../../discovery-utils" }
akri-shared = { path = "../../shared" }
anyhow = "1.0.38"
async-trait = "0.1.0"
base64 = "0.13.1"
bytes = "1.0.1"
chrono = "0.4.10"
env_logger = "0.10.0"
futures-util = "0.3"
hyper = { version = "0.14.11", package = "hyper" }
log = "0.4"
serde = "1.0.104"
serde_json = "1.0.45"
serde_yaml = "0.8.11"
serde_derive = "1.0.104"
serde_json = "1.0.45"
sha1 = "0.6.1"
sxd-document = "0.3.0"
sxd-xpath = "0.4.0"
Expand All @@ -35,4 +32,6 @@ yaserde = "0.7.1"
yaserde_derive = "0.7.1"

[dev-dependencies]
env_logger = "0.10.0"
mockall = "0.10.2"

8 changes: 2 additions & 6 deletions discovery-handlers/opcua/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,11 @@ rust-version = "1.68.1"

[dependencies]
akri-discovery-utils = { path = "../../discovery-utils" }
akri-shared = { path = "../../shared" }
anyhow = "1.0.38"
async-trait = "0.1.0"
env_logger = "0.10.0"
futures-util = "0.3"
log = "0.4"
opcua = { version = "0.11.0", features = ["client"] }
prost = "0.8.0"
serde = "1.0.104"
serde_json = "1.0.45"
serde_yaml = "0.8.11"
serde_derive = "1.0.1"
tokio = { version = "1.0.2", features = ["time", "net", "sync"] }
tokio-stream = { version = "0.1", features = ["net"] }
Expand All @@ -29,3 +23,5 @@ url = "2.2.0"

[dev-dependencies]
mockall = "0.10.2"
serde_json = "1.0.45"

Loading

0 comments on commit e5fd147

Please sign in to comment.