Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
187 changes: 101 additions & 86 deletions Cargo.lock

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

13 changes: 5 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ authors = ["ben <ben.uzh@proton.me>"]
[features]
default = ["python"]
python = ["dep:pyo3"]
ebpf = ["dep:aya", "dep:aya-log"]
ebpf = ["dep:aya", "dep:aya-log", "dep:bytes"]

[dependencies]
sysinfo = { version = "0.35.2" }
Expand All @@ -31,15 +31,18 @@ ctrlc = "3.4"
crossterm = "0.29"
log = "0.4"
tabled = "0.16"
env_logger = "0.11"
lazy_static = "1.4.0"

# Add libc for sysconf and procfs for process information on Linux
[target.'cfg(target_os = "linux")'.dependencies]
libc = "0.2"
procfs = "0.17"

# eBPF dependencies (optional)
aya = { version = "0.12.0", optional = true }
aya = { version = "0.13.1", optional = true }
aya-log = { version = "0.2", optional = true }
bytes = { version = "1.4", optional = true }

[lib]
# Only build cdylib when python feature is enabled
Expand All @@ -49,12 +52,6 @@ crate-type = ["rlib", "cdylib"]
name = "denet"
path = "src/bin/denet.rs"

# Make the ebpf_diag binary only available when the ebpf feature is enabled
[[bin]]
name = "ebpf_diag"
path = "src/bin/ebpf_diag.rs"
required-features = ["ebpf"]

[dev-dependencies]
once_cell = "1.21"
tempfile = "3.0"
Loading