mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-18 11:02:54 +00:00
- Add ebpf feature flag to Cargo.toml with default disabled - Make aya and aya-log dependencies optional and tied to ebpf feature - Add #[cfg(feature = "ebpf")] conditional compilation directives for EbpfManager imports and usage - Add feature-gated readiness check logic (ebpf_ok only checked when feature enabled) - Add feature-gated metrics_handler implementations (full version with eBPF, stub version without) - Change
32 lines
785 B
TOML
32 lines
785 B
TOML
[package]
|
|
name = "packet-gateway"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
|
|
[features]
|
|
default = []
|
|
ebpf = []
|
|
|
|
[dependencies]
|
|
aya = { version = "0.13.1", features = ["async_tokio"], optional = true }
|
|
aya-log = { version = "0.2.1", optional = true }
|
|
tokio = { workspace = true }
|
|
redis = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
dotenv = { workspace = true }
|
|
clap = { version = "4.5", features = ["derive"] }
|
|
axum = "0.8.9"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
chrono = "0.4"
|
|
reqwest = { version = "0.12", features = ["json"] }
|
|
|
|
[[bin]]
|
|
name = "packet-gateway"
|
|
path = "src/main.rs"
|