Skip to content

Commit

Permalink
build: Clean up Cargo.toml
Browse files Browse the repository at this point in the history
This changes Cargo.toml to pull in only necessary dependencies (e.g.,
tokio) and also makes it possible to build sub-crates individually.

Signed-off-by: Daiki Ueno <[email protected]>
  • Loading branch information
ueno committed Jun 28, 2023
1 parent 35aa5b5 commit 59b2d1c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 53 deletions.
40 changes: 0 additions & 40 deletions Cargo.lock

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

12 changes: 6 additions & 6 deletions agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ default = ["tokio-uring"]
[dependencies]
anyhow = "1.0"
bytes = "1.2"
clap = { version = "4", features=["cargo", "derive"] }
clap = { version = "4", features = ["cargo", "derive"] }
crypto-auditing = { path = "../crypto-auditing" }
futures = "0.3"
libbpf-rs = { version = "0.20", features=["novendor"] }
libbpf-rs = { version = "0.20", features = ["novendor"] }
libc = "0.2"
nix = "0.26"
openssl = "0.10"
page_size = "0.5"
serde = "1.0"
serde_cbor = "0.10"
time = { version = "0.3", features=["formatting", "local-offset", "macros"] }
tokio = { version = "1.23", features=["full"] }
time = { version = "0.3", features = ["formatting", "local-offset", "macros"] }
tokio = { version = "1.23", features = ["io-util", "signal"] }
tokio-uring = { version = "0.4", optional = true }
toml = "0.6"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features=["env-filter"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

[build-dependencies]
libbpf-cargo = { version = "0.20", features=["novendor"] }
libbpf-cargo = { version = "0.20", features = ["novendor"] }
6 changes: 3 additions & 3 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ authors = ["The crypto-auditing developers"]

[dependencies]
anyhow = "1.0"
clap = { version = "4", features=["derive"] }
clap = { version = "4", features = ["cargo", "derive"] }
crypto-auditing = { path = "../crypto-auditing" }
futures = "0.3"
serde_cbor = "0.10"
serde_json = "1.0"
tokio = "1.23"
tokio = { version = "1.23", features = ["macros", "rt-multi-thread", "signal"] }
toml = "0.6"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features=["env-filter"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
8 changes: 4 additions & 4 deletions event-broker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ default = ["libsystemd"]

[dependencies]
anyhow = "1.0"
clap = { version = "4", features = ["derive"] }
clap = { version = "4", features = ["cargo", "derive"] }
crypto-auditing = { path = "../crypto-auditing" }
futures = "0.3"
inotify = "0.10"
libsystemd = { version = "0.6", optional = true }
serde_cbor = "0.10"
tarpc = { version = "0.33", features = ["serde-transport", "unix"] }
tokio = "1.23"
tokio-serde = { version = "0.8", features=["cbor"] }
tokio = { version = "1.23", features = ["macros", "rt-multi-thread"] }
tokio-serde = { version = "0.8", features = ["cbor"] }
tokio-stream = "0.1"
toml = "0.6"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features=["env-filter"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

0 comments on commit 59b2d1c

Please sign in to comment.