mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-20 11:54:25 +00:00
- Add reqwest dependency with json feature to Cargo.toml - Add charging_client module import and ChargingEngineClient initialization - Add --charging-engine-url CLI argument with default http://localhost:3001 - Add periodic usage reporting every 60 seconds with batch processing - Add IP-to-session-id mapping for usage events (format: session-{ip}) - Add async batch usage reporting with error logging on failure - Add last
28 lines
685 B
TOML
28 lines
685 B
TOML
[package]
|
|
name = "packet-gateway"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
aya = { workspace = true }
|
|
aya-log = { workspace = 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"
|