[package]
edition = "2021"
name = "rain-math-float"
version = "0.1.12"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Decimal floating-point arithmetic for Rainlang / DeFi smart contracts. Packs a 224-bit signed coefficient and 32-bit signed exponent into a single bytes32, with exact decimal semantics (no NaN, Infinity, or negative zero — operations error on nonsense). Rust bindings delegate to the Solidity reference via an in-memory EVM so on-chain and off-chain results match exactly."
homepage = "https://github.com/rainlanguage/rain.math.float.deploy"
readme = false
license = "LicenseRef-DCL-1.0"
repository = "https://github.com/rainlanguage/rain.math.float.deploy"
[features]
test-harness = ["dep:serde_json"]
[lib]
name = "rain_math_float"
crate-type = ["rlib"]
path = "src/lib.rs"
[dependencies.alloy]
version = "1.0.9"
features = [
"sol-types",
"json",
"json-abi",
]
default-features = false
[dependencies.serde]
version = "1.0.219"
[dependencies.serde_json]
version = "1.0.140"
optional = true
[dependencies.thiserror]
version = "2.0.12"
[dependencies.wasm-bindgen]
version = "0.2.122"
[dependencies.wasm-bindgen-utils]
version = "0.1.2"
[dev-dependencies.alloy]
version = "1.0.9"
features = [
"sol-types",
"json",
"json-abi",
"arbitrary",
]
default-features = false
[dev-dependencies.anyhow]
version = "1.0.98"
[dev-dependencies.proptest]
version = "1.7.0"
[dev-dependencies.serde_json]
version = "1.0.140"
[target.'cfg(not(target_family = "wasm"))'.dependencies.revm]
version = "36"
features = [
"c-kzg",
"portable",
"std",
"tracer",
]
default-features = false
[target.'cfg(target_family = "wasm")'.dependencies.getrandom]
version = "0.2.11"
features = [
"js",
"js-sys",
]
[target.'cfg(target_family = "wasm")'.dependencies.revm]
version = "36"
features = [
"portable",
"std",
"tracer",
]
default-features = false