Skip to content

test: round-trip the no_std IntentBody derive probe#571

Merged
mfw78 merged 1 commit into
dev/m1from
sdk/521-intent-body-no-std
Jul 24, 2026
Merged

test: round-trip the no_std IntentBody derive probe#571
mfw78 merged 1 commit into
dev/m1from
sdk/521-intent-body-no-std

Conversation

@mfw78

@mfw78 mfw78 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

What

Adds a #[cfg(test)] round-trip test to the no-std-probe, exercising IntentBody::to_bytes / from_bytes (happy path, unknown version, empty input) via videre_sdk::BodyError. Retitles the module doc to scope the no_std claim to derive hygiene only: the derive expands under #![no_std] naming only ::core and the SDK's __private re-exports, and the round-trip test now proves the generated codec is correct, not merely that it expands.

Why

Closes the gap identified in review of #451: the probe derived IntentBody but never called to_bytes / from_bytes, so it proved macro expansion, not codec correctness. Per the issue's alternative, videre-sdk stays std-bearing (the real target is wasm32-wasip2, not bare-metal), so the claim is scoped down rather than chasing a no_std SDK conversion or a bare-metal CI target that this SDK does not need.

Testing

cargo fmt --all -- --check; cargo clippy --workspace --all-targets --all-features --locked -- -D warnings; wasm release build of all 18 guest modules plus a separate cow-venue --features cow-venue/adapter build, with a wasm count assert of 18; cargo nextest run --workspace --all-features --no-fail-fast --locked (804 passed, 1 skipped, 0 failed); cargo test --doc --workspace --all-features --locked; RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --locked; ./scripts/check-venue-agnostic.sh; ./scripts/check-cow-orderbook-only.sh. All steps passed.

AI Assistance

Implemented with Claude Code.

Closes #521

@mfw78
mfw78 merged commit bd7fbf7 into dev/m1 Jul 24, 2026
7 checks passed
@mfw78
mfw78 deleted the sdk/521-intent-body-no-std branch July 24, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant