Cargo Features

Ohkami has no features set by default.

[dependencies]
ohkami = { version = "0.24.3", features = ["rt_tokio", "rt_smol", "rt_nio", "rt_glommio", "rt_monoio", "rt_compio", "rt_worker", "rt_lambda", "nightly", "openapi", "sse", "ws", "tls", "DEBUG"] }
rt_tokio = __rt_native__, __rt_threaded__

Enables io_tokio of optional anysc-rustls and optional mews and io-util, net, rt and time of tokio

runtimes

rt_smol = __rt_native__, __rt_threaded__

Enables smol, io of futures-util, io_futures of optional anysc-rustls, io_futures of optional mews

rt_nio = __rt_native__, __rt_threaded__

Enables nio, io-util of tokio, io_tokio of optional anysc-rustls and optional mews

rt_glommio = __rt_native__

Enables glommio, io of futures-util, io_futures of optional anysc-rustls, io_futures of optional mews

rt_monoio = __rt_native__

Enables monoio and monoio-compat, io-util of tokio and io_tokio of optional anysc-rustls and optional mews

anysc-rustls:

async IO interfaces

rt_compio = __rt_native__

Enables compio, io of futures-util, io_futures of optional anysc-rustls, io_futures of optional mews

rt_worker = __rt__

Enables worker of ohkami_macros, d1 and queue of worker

Affects util::unix_timestamp

rt_lambda = __rt__, __rt_threaded__

Enables lambda_runtime, rt of tokio and stream of ohkami_lib

workspace members

nightly
openapi

Enables ohkami_openapi, openapi of ohkami_macros

Affects content::FromContent.openapi_requestbody, content::IntoContent.openapi_responsebody, param::FromParam.openapi_param, middleware::Fangs.openapi_map_operation, util::FangAction.openapi_map_operation, fang::Fang.openapi_map_operation, ohkami::openapi, from_request::FromRequest.openapi_inbound, into_response::IntoResponse.openapi_responses

sse

Enables stream of ohkami_lib

Affects ohkami::sse

ws

Enables mews, bilock, io and unstable of futures-util, stream of ohkami_lib

Affects ohkami::ws, config::Config.websocket_timeout

tls

Enables anysc-rustls and rustls

__rt__ __rt_native__? __rt_threaded__? rt_lambda? rt_worker?

internal

Affects ohkami::testing, ohkami::openapi.OpenAPI, request::Request.ip

DEBUG

Enables macros and rt-multi-thread of optional tokio

__rt_threaded__ rt_lambda? rt_nio? rt_smol? rt_tokio? = __rt__

Affects util::FangAction.fore, util::FangAction.back, fang::FangProc.bite

__rt_native__ rt_compio? rt_glommio? rt_monoio? rt_nio? rt_smol? rt_tokio? = __rt__

Enables ctrlc and mime_guess

mime_guess:

optional

Affects config::Config.request_bufsize, config::Config.request_payload_limit, config::Config.keepalive_timeout, util::with_timeout, config::Config.websocket_timeout