Skip to content

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

Closed

Description

@oceans404

Pages:

Files: docs/build/smart-contracts/getting-started/hello-world.mdx:309-312, .mintlify/skills/smart-contracts/SKILL.md:137-145, 326, 452-454, 594, 705-719

What's wrong:

  • Hello World (lines 309-312) says stellar contract build can be thought of as "a shortcut for" cargo build --target wasm32v1-none --release. With the soroban-sdk = "28" the same page sets up (line 50), that command fails: soroban-sdk requires stellar-cli v25.2.0+ to build a contract. To fix, build with stellar contract build.
  • The skill's CI example (lines 705-719) runs cargo build --release --target wasm32-unknown-unknown on the stable Rust toolchain. soroban-sdk's build script refuses that target on Rust 1.82 and later, in 28.0.0 and in the 25.0.1 the skill itself pins (line 58). So the CI job the skill gives agents fails on its first run.
  • The skill's build output paths (lines 137, 145, 326, 452, 594) point at target/wasm32-unknown-unknown/release/. On Rust 1.84 and later, stellar contract build writes to target/wasm32v1-none/release/ (v28.1.0 contract/build.rs#L802-L823), so the deploy, import and size-check commands that use those paths don't find the file.

Outcome we're after:
Neither page presents a build command that fails with the soroban-sdk version it sets up, the skill's CI example passes as written, and the skill's paths match where the build puts the wasm. How to get there is up to whoever picks this up.

Reference:

  • soroban-sdk 28.0.0 build.rs: refuses a contract build that doesn't come from stellar-cli 25.2.0+, and refuses wasm32-unknown-unknown on Rust 1.82+. The same wasm32-unknown-unknown check is in 25.0.1.
  • stellar contract build (v28.1.0 contract/build.rs).

How to check the fix:

  • Following Hello World as written with soroban-sdk 28 and Rust stable, every build command on the page succeeds.
  • The skill's CI example passes on a fresh GitHub Actions runner with Rust stable, for a contract on the soroban-sdk version the skill pins.
  • Following the skill's build, deploy and import steps, every --wasm and contractimport! path exists after stellar contract build.
  • pnpm validate passes.

How we found it: Built a minimal contract on soroban-sdk 28.0.0 with Rust 1.97: both cargo build --target wasm32v1-none --release and cargo build --release --target wasm32-unknown-unknown fail in soroban-sdk's build script. In the HackMeridian 2026 hackathon, Pledge's first CI run failed on the SDK 28 refusal (jzelada97/Pledge@0714d3b), and Caravel and Stellar RTGS wrote down the same thing in comments.

Why it matters: Hello World is where most contract developers start, and the skill is what coding agents read when they set up CI. 23 hackathon repos run the CLI in CI.

Related: #2482 (closed; added a troubleshooting entry for the wasm32-unknown-unknown error), #2973 (other commands in the same skill that fail).

Activity

  1. stellar-doxie commented on Nov 1, 2026

    @stellar-doxie
    Contributor

    🤖 Automated message from the Stellar Triage Bot.

    I saw this issue. Nobody has called me in yet, so I take no action on it.

    How to reach me:

    • Anyone with write permission can call me in. Comment /triage, add the bot:take label, or assign @kaankacar, @ElliotFriend or @wmendes.
    • The issue author can send me away with /triage stop.
    • People with write permission can also add the bot:hands-off label.
  2. added
    bot:take
    on Nov 1, 2026
  3. oceans404 commented on Nov 1, 2026

    @oceans404
    ContributorAuthor

    /triage

  4. stellar-doxie commented on Nov 2, 2026

    @stellar-doxie
    Contributor

    🤖 Automated message from the Stellar Triage Bot.

    Working this because @oceans404 added bot:take.

    I am checking the build commands and wasm paths against soroban-sdk and stellar-cli now.

  5. stellar-doxie commented on Nov 2, 2026

    @stellar-doxie
    Contributor

    🤖 Automated message from the Stellar Triage Bot.

    Working this because @oceans404 added bot:take.

    I opened #2991 to fix this.

    • Hello World: drops the cargo build "shortcut" and says to build with stellar contract build.
    • Skill: CI installs the CLI and runs stellar contract build. All paths now use target/wasm32v1-none/release/.
    • The checks job and the Mintlify preview pass.

    A maintainer reviews and merges it. #2973 still covers the other skill commands.

  6. kalepail commented on Nov 2, 2026

    @kalepail
    Contributor

    Raven independently rechecked sd-075 on 2026-11-02 and confirmed the original trigger is resolved live.

    Live recheck: 2026-11-02T21:23:41Z https://developers.stellar.org/docs/build/smart-contracts/getting-started/hello-world: no 'shortcut for' text; the page says a direct cargo build --target wasm32v1-none --release fails under soroban-sdk 28 or later with 'soroban-sdk requires stellar-cli v25.2.0+ to build a contract'

    The active finding is being retired under the ephemeral improvements lifecycle. Immutable source snapshot: https://github.com/stellar-experimental/stellar-raven/blob/ea544f5f190552cb7616c80407aa24fb550e75c9/improvements/stellar-docs/sd-075-hello-world-build-wrapper-claim.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot:take

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions