Cargo Features
nanoservices-utils has no features set by default.
[dependencies]
nanoservices-utils = { version = "0.1.8", features = ["full", "actix", "rocket", "axum", "hyper", "networking", "tcp-messaging", "wasm-messaging", "jwt", "dal", "dal-postgres"] }
- full = actix, axum, dal, hyper, jwt, networking, rocket, tcp-messaging, wasm-messaging
- actix full?
-
Enables actix-web
- 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
-
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
below is for dal
Affects
nanoservices-utils::data_access
… - dal-postgres = dal
-
Enables sqlx
Affects
data_access::sqlx_postgres
…
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.