mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
2c77f8f4ca
* Use sensible maths for from_rational * Fixes * Fixes * More fixes * Remove debugging * Add fuzzer tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Prevent panics Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * docs Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clean up old code Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Test all rounding modes of from_rational Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clean up code Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Revert "Prevent panics" This reverts commit 7e88ac76138a1b590e68b68318505b69efe1e1f6. * fix imports Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cleanup Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fuzz test multiply_rational Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix import Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Return None in multiply_rational on zero div Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
48 lines
1.0 KiB
TOML
48 lines
1.0 KiB
TOML
[package]
|
|
name = "sp-arithmetic-fuzzer"
|
|
version = "2.0.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2021"
|
|
license = "Apache-2.0"
|
|
homepage = "https://substrate.io"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
description = "Fuzzer for fixed point arithmetic primitives."
|
|
documentation = "https://docs.rs/sp-arithmetic-fuzzer"
|
|
publish = false
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
arbitrary = "1.3.0"
|
|
fraction = "0.13.1"
|
|
honggfuzz = "0.5.49"
|
|
num-bigint = "0.4.3"
|
|
num-traits = "0.2.15"
|
|
primitive-types = "0.12.0"
|
|
sp-arithmetic = { version = "6.0.0", path = ".." }
|
|
|
|
[[bin]]
|
|
name = "biguint"
|
|
path = "src/biguint.rs"
|
|
|
|
[[bin]]
|
|
name = "normalize"
|
|
path = "src/normalize.rs"
|
|
|
|
[[bin]]
|
|
name = "per_thing_from_rational"
|
|
path = "src/per_thing_from_rational.rs"
|
|
|
|
[[bin]]
|
|
name = "per_thing_mult_fraction"
|
|
path = "src/per_thing_mult_fraction.rs"
|
|
|
|
[[bin]]
|
|
name = "multiply_by_rational_with_rounding"
|
|
path = "src/multiply_by_rational_with_rounding.rs"
|
|
|
|
[[bin]]
|
|
name = "fixed_point"
|
|
path = "src/fixed_point.rs"
|