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
7 changes: 7 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# The rain-math-float bindings run over the test concretes compiled from this
# source (crates/tests/build.rs), through their constructors. Forced so a
# value in the shell cannot point the tests elsewhere.
[env]
RAIN_MATH_FLOAT_ARTIFACT = { value = "out/TestDecimalFloat.sol/TestDecimalFloat.json", relative = true, force = true }
RAIN_MATH_FLOAT_TEST_ARTIFACT = { value = "out/TestDecimalFloatHarness.sol/TestDecimalFloatHarness.json", relative = true, force = true }
RAIN_MATH_FLOAT_DEPLOY_MODE = { value = "create", force = true }
5 changes: 5 additions & 0 deletions .github/workflows/rainix-rs-static.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: rainix-rs-static
on: [push]
jobs:
rs-static:
uses: rainlanguage/rainix/.github/workflows/rainix-rs-static.yaml@main
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
5 changes: 5 additions & 0 deletions .github/workflows/rainix-rs-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: rainix-rs-test
on: [push]
jobs:
rs-test:
uses: rainlanguage/rainix/.github/workflows/rainix-rs-test.yaml@main
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ temp
.fixes
.pre-commit-config.yaml
.claude
target
4 changes: 4 additions & 0 deletions .soldeerignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ CLAUDE.md
/target
/test
/REUSE.toml
/crates
/.cargo
Cargo.toml
Cargo.lock
7 changes: 6 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ rather than producing special values.
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.
bindings live in `rain.math.float.deploy` and publish from there. The one Rust
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