# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "decmathlib-rs" version = "0.3.3" authors = ["Carlos Guzmán Álvarez"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Port of the Intel Decimal Floating-Point Math Library decimal128 type to Rust." readme = "README.md" license = "MIT" repository = "https://github.com/carlosga/decmathlib-rs" [profile.bench] opt-level = 3 lto = true codegen-units = 1 [profile.dev] overflow-checks = false [profile.profiling] debug = 2 inherits = "release" [profile.release] opt-level = 3 lto = true codegen-units = 1 [lib] name = "decmathlib_rs" path = "src/lib.rs" [[test]] name = "bid128_abs" path = "tests/bid128_abs.rs" [[test]] name = "bid128_add" path = "tests/bid128_add.rs" [[test]] name = "bid128_class" path = "tests/bid128_class.rs" [[test]] name = "bid128_copy" path = "tests/bid128_copy.rs" [[test]] name = "bid128_copy_sign" path = "tests/bid128_copy_sign.rs" [[test]] name = "bid128_div" path = "tests/bid128_div.rs" [[test]] name = "bid128_fdim" path = "tests/bid128_fdim.rs" [[test]] name = "bid128_fma" path = "tests/bid128_fma.rs" [[test]] name = "bid128_fmod" path = "tests/bid128_fmod.rs" [[test]] name = "bid128_frexp" path = "tests/bid128_frexp.rs" [[test]] name = "bid128_from_int64" path = "tests/bid128_from_int64.rs" [[test]] name = "bid128_from_string" path = "tests/bid128_from_string.rs" [[test]] name = "bid128_from_uint64" path = "tests/bid128_from_uint64.rs" [[test]] name = "bid128_ilogb" path = "tests/bid128_ilogb.rs" [[test]] name = "bid128_inf" path = "tests/bid128_inf.rs" [[test]] name = "bid128_is_canonical" path = "tests/bid128_is_canonical.rs" [[test]] name = "bid128_is_finite" path = "tests/bid128_is_finite.rs" [[test]] name = "bid128_is_inf" path = "tests/bid128_is_inf.rs" [[test]] name = "bid128_is_nan" path = "tests/bid128_is_nan.rs" [[test]] name = "bid128_is_normal" path = "tests/bid128_is_normal.rs" [[test]] name = "bid128_is_signaling" path = "tests/bid128_is_signaling.rs" [[test]] name = "bid128_is_signed" path = "tests/bid128_is_signed.rs" [[test]] name = "bid128_is_subnormal" path = "tests/bid128_is_subnormal.rs" [[test]] name = "bid128_is_zero" path = "tests/bid128_is_zero.rs" [[test]] name = "bid128_ldexp" path = "tests/bid128_ldexp.rs" [[test]] name = "bid128_llquantexp" path = "tests/bid128_llquantexp.rs" [[test]] name = "bid128_llrint" path = "tests/bid128_llrint.rs" [[test]] name = "bid128_llround" path = "tests/bid128_llround.rs" [[test]] name = "bid128_logb" path = "tests/bid128_logb.rs" [[test]] name = "bid128_lrint" path = "tests/bid128_lrint.rs" [[test]] name = "bid128_lround" path = "tests/bid128_lround.rs" [[test]] name = "bid128_maxnum" path = "tests/bid128_maxnum.rs" [[test]] name = "bid128_maxnum_mag" path = "tests/bid128_maxnum_mag.rs" [[test]] name = "bid128_minnum" path = "tests/bid128_minnum.rs" [[test]] name = "bid128_minnum_mag" path = "tests/bid128_minnum_mag.rs" [[test]] name = "bid128_modf" path = "tests/bid128_modf.rs" [[test]] name = "bid128_mul" path = "tests/bid128_mul.rs" [[test]] name = "bid128_nan" path = "tests/bid128_nan.rs" [[test]] name = "bid128_nearbyint" path = "tests/bid128_nearbyint.rs" [[test]] name = "bid128_negate" path = "tests/bid128_negate.rs" [[test]] name = "bid128_nextafter" path = "tests/bid128_nextafter.rs" [[test]] name = "bid128_nextdown" path = "tests/bid128_nextdown.rs" [[test]] name = "bid128_nexttoward" path = "tests/bid128_nexttoward.rs" [[test]] name = "bid128_nextup" path = "tests/bid128_nextup.rs" [[test]] name = "bid128_quantexp" path = "tests/bid128_quantexp.rs" [[test]] name = "bid128_quantize" path = "tests/bid128_quantize.rs" [[test]] name = "bid128_quantum" path = "tests/bid128_quantum.rs" [[test]] name = "bid128_quiet_equal" path = "tests/bid128_quiet_equal.rs" [[test]] name = "bid128_quiet_greater" path = "tests/bid128_quiet_greater.rs" [[test]] name = "bid128_quiet_greater_equal" path = "tests/bid128_quiet_greater_equal.rs" [[test]] name = "bid128_quiet_greater_unordered" path = "tests/bid128_quiet_greater_unordered.rs" [[test]] name = "bid128_quiet_less" path = "tests/bid128_quiet_less.rs" [[test]] name = "bid128_quiet_less_equal" path = "tests/bid128_quiet_less_equal.rs" [[test]] name = "bid128_quiet_less_unordered" path = "tests/bid128_quiet_less_unordered.rs" [[test]] name = "bid128_quiet_not_equal" path = "tests/bid128_quiet_not_equal.rs" [[test]] name = "bid128_quiet_not_greater" path = "tests/bid128_quiet_not_greater.rs" [[test]] name = "bid128_quiet_not_less" path = "tests/bid128_quiet_not_less.rs" [[test]] name = "bid128_quiet_ordered" path = "tests/bid128_quiet_ordered.rs" [[test]] name = "bid128_quiet_unordered" path = "tests/bid128_quiet_unordered.rs" [[test]] name = "bid128_rem" path = "tests/bid128_rem.rs" [[test]] name = "bid128_round_integral_exact" path = "tests/bid128_round_integral_exact.rs" [[test]] name = "bid128_round_integral_nearest_away" path = "tests/bid128_round_integral_nearest_away.rs" [[test]] name = "bid128_round_integral_nearest_even" path = "tests/bid128_round_integral_nearest_even.rs" [[test]] name = "bid128_round_integral_negative" path = "tests/bid128_round_integral_negative.rs" [[test]] name = "bid128_round_integral_positive" path = "tests/bid128_round_integral_positive.rs" [[test]] name = "bid128_round_integral_zero" path = "tests/bid128_round_integral_zero.rs" [[test]] name = "bid128_same_quantum" path = "tests/bid128_same_quantum.rs" [[test]] name = "bid128_scalbln" path = "tests/bid128_scalbln.rs" [[test]] name = "bid128_scalbn" path = "tests/bid128_scalbn.rs" [[test]] name = "bid128_signaling_greater" path = "tests/bid128_signaling_greater.rs" [[test]] name = "bid128_signaling_greater_equal" path = "tests/bid128_signaling_greater_equal.rs" [[test]] name = "bid128_signaling_greater_unordered" path = "tests/bid128_signaling_greater_unordered.rs" [[test]] name = "bid128_signaling_less" path = "tests/bid128_signaling_less.rs" [[test]] name = "bid128_signaling_less_equal" path = "tests/bid128_signaling_less_equal.rs" [[test]] name = "bid128_signaling_less_unordered" path = "tests/bid128_signaling_less_unordered.rs" [[test]] name = "bid128_signaling_not_greater" path = "tests/bid128_signaling_not_greater.rs" [[test]] name = "bid128_signaling_not_less" path = "tests/bid128_signaling_not_less.rs" [[test]] name = "bid128_sqrt" path = "tests/bid128_sqrt.rs" [[test]] name = "bid128_sub" path = "tests/bid128_sub.rs" [[test]] name = "bid128_to_int32_ceil" path = "tests/bid128_to_int32_ceil.rs" [[test]] name = "bid128_to_int32_floor" path = "tests/bid128_to_int32_floor.rs" [[test]] name = "bid128_to_int32_int" path = "tests/bid128_to_int32_int.rs" [[test]] name = "bid128_to_int32_rnint" path = "tests/bid128_to_int32_rnint.rs" [[test]] name = "bid128_to_int32_rninta" path = "tests/bid128_to_int32_rninta.rs" [[test]] name = "bid128_to_int32_xceil" path = "tests/bid128_to_int32_xceil.rs" [[test]] name = "bid128_to_int32_xfloor" path = "tests/bid128_to_int32_xfloor.rs" [[test]] name = "bid128_to_int32_xint" path = "tests/bid128_to_int32_xint.rs" [[test]] name = "bid128_to_int32_xrnint" path = "tests/bid128_to_int32_xrnint.rs" [[test]] name = "bid128_to_int32_xrninta" path = "tests/bid128_to_int32_xrninta.rs" [[test]] name = "bid128_to_int64_ceil" path = "tests/bid128_to_int64_ceil.rs" [[test]] name = "bid128_to_int64_floor" path = "tests/bid128_to_int64_floor.rs" [[test]] name = "bid128_to_int64_int" path = "tests/bid128_to_int64_int.rs" [[test]] name = "bid128_to_int64_rnint" path = "tests/bid128_to_int64_rnint.rs" [[test]] name = "bid128_to_int64_rninta" path = "tests/bid128_to_int64_rninta.rs" [[test]] name = "bid128_to_int64_xceil" path = "tests/bid128_to_int64_xceil.rs" [[test]] name = "bid128_to_int64_xfloor" path = "tests/bid128_to_int64_xfloor.rs" [[test]] name = "bid128_to_int64_xint" path = "tests/bid128_to_int64_xint.rs" [[test]] name = "bid128_to_int64_xrnint" path = "tests/bid128_to_int64_xrnint.rs" [[test]] name = "bid128_to_int64_xrninta" path = "tests/bid128_to_int64_xrninta.rs" [[test]] name = "bid128_to_string" path = "tests/bid128_to_string.rs" [[test]] name = "bid128_to_uint32_ceil" path = "tests/bid128_to_uint32_ceil.rs" [[test]] name = "bid128_to_uint32_floor" path = "tests/bid128_to_uint32_floor.rs" [[test]] name = "bid128_to_uint32_int" path = "tests/bid128_to_uint32_int.rs" [[test]] name = "bid128_to_uint32_rnint" path = "tests/bid128_to_uint32_rnint.rs" [[test]] name = "bid128_to_uint32_rninta" path = "tests/bid128_to_uint32_rninta.rs" [[test]] name = "bid128_to_uint32_xceil" path = "tests/bid128_to_uint32_xceil.rs" [[test]] name = "bid128_to_uint32_xfloor" path = "tests/bid128_to_uint32_xfloor.rs" [[test]] name = "bid128_to_uint32_xint" path = "tests/bid128_to_uint32_xint.rs" [[test]] name = "bid128_to_uint32_xrnint" path = "tests/bid128_to_uint32_xrnint.rs" [[test]] name = "bid128_to_uint32_xrninta" path = "tests/bid128_to_uint32_xrninta.rs" [[test]] name = "bid128_to_uint64_ceil" path = "tests/bid128_to_uint64_ceil.rs" [[test]] name = "bid128_to_uint64_floor" path = "tests/bid128_to_uint64_floor.rs" [[test]] name = "bid128_to_uint64_int" path = "tests/bid128_to_uint64_int.rs" [[test]] name = "bid128_to_uint64_rnint" path = "tests/bid128_to_uint64_rnint.rs" [[test]] name = "bid128_to_uint64_rninta" path = "tests/bid128_to_uint64_rninta.rs" [[test]] name = "bid128_to_uint64_xceil" path = "tests/bid128_to_uint64_xceil.rs" [[test]] name = "bid128_to_uint64_xfloor" path = "tests/bid128_to_uint64_xfloor.rs" [[test]] name = "bid128_to_uint64_xint" path = "tests/bid128_to_uint64_xint.rs" [[test]] name = "bid128_to_uint64_xrnint" path = "tests/bid128_to_uint64_xrnint.rs" [[test]] name = "bid128_to_uint64_xrninta" path = "tests/bid128_to_uint64_xrninta.rs" [[test]] name = "bid128_total_order" path = "tests/bid128_total_order.rs" [[test]] name = "bid128_total_order_mag" path = "tests/bid128_total_order_mag.rs" [[test]] name = "bid_dpd_to_bid128" path = "tests/bid_dpd_to_bid128.rs" [[test]] name = "bid_to_dpd128" path = "tests/bid_to_dpd128.rs" [[test]] name = "binary32_to_bid128" path = "tests/binary32_to_bid128.rs" [[test]] name = "binary64_to_bid128" path = "tests/binary64_to_bid128.rs" [[test]] name = "serde" path = "tests/serde.rs" [[test]] name = "sqlx_postgres" path = "tests/sqlx_postgres.rs" [[test]] name = "std_ops" path = "tests/std_ops.rs" [[bench]] name = "decmathlib" path = "benches/decmathlib.rs" harness = false [dependencies.async-std] version = "1.12.0" features = ["default"] optional = true default-features = false [dependencies.byteorder] version = "1.5.0" features = ["default"] optional = true default-features = false [dependencies.forward_ref] version = "1.0.0" [dependencies.serde] version = "1.0" optional = true default-features = false [dependencies.serde_json] version = "1.0" optional = true default-features = false [dependencies.sqlx] version = "0.8.1" features = [ "postgres", "runtime-async-std", "runtime-async-std-rustls", ] optional = true default-features = false [dev-dependencies.criterion] version = "0.5.1" features = ["html_reports"] [features] decimal_tiny_detection_after_rounding = [] serde = [ "serde/default", "serde_json/default", ] sqlx-postgres = [ "sqlx/default", "sqlx/postgres", "byteorder/default", "async-std/default", ]