# Copyright © 2016–2024 Trevor Spiteri # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty provided the copyright notice and this # notice are preserved. This file is offered as-is, without any warranty. [package] name = "rug" version = "1.26.1" categories = ["api-bindings", "mathematics"] description = """ Arbitrary-precision integers, rational, floating-point and complex numbers based on GMP, MPFR and MPC.""" documentation = "https://docs.rs/rug" edition = "2021" keywords = ["bignum", "gmp", "math", "numerics"] license = "LGPL-3.0+" readme = "README.md" repository = "https://gitlab.com/tspiteri/rug" rust-version = "1.65" [dependencies] az = "1.1" gmp-mpfr-sys = { default-features = false, optional = true, version = "~1.6" } libc = { default-features = false, version = "0.2.44" } libm = "0.2" serde = { optional = true, version = "1.0.25" } [dependencies.num-integer] default-features = false features = ["i128"] optional = true version = "0.1.45" [dependencies.num-traits] default-features = false features = ["i128", "std"] optional = true version = "0.2.15" [dev-dependencies] bincode = "1" byteorder = "1" serde_json = "1" serde_test = "1" [features] complex = ["float", "gmp-mpfr-sys/mpc"] default = ["complex", "float", "integer", "rand", "rational", "std"] float = ["gmp-mpfr-sys/mpfr"] integer = ["gmp-mpfr-sys"] rand = ["integer"] rational = ["integer"] serde = ["dep:serde", "std"] std = [] # experimental features nightly-float = [] num-traits = ["dep:num-traits", "num-integer"] # undocumented features fail-on-warnings = [] gmp-mpfr-sys = ["dep:gmp-mpfr-sys"] num-integer = ["dep:num-integer"] [package.metadata.docs.rs] features = ["num-traits", "serde"]