open_feature/
lib.rs

1//! This is the official Rust package for OpenFeature.
2//! Check OpenFeature website for the background.
3//! Check its README for examples.
4
5#![warn(missing_docs)]
6#![warn(clippy::pedantic)]
7#![allow(clippy::doc_markdown)]
8#![allow(clippy::missing_errors_doc)]
9#![allow(clippy::missing_panics_doc)]
10#![allow(clippy::module_inception)]
11#![allow(clippy::module_name_repetitions)]
12#![allow(clippy::must_use_candidate)]
13#![allow(clippy::struct_excessive_bools)]
14#![allow(clippy::too_many_lines)]
15
16/// The OpenFeature API and client.
17mod api;
18pub use api::*;
19
20/// Evaluation related.
21mod evaluation;
22pub use evaluation::*;
23
24/// Hooks related.
25mod hooks;
26pub use hooks::*;
27
28/// Feature provider related.
29pub mod provider;
30pub use async_trait::async_trait;
31
32/// Optional support for [`serde_json::Value`].
33#[cfg(feature = "serde_json")]
34pub mod serde_json;