Skip to content

Build contracts with stellar contract build and fix wasm32v1-none paths - #2991

Merged
ElliotFriend merged 1 commit into
mainfrom
docs-agent/2974-build-commands-wasm-paths
Nov 2, 2026
Merged

ElliotFriend merged 1 commit into
mainfrom
docs-agent/2974-build-commands-wasm-paths

Conversation

@stellar-doxie

@stellar-doxie stellar-doxie Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from the Stellar Triage Bot.

Closes #2974

Working this because @oceans404 added bot:take. soroban-sdk 28 refuses a plain cargo build for a wasm target, and soroban-sdk refuses wasm32-unknown-unknown on Rust 1.82+. I checked both in soroban-sdk build.rs (v28.0.0 and v25.0.1) and in stellar-cli v28.1.0 contract/build.rs.

Changes:

  • hello-world.mdx: drop the cargo build "shortcut". Say why stellar contract build is required and quote the SDK 28 error.
  • .mintlify/skills/smart-contracts/SKILL.md:
    • CI job adds wasm32v1-none, installs the CLI with stellar/[email protected], and runs stellar contract build before cargo test.
    • Build, deploy, contractimport! and size-check paths now use target/wasm32v1-none/release/.
    • Remove the cargo bloat --target wasm32-unknown-unknown lines. cargo-bloat does not support WASM (its README says so).
  • example-contracts/TEMPLATE.mdx: build with stellar contract build, like the published example pages.

Notes:

  • pnpm needs approval in this lane, so pnpm format:mdx, pnpm check and pnpm check:links did not run locally. The checks job is the format gate.
  • The skill still pins soroban-sdk 25.0.1 and uses 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.
  • Upstream stellar/stellar-dev-skill skills/smart-contracts/testing.md:245-247 still runs cargo build in CI.

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.
@stellar-doxie
stellar-doxie Bot requested a review from ElliotFriend November 2, 2026 00:57
@mintlify

mintlify Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
stellar-docs 🟢 Ready View Preview Nov 2, 2026, 12:58 AM

@stellar-doxie

stellar-doxie Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

🤖 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 wasm32v1-none output path and the stellar/[email protected] action match their sources. All checks pass and the preview renders. Ready to merge.

@ElliotFriend ElliotFriend left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ElliotFriend
ElliotFriend merged commit 42ad5aa into main Nov 2, 2026
8 checks passed
@ElliotFriend
ElliotFriend deleted the docs-agent/2974-build-commands-wasm-paths branch November 2, 2026 20:13
kalepail added a commit to stellar-experimental/stellar-raven that referenced this pull request Nov 2, 2026
* 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]>
kalepail added a commit to stellar-experimental/stellar-raven that referenced this pull request Nov 2, 2026
* 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]>

This branch was successfully deployed

1 active deployment
staging — 6b1e4409 Deployed Nov 2, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:ready-to-merge Bot verified and approved; waiting for a maintainer to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hello World and the smart-contracts skill: the build commands and wasm paths they show fail

1 participant