WASM build fails (mac)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- rust, wasm
調査の方向性
リンクされた web-build チュートリアルから始め、その文書化された手順を macOS 上で再現し、続いて Cargo.toml の rltk 依存関係と、表示される ctrlc-3.1.9 のエラーを調査します。macOS 上で WASM ビルドが成功し、チュートリアルのパス例がそのプラットフォームで動作し、必要に応じて手順が更新されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I tried to follow the instructions to build for web, but they fail on my 2019 macbook pro.
I've attached the errors I got, and I can confirm the wasm build works when I remove rltk from my dependencies in Cargo.toml
I also noticed a couple of things in the WASM tutorial that seem to be targeted towards windows users (like using \ instead of / for paths) so I was wondering if the wasm stuff was only tested on windows.
Thanks for making this tutorial btw!
error[E0432]: unresolved import `platform::Signal`
--> /Users/ldd/.cargo/registry/src/github.com-1ecc6299db9ec823/ctrlc-3.1.9/src/lib.rs:52:9
|
52 | pub use platform::Signal;
| ^^^^^^^^^^^^^^^^ no `Signal` in `platform`
error[E0412]: cannot find type `Error` in module `platform`
--> /Users/ldd/.cargo/registry/src/github.com-1ecc6299db9ec823/ctrlc-3.1.9/src/error.rs:25:21
|
25 | impl From<platform::Error> for Error {
| ^^^^^ not found in `platform`
|
help: consider importing one of these items
|
1 | use core::fmt::Error;
|
1 | use crate::Error;
|
1 | use crate::error::fmt::Error;
|
1 | use std::error::Error;
|
and 2 other candidates
error[E0412]: cannot find type `Error` in module `platform`
--> /Users/ldd/.cargo/registry/src/github.com-1ecc6299db9ec823/ctrlc-3.1.9/src/error.rs:26:26
|
26 | fn from(e: platform::Error) -> Error {
| ^^^^^ not found in `platform`
|
help: consider importing one of these items
|
1 | use core::fmt::Error;
|
1 | use crate::Error;
|
1 | use crate::error::fmt::Error;
|
1 | use std::error::Error;
|
and 2 other candidates
error[E0412]: cannot find type `Signal` in module `platform`
--> /Users/ldd/.cargo/registry/src/github.com-1ecc6299db9ec823/ctrlc-3.1.9/src/signal.rs:22:21
|
22 | Other(platform::Signal),
| ^^^^^^ not found in `platform`
error[E0425]: cannot find function `init_os_handler` in module `platform`
--> /Users/ldd/.cargo/registry/src/github.com-1ecc6299db9ec823/ctrlc-3.1.9/src/lib.rs:97:25
|
97 | match platform::init_os_handler() {
| ^^^^^^^^^^^^^^^ not found in `platform`
error[E0425]: cannot find function `block_ctrl_c` in module `platform`
--> /Users/ldd/.cargo/registry/src/github.com-1ecc6299db9ec823/ctrlc-3.1.9/src/lib.rs:110:27
|
110 | platform::block_ctrl_c().expect("Critical system error while waiting for Ctrl-C");
| ^^^^^^^^^^^^ not found in `platform`
error: aborting due to 6 previous errors
Some errors have detailed explanations: E0412, E0425, E0432.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `ctrlc`
```
- 主要言語
- Rust
- スター
- 968
- フォーク
- 166
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
amethyst/rustrogueliketutorial のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 45/100
amethyst/rustrogueliketutorial の issue をすべて見る
似ている issue
-
area:casework bug criticality:p3 triage:needs-implementation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
registrystack/registry-stack#1623 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DioxusLabs/anyrender#98 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
leptos-rs/leptos#4885 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
longbridge/gpui-kit#3276 ·
メンテナーはふだん 1 日以内に返信