Cargo Features

Ohkami has no features set by default.

[dependencies]
ohkami = { version = "0.22.0", features = ["rt_tokio", "rt_async-std", "rt_smol", "rt_nio", "rt_glommio", "rt_worker", "rt_lambda", "nightly", "openapi", "sse", "ws", "DEBUG"] }
rt_tokio = __rt_native__

Enables rt_tokio of optional mews and io-util, net, rt and time of tokio

runtimes

rt_async-std = __rt_native__

Enables async-std, io of futures-util, rt_async-std of optional mews

rt_smol = __rt_native__

Enables smol, io of futures-util, rt_smol of optional mews

rt_nio = __rt_native__

Enables nio, io-util of tokio, rt_nio of optional mews

rt_glommio = __rt_native__

Enables glommio, num_cpus, io of futures-util, rt_glommio of optional mews

rt_worker = __rt__

Enables worker of ohkami_macros, d1 and queue of worker

Affects util::unix_timestamp

rt_lambda = __rt__

Enables lambda_runtime, rt of tokio and stream of ohkami_lib

workspace members

nightly
openapi

Enables ohkami_openapi, openapi of ohkami_macros

Affects middleware::Fangs.openapi_map_operation, util::FangAction.openapi_map_operation, fang::Fang.openapi_map_operation, ohkami::openapi, from_request::FromRequest.openapi_inbound, from_request::FromParam.openapi_param, from_request::FromBody.openapi_requestbody, into_response::IntoResponse.openapi_responses, into_response::IntoBody.openapi_responsebody

sse

Enables stream of ohkami_lib

Affects ohkami::sse

ws

Enables mews, stream of ohkami_lib

Affects ohkami::ws

__rt__ __rt_native__? 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_native__ rt_async-std? rt_glommio? rt_nio? rt_smol? rt_tokio? = __rt__

Enables ctrlc

optional

Affects util::timeout_in