Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

WASM build fails (mac)

Đang mở
#166 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust, wasm

Hướng nghiên cứu

Bắt đầu với tutorial web-build được liên kết và thực hiện lại các bước được tài liệu hóa trên macOS, sau đó kiểm tra dependency rltk trong Cargo.toml và các lỗi ctrlc-3.1.9 được hiển thị. Công việc được xem là hoàn tất khi WASM build thành công trên macOS và các ví dụ về đường dẫn trong tutorial hoạt động trên nền tảng đó, đồng thời cập nhật hướng dẫn nếu cần.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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`
    ```
Ngôn ngữ chính
Rust
Star
968
Fork
166
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của amethyst/rustrogueliketutorial

Tất cả issue của amethyst/rustrogueliketutorial

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.