Cargo Features

lumina-utils has no features set by default.

[dependencies]
lumina-utils = { version = "0.4.0", features = ["executor", "token", "time", "make-object", "test-utils", "tonic-tls-native-roots-except-wasm32", "tonic-tls-webpki-roots-except-wasm32"] }
executor = token

Enables send_wrapper, tokio-util, wasm-bindgen, and wasm-bindgen-futures and rt of tokio

tokio:

Includes basic task execution capabilities

Affects lumina-utils::executor

token executor?

Enables tokio-util

Affects lumina-utils::token

time

Enables web-time, futures, gloo-timers, pin-project, and send_wrapper, time of tokio

Affects lumina-utils::time

make-object

Enables js-sys

test-utils

Enables wasm-bindgen-test, macros of tokio

tonic-tls-native-roots-except-wasm32

Workaround is required, because we want to pass through tls-*-roots feature flags to tonic, to allow tls root configuration, but setting any of these flags breaks the wasm32 build (tonic pulls incompatible deps). It works by passing the flags though this crate, which has tonic as dependency only for non-wasm32 targets. This effectively emulates missing [target.'cfg(not(target = "wasm32"))'.features] functionality.

Enables tls-native-roots of tonic ^0.13

tonic-tls-webpki-roots-except-wasm32

Enables tls-webpki-roots of tonic ^0.13