Cargo Features

nanoservices-utils has no features set by default.

[dependencies]
nanoservices-utils = { version = "0.2.1", features = ["full", "actix", "rocket", "axum", "hyper", "networking", "tcp-messaging", "wasm-messaging", "jwt", "dal", "dal-postgres", "tokio-pub-sub", "code-gen"] }
full = actix, axum, code-gen, dal, hyper, jwt, networking, rocket, tcp-messaging, tokio-pub-sub, wasm-messaging
actix full?

Enables actix-web

optional dependencies for web frameworks

rocket full?

Enables rocket

axum full?

Enables axum

hyper full?

Enables http-body-util, hyper, and serde_json

networking full? tcp-messaging? wasm-messaging?

Enables bincode, bytes, and tokio-util

Affects nanoservices-utils::networking

tcp-messaging full? = networking

Enables full of tokio

tokio:

enable everything

Affects networking::tcp

wasm-messaging full? = networking

Enables io-util, macros, rt, sync and time of tokio

Affects networking::wasm

jwt full?

Enables jsonwebtoken

Affects nanoservices-utils::jwt

dal dal-postgres? full?

Enables nan-serve-dal-tx-impl

optional dependencies data access layer traits

Affects nanoservices-utils::data_access

dal-postgres = dal

Enables sqlx

Affects data_access::sqlx_postgres

tokio-pub-sub full?

Enables bincode, ctor, nan-serve-event-subscriber, and nan-serve-publish-event

ctor:

optional dependenices for tokio pub sub event based programming

Affects nanoservices-utils::tokio_pub_sub

code-gen full?

Enables schemars and serde_json

schemars:

bincode is also optional for the event adapter

optional dependencies for code generation

Affects nanoservices-utils::code_gen

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tokio tcp-messaging? wasm-messaging?