feat(math): add support for some math functions (#483)

This commit is contained in:
Andrew Westberg 2024-08-01 22:35:18 +00:00 committed by GitHub
parent 46dff24c3e
commit 0f8cafdaa0
9 changed files with 201959 additions and 31 deletions

View file

@ -1 +1,14 @@
pub mod math;
// Ensure only one of `gmp` or `num` is enabled, not both.
#[cfg(all(feature = "gmp", feature = "num"))]
compile_error!("Features `gmp` and `num` are mutually exclusive.");
#[cfg(all(not(feature = "gmp"), not(feature = "num")))]
compile_error!("One of the features `gmp` or `num` must be enabled.");
#[cfg(feature = "gmp")]
pub mod math_gmp;
#[cfg(feature = "num")]
pub mod math_num;