Cargo Features

[dependencies]
ohkami = { version = "0.20.0", default-features = false, features = ["rt_tokio", "rt_async-std", "rt_smol", "rt_glommio", "rt_worker", "nightly", "sse", "ws", "graceful", "ip", "testing", "DEBUG"] }
default = testing

The testing feature is set by default whenever ohkami is added without default-features = false somewhere in the dependency tree.

rt_tokio = __rt__, __rt_native__

Enables tokio

Affects connection::split

rt_async-std = __rt__, __rt_native__

Enables async-std

rt_smol = __rt__, __rt_native__

Enables futures-util and smol

rt_glommio = __rt__, __rt_native__

Enables futures-util, glommio, and num_cpus

rt_worker = __rt__

Enables worker ^0.3, worker of ohkami_macros

Affects ohkami::utils.unix_timestamp

nightly
sse

Enables stream of ohkami_lib

ws

Enables sha1

Affects ohkami::ws

graceful

Enables macros, signal and sync of optional tokio

ip

Affects ohkami::utils.IP_0000, request::Request.addr

testing default

Affects ohkami::testing

__rt__ rt_async-std? rt_glommio? rt_smol? rt_tokio? rt_worker?

internal

Affects ohkami::testing

DEBUG

Enables attributes of optional async-std, macros and rt-multi-thread of optional tokio

__rt_native__ rt_async-std? rt_glommio? rt_smol? rt_tokio?

Affects ohkami::utils.timeout_in, ohkami::ws