Skip to main content

ark_ff/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2#![warn(
3    unused,
4    future_incompatible,
5    nonstandard_style,
6    rust_2018_idioms,
7    rust_2021_compatibility,
8    clippy::missing_const_for_fn
9)]
10#![allow(clippy::op_ref, clippy::suspicious_op_assign_impl)]
11#![deny(unsafe_code)]
12#![doc = include_str!("../README.md")]
13
14#[macro_use]
15pub mod biginteger;
16pub use biginteger::{
17    signed_mod_reduction, BigInt, BigInteger, BigInteger128, BigInteger256, BigInteger320,
18    BigInteger384, BigInteger448, BigInteger64, BigInteger768, BigInteger832,
19};
20
21#[macro_use]
22pub mod fields;
23pub use self::fields::*;
24
25pub(crate) mod bits;
26pub use bits::*;
27
28pub(crate) mod const_helpers;
29
30pub use ark_std::UniformRand;
31
32mod to_field_vec;
33pub use to_field_vec::ToConstraintField;
34
35#[doc(hidden)]
36pub use ark_ff_asm::*;
37#[doc(hidden)]
38pub use ark_std::vec;
39
40pub mod prelude {
41    pub use crate::{
42        biginteger::BigInteger,
43        fields::{Field, PrimeField},
44        One, Zero,
45    };
46    pub use ark_std::UniformRand;
47}