Cargo Features

pywatt_sdk has no features set by default.

[dependencies]
pywatt_sdk = { version = "0.2.0", features = ["proc_macros", "router_ext", "metrics", "discover_endpoints", "builder", "jwt_auth", "secret_client_logging", "macros", "clap"] }
proc_macros macros? = proc-macro2, quote, syn

Feature for enabling the proc-macro functionality (renamed from 'macros')

Affects pywatt_sdk::pywatt_macros, pywatt_macros::proc_macro_impl

router_ext metrics?

Existing features

Affects ext::RouterExt

metrics = prometheus, router_ext

Added dep:metrics

Enables metrics ^0.21

Optional, tied to 'metrics' feature

Affects error::MetricsError, ext::RouterExt.with_prometheus_metrics

discover_endpoints

Affects router_discovery::announce_from_router

builder

Affects builder::AppStateBuilder

jwt_auth = jsonwebtoken, tower

Affects pywatt_sdk::jwt_auth

secret_client_logging

Secret client needs stdout logging feature? Let's assume yes for now.

macros = proc_macros

NOTE: pywatt_macros crate itself is no longer listed as optional dependency. Its functionality is enabled via the proc_macros feature flag. The macros feature name is kept for compatibility if needed, pointing to the new feature.

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.

prometheus metrics?

Enables prometheus ^0.13

Used by metrics feature

jsonwebtoken jwt_auth?

Enables jsonwebtoken ^8.1

Used by jwt_auth feature

tower jwt_auth?

Enables tower

Used by jwt_auth feature

clap implicit feature

Enables clap

Optional, likely only needed for examples/tests now

proc-macro2 proc_macros?

Enables proc-macro2

Proc-macro dependencies moved from pywatt_macros (conditional)

quote proc_macros?
syn proc_macros?