Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# The rain-math-float bindings run over the test concretes compiled from this
# source (crates/tests/build.rs), through their constructors.
[env]
RAIN_MATH_FLOAT_ARTIFACT = { value = "out/TestDecimalFloat.sol/TestDecimalFloat.json", relative = true }
RAIN_MATH_FLOAT_TEST_ARTIFACT = { value = "out/TestDecimalFloatHarness.sol/TestDecimalFloatHarness.json", relative = true }
RAIN_MATH_FLOAT_DEPLOY_MODE = "create"
1 change: 1 addition & 0 deletions .soldeerignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ CLAUDE.md
/test
/REUSE.toml
/crates
/.cargo
Cargo.toml
Cargo.lock
6 changes: 4 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ This repository is the library half of the rain.math.float split. It publishes
only the `rain-math-float` Soldeer package. The deployed concrete contract, the
on-chain deploy pins/snapshot, the deploy scripts/tests, and the Rust/WASM/npm
bindings live in `rain.math.float.deploy` and publish from there. The one Rust
crate here, `crates/constants`, is test-only and never published: it reads the
packed constants out of `LibDecimalFloat.sol` and checks them against values
crate here, `crates/tests`, is test-only and never published. It runs the
bindings' library tests over `test/concrete/TestDecimalFloat.sol` compiled from
this source (`.cargo/config.toml` points the bindings at the artifacts and runs
their constructors) and cross-references the packed constants against values
derived in integer arithmetic.

## Build Commands
Expand Down
Loading
Loading