westyx-nexus-openfeature crate bridges Nexus to the OpenFeature Rust SDK. The provider wraps an existing client: it opens no second connection and keeps no second cache, so every resolution is an in-memory read rather than a network call.
Installation
Usage
Resolution mapping
A missing key resolves to
FlagNotFound, and a value of the wrong shape to TypeMismatch. In both cases the OpenFeature SDK returns the caller’s default.
Integers keep their precision: a config value of 9007199254740993 arrives as an i64, not a rounded float.
Evaluation context
The evaluation context is accepted and ignored today - per-user targeting is not implemented yet, matching the other Nexus OpenFeature providers. For per-user rollouts useevaluate_ab on the wrapped client, reachable through provider.client().
Provider status
status() reports Ready: the wrapped client performs its initial sync during create, so a provider that exists can serve.
