hyperlane_techempower 0.4.1

A lightweight, high-performance, and cross-platform Rust HTTP server library built on Tokio. It simplifies modern web service development by providing built-in support for middleware, WebSocket, Server-Sent Events (SSE), and raw TCP communication. With a unified and ergonomic API across Windows, Linux, and MacOS, it enables developers to build robust, scalable, and event-driven network applications with minimal overhead and maximum flexibility.
pub(crate) const RESPONSEDATA_STR: &str = "Hello, World!";
pub(crate) const RESPONSEDATA_BIN: &[u8] = b"Hello, World!";
pub(crate) const DATABASE_TYPE: &str = "postgres";
pub(crate) const DATABASE_HOST: &str = "tfb-database";
pub(crate) const DATABASE_USER_NAME: &str = "benchmarkdbuser";
pub(crate) const DATABASE_USER_PASSWORD: &str = "benchmarkdbpass";
pub(crate) const DATABASE_PORT: usize = 5_432;
pub(crate) const DATABASE_NAME: &str = "hello_world";
pub(crate) const TABLE_NAME_WORLD: &str = "World";
pub(crate) const TABLE_NAME_FORTUNE: &str = "Fortune";
pub(crate) const ROW_LIMIT: i32 = 500;
pub(crate) const RANDOM_MAX: i32 = 10_000;
pub(crate) const RANDOM_MAX_ADD_ONE: u32 = 10_001;
pub(crate) const KEY_ID: &str = "id";
pub(crate) const KEY_RANDOM_NUMBER: &str = "randomnumber";
pub(crate) const KEY_MESSAGE: &str = "message";
pub(crate) const DB_MAX_CONNECTIONS: u32 = 100;
pub(crate) const QUERY_DB_QUERY_KEY: &str = "q";
pub(crate) const UPDATE_DB_QUERY_KEY: &str = "q";
pub(crate) const CACHE_QUERY_KEY: &str = "c";