refactor(workspace): enforce layered crate boundaries

This commit is contained in:
elky
2026-07-15 23:47:19 +08:00
parent a728c090a9
commit 8616fe6ee2
969 changed files with 40187 additions and 27240 deletions
@@ -0,0 +1,28 @@
//! Standalone load and benchmark tooling.
//!
//! This crate intentionally has no dependency on gateway internals or the
//! integration test harness, so ordinary load-tool builds remain lightweight.
mod http;
mod load;
mod metrics;
mod runtime;
pub use aether_test_support::ManagedRedisServer;
pub use http::{json_body, test_http_client, test_http_client_config};
pub use load::{
run_http_load_probe, run_multi_url_http_load_probe, HttpLoadProbeConfig,
HttpLoadProbeErrorSample, HttpLoadProbeResponseMode, HttpLoadProbeResult,
HttpLoadProbeStatusSample, MultiUrlHttpLoadProbeResult,
};
pub use metrics::{
fetch_prometheus_samples, find_metric_value_u64, parse_prometheus_samples, PrometheusSample,
};
pub use runtime::{BenchmarkRuntimeSampler, BenchmarkRuntimeSnapshot};
pub fn init_load_runtime_for(service_name: &'static str) {
let _ = aether_runtime::init_service_runtime(
aether_runtime::ServiceRuntimeConfig::new(service_name, "aether_loadtools=debug")
.with_metrics_namespace("aether_loadtools"),
);
}