strest 0.1.10

Blazing-fast async HTTP load tester in Rust - lock-free design, real-time stats, distributed runs, and optional chart exports for high-load API testing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::args::{Scenario, TesterArgs};
use crate::error::AppResult;

#[cfg(not(feature = "wasm"))]
use crate::error::{AppError, ScriptError};

#[cfg(feature = "wasm")]
pub(crate) fn load_scenario_from_wasm(script_path: &str, args: &TesterArgs) -> AppResult<Scenario> {
    crate::wasm_runtime::load_scenario_from_wasm(script_path, args)
}

#[cfg(not(feature = "wasm"))]
pub(crate) fn load_scenario_from_wasm(_: &str, _: &TesterArgs) -> AppResult<Scenario> {
    Err(AppError::script(ScriptError::WasmFeatureDisabled))
}