Skip to content

sdk wasm - #120

Merged
Arvolear merged 4 commits into
devfrom
wasm
Aug 7, 2026
Merged

sdk wasm#120
Arvolear merged 4 commits into
devfrom
wasm

Conversation

@Arvolear

@Arvolear Arvolear commented Aug 7, 2026

Copy link
Copy Markdown
Member
  • This PR suggests a bug fix and I've added the necessary tests.
  • This PR introduces a new feature and I've discussed the update in an Issue or with the team.
  • This PR is just a minor change like a typo fix.

lukachi and others added 2 commits August 7, 2026 21:40
CI runs `cargo clippy --workspace --all-targets --all-features` under
`RUSTFLAGS: -Dwarnings`, so a pedantic warning fails the build. This branch
carried twenty-two of them: six in the SDK and sixteen in the binding.

Most are mechanical — backticks around SimplicityHL, OP_RETURN and BitMachine
in prose, `#[must_use]` on three accessors that return a value and touch
nothing, `if let` where a `match` destructured a single pattern.

Two are judgement calls, both recorded where they are made.

`Option<String>` stays on the four binding entry points clippy wants borrowed.
wasm-bindgen implements no `OptionFromWasmAbi` for `&str`, so an optional string
argument has to arrive owned; the alternative is not a nicer signature but a
crate that does not compile. The allow sits on each function with the reason
above it rather than at the crate root, so a genuine case elsewhere still fails.

`required_signature` stops returning `Result`. It parses a name it has already
proved non-empty and has no failing path, and a `?` at its call site claimed
otherwise. `add_contract_input` keeps its nine arguments: it is the binding
surface a caller reaches for, and folding them into a parameter object would
move the shape into JavaScript for a lint.

Claude-Session: https://claude.ai/code/session_0133RUq5DKdBerk4ypVdpAZK
Pass the workspace clippy gate with warnings denied
@Arvolear
Arvolear merged commit 7d7e7b6 into dev Aug 7, 2026
9 checks passed
@Arvolear
Arvolear deleted the wasm branch August 7, 2026 19:06
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.

2 participants