hyperlane-plugin-canary 23.4.0

A deterministic feature-flag, A/B testing, and progressive canary rollout plugin for the Hyperlane framework with XxHash3_64 basis-point sticky bucketing, header overrides, Context CanaryDecision injection, and X-Variant/Vary headers.
Documentation
<div align="center">

<img src="https://devhub.vip/pages/docs/img/hyperlane.png" alt="hyperlane-plugin-canary logo" height="120">

# hyperlane-plugin-canary

**Feature Flags, A/B Testing & Deterministic Sticky Canary Rollout Plugin**

[![Crates.io Version](https://flat.badgen.net/crates/v/hyperlane-plugin-canary)](https://crates.io/crates/hyperlane-plugin-canary)
[![Docs.rs](https://img.shields.io/docsrs/hyperlane-plugin-canary?style=flat-square)](https://docs.rs/hyperlane-plugin-canary)
[![CI Status](https://img.shields.io/github/actions/workflow/status/hyperlane-dev/hyperlane/rust.yml?branch=master&style=flat-square&label=CI)](https://github.com/hyperlane-dev/hyperlane/actions/workflows/rust.yml)
[![Rust 2024](https://img.shields.io/badge/edition-2024-orange.svg?style=flat-square)](https://www.rust-lang.org)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](../../LICENSE)

[Workspace Overview](../../README.md) · [Plugin Catalog](../README.md) · [API Docs](https://docs.rs/hyperlane-plugin-canary/latest/)

</div>

---

## Overview

`hyperlane-plugin-canary` implements deterministic progressive rollouts, feature flags, and multi-arm A/B experiments for [`hyperlane`](../../README.md) services (hook order `-88` / `-68`). It is opt-in and transparent (`Status::Continue`) when unconfigured.

## Installation

```sh
cargo add hyperlane-plugin-canary
```

## Usage

```rust
use hyperlane_plugin_canary::{CanaryConfig, CanaryPlugin};

fn setup_canary() {
    CanaryPlugin::init(CanaryConfig::default());
}
```

## Verification

```sh
cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-canary --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-canary --all-features
```

## License

This project is licensed under the MIT License. See the [LICENSE](../../LICENSE) file for details.

## Contact

For inquiries, please contact the author at [root@devhub.vip](mailto:root@devhub.vip).