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)]
9#![allow(clippy::op_ref, clippy::suspicious_op_assign_impl)]
10#![deny(unsafe_code)]
11#![doc = include_str!("../README.md")]
12
13#[macro_use]
14extern crate ark_std;
15
16#[macro_use]
17extern crate educe;
18
19#[macro_use]
20pub mod biginteger;
21pub use biginteger::{
22    signed_mod_reduction, BigInt, BigInteger, BigInteger128, BigInteger256, BigInteger320,
23    BigInteger384, BigInteger448, BigInteger64, BigInteger768, BigInteger832,
24};
25
26#[macro_use]
27pub mod fields;
28pub use self::fields::*;
29
30pub(crate) mod bits;
31pub use bits::*;
32
33pub(crate) mod const_helpers;
34
35pub use ark_std::UniformRand;
36
37mod to_field_vec;
38pub use to_field_vec::ToConstraintField;
39
40#[doc(hidden)]
41pub use ark_ff_asm::*;
42#[doc(hidden)]
43pub use ark_std::vec;
44
45pub mod prelude {
46    pub use crate::{
47        biginteger::BigInteger,
48        fields::{Field, PrimeField},
49        One, Zero,
50    };
51    pub use ark_std::UniformRand;
52}