Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tutorial fails to build when wasm-opt is enabled #59

Open
Labels
bugSomething isn't working
@onatm

Description

@onatm

Describe the Bug

Building the code on pageImplementing Conway's Game of Life fails with the below error:

Error: failed to execute`wasm-opt`: exited withexit code: 1  full command:"/Users/onat.mercan/Library/Caches/.wasm-pack/wasm-opt-a528729925722b63/wasm-opt""/Users/onat.mercan/dev/wasm-game-of-life/pkg/wasm_game_of_life_bg.wasm""-o""/Users/onat.mercan/dev/wasm-game-of-life/pkg/wasm_game_of_life_bg.wasm-opt.wasm""-O"To disable`wasm-opt`, add`wasm-opt = false` to your package metadatain your`Cargo.toml`.

Steps to Reproduce

  1. Follow the tutorial on pageImplementing Conway's Game of Life untilRendering with JavaScript
  2. Runwasm-pack build

Additional Context

I managed to make it build by following the error produced and added the following line toCargo.toml:

[package.metadata.wasm-pack.profile.release]wasm-opt =false

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp