#![no_std]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
html_root_url = "https://docs.rs/crypto-bigint/0.2.11"
)]
#![forbid(unsafe_code, clippy::unwrap_used)]
#![warn(missing_docs, rust_2018_idioms, unused_qualifications)]
#[cfg(all(feature = "alloc", test))]
extern crate alloc;
#[macro_use]
mod macros;
#[cfg(feature = "generic-array")]
mod array;
mod checked;
pub mod limb;
mod non_zero;
mod traits;
mod uint;
mod wrapping;
pub use crate::{
checked::Checked, limb::Limb, non_zero::NonZero, traits::*, uint::*, wrapping::Wrapping,
};
pub use subtle;
#[cfg(feature = "generic-array")]
pub use {
self::array::{ArrayDecoding, ArrayEncoding, ByteArray},
generic_array::{self, typenum::consts},
};
#[cfg(feature = "rlp")]
pub use rlp;
#[cfg(feature = "zeroize")]
pub use zeroize;
#[cfg(target_pointer_width = "32")]
#[deprecated(since = "0.2.2", note = "use `Limb::BYTE_SIZE` instead")]
pub const LIMB_BYTES: usize = 4;
#[cfg(target_pointer_width = "64")]
#[deprecated(since = "0.2.2", note = "use `Limb::BYTE_SIZE` instead")]
pub const LIMB_BYTES: usize = 8;