#![allow(unused_doc_comments)]
#![cfg_attr(fmt, rustfmt::skip)]
#![cfg_attr(doc, feature(doc_auto_cfg))]
#![cfg_attr(doc, feature(doc_cfg))]
#![allow(clippy::bool_assert_comparison)]
#![allow(clippy::assign_op_pattern)]
#![allow(clippy::eq_op)]
#![allow(clippy::assign_op_pattern)]
pub use config::{ConfigBuilder, Config};
pub use global_state::set_server_key;
pub use keys::{generate_keys, ClientKey, ServerKey};
pub use errors::OutOfRangeError;
#[cfg(feature = "serde")]
pub use keycache::KeyCacher;
#[cfg(feature = "booleans")]
pub use crate::booleans::{DynFheBool, DynFheBoolEncryptor};
#[cfg(feature = "booleans")]
pub use booleans::{if_then_else, FheBool, FheBoolParameters};
#[cfg(feature = "shortints")]
pub use crate::shortints::{
FheUint2, FheUint2Parameters, FheUint3, FheUint3Parameters, FheUint4, FheUint4Parameters,
GenericShortInt,
};
#[cfg(feature = "integers")]
pub use crate::integers::{
DynInteger, DynIntegerEncryptor, DynIntegerParameters,
FheUint8, FheUint12, FheUint16, GenericInteger, RadixParameters, CrtParameters
};
#[cfg(feature = "shortints")]
pub use crate::shortints::{DynShortInt, DynShortIntEncryptor, DynShortIntParameters};
#[macro_use]
mod global_state;
#[macro_use]
mod keys;
mod config;
mod traits;
pub mod prelude;
pub mod errors;
#[cfg(feature = "serde")]
mod keycache;
#[cfg(feature = "booleans")]
mod booleans;
#[cfg(feature = "shortints")]
mod shortints;
#[cfg(feature = "integers")]
mod integers;
#[cfg(feature = "experimental_syntax_sugar")]
mod syntax_sugar;
pub mod parameters {
#[cfg(feature = "booleans")]
pub use concrete_boolean::parameters::{
DecompositionBaseLog, DecompositionLevelCount, GlweDimension, LweDimension, PolynomialSize,
StandardDev,
};
#[cfg(feature = "shortints")]
pub use concrete_shortint::parameters::{CarryModulus, MessageModulus};
#[cfg(all(feature = "shortints", not(feature = "booleans")))]
pub use concrete_shortint::parameters::{
DecompositionBaseLog, DecompositionLevelCount, DispersionParameter, GlweDimension,
LweDimension, PolynomialSize, StandardDev,
};
}
#[cfg(all(
doctest,
feature = "integers",
feature = "shortints",
feature = "booleans"
))]
mod user_doc_tests;