Repository navigation
Build contracts with stellar contract build and fix wasm32v1-none paths - #2991
Conversation
soroban-sdk 28 refuses a plain cargo build for a wasm target, and soroban-sdk refuses wasm32-unknown-unknown on Rust 1.82+. Hello World no longer offers cargo build as an equivalent, the smart-contracts skill's CI job installs stellar-cli and runs stellar contract build, and the skill's wasm paths now point at target/wasm32v1-none/release.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
🤖 Automated message from the Stellar Triage Bot. Reviewing because this is my own PR for #2974, which @oceans404 asked me to take. Verified: the SDK 28 error text, the |
ElliotFriend
left a comment
There was a problem hiding this comment.
Verified against soroban-sdk v28.0.0 build.rs and stellar-cli v28.1.0 build.rs. The error text, target selection, and action tag all check out.
Non-blocking: the skill still pins soroban-sdk = "25.0.1", so the new "soroban-sdk 28+ fails a plain cargo build" line describes a version the skill doesn't use. The guidance is right either way; a pin bump can be a follow-up.
Merge order note: this and #2990 both edit .mintlify/skills/smart-contracts/SKILL.md on adjacent lines. This one should merge first.
* improvements: pre-filing re-checks for 19 official-source findings Live re-check, dedupe, and maintainer-read edits before upstream filing (ADR-0008 amendment of 2026-11-02). sd-064, sd-070, and sd-074 point at pre-existing upstream PRs (#2945, #2763, #2708) and move to reported-upstream. sd-075 is fixed upstream by stellar/stellar-docs#2991; q-sor-build-target-wasm32v1 notes now record the fix. Co-Authored-By: Claude Opus 5.5 <[email protected]> * improvements: file 15 official-source findings upstream stellar/stellar-docs#2997..#3008 (12), stellar/stellar-protocol#2055, and circlefin/stellar-cctp#36 and #37. The filer appended each issue URL and moved the findings to reported-upstream. Round record: .agents/rounds/2026-11-02-upstream-filing.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
* eval: point q-sor-build-target-wasm32v1 at the sd-075 resolved receipt stellar/stellar-docs#2991 is deployed. Truth unchanged; clusters 095 and 129 re-swept. Co-Authored-By: Claude Opus 5.5 <[email protected]> * improvements: retire sd-075 (stellar-docs#2991 deployed) The live Hello World page no longer calls `stellar contract build` a shortcut for plain `cargo build`. Grok 4.7 high re-derived the fix as the distinct reviewer (RETIRE). The golden q-sor-build-target-wasm32v1 now points at the resolved receipt; truth is unchanged. Refs stellar/stellar-docs#2974 Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
🤖 Automated message from the Stellar Triage Bot.
Closes #2974
Working this because @oceans404 added bot:take. soroban-sdk 28 refuses a plain
cargo buildfor a wasm target, and soroban-sdk refuseswasm32-unknown-unknownon Rust 1.82+. I checked both in soroban-sdkbuild.rs(v28.0.0 and v25.0.1) and in stellar-cli v28.1.0contract/build.rs.Changes:
hello-world.mdx: drop thecargo build"shortcut". Say whystellar contract buildis required and quote the SDK 28 error..mintlify/skills/smart-contracts/SKILL.md:wasm32v1-none, installs the CLI withstellar/[email protected], and runsstellar contract buildbeforecargo test.contractimport!and size-check paths now usetarget/wasm32v1-none/release/.cargo bloat --target wasm32-unknown-unknownlines. cargo-bloat does not support WASM (its README says so).example-contracts/TEMPLATE.mdx: build withstellar contract build, like the published example pages.Notes:
pnpm format:mdx,pnpm checkandpnpm check:linksdid not run locally. Thechecksjob is the format gate.keys generate --global. CLI commands on 8 pages fail with the current CLI: removed flags and subcommands #2973 covers the CLI flags. I left both alone.stellar/stellar-dev-skillskills/smart-contracts/testing.md:245-247still runscargo buildin CI.