Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lib.rs for fix compile error #4118

Closed
wants to merge 1 commit into from
Closed

Conversation

6-sigma
Copy link

@6-sigma 6-sigma commented Aug 7, 2024

Resolves # .

@reviewer-or-team

@6-sigma
Copy link
Author

6-sigma commented Aug 7, 2024

Author: Lueey [email protected]
Date: Wed Aug 7 11:25:40 2024 +0800

bdc2b7d48ef3acbd/4a78c74/utils/wasm-instrument)
   Compiling cargo-platform v0.1.3
   Compiling dirs-sys v0.3.7
   Compiling gsys v1.4.2 (/Users/dev/.cargo/git/checkouts/gear-bdc2b7d48ef3acbd/4a78c

74/gsys)
error[E0425]: cannot find function size_of in this scope
--> gsys/src/lib.rs:205:28
|
205 | pub struct ErrorBytes([u8; size_of::()]);
| ^^^^^^^ not found in this scope
|
help: consider importing this function
|
23 + use core::mem::size_of;
|

For more information about this error, try `rustc --explain E0425`.
error: could not compile `gsys` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `wasm-proc v0.1.0 (https://github.com/gear-tech/gear.git#4a7

8c740), intermediate artifacts can be found at /var/folders/fh/lsytqkf568l94lfzt_s686j0
0000gp/T/cargo-installBkFZTt`.

@StackOverflowExcept1on
Copy link
Member

StackOverflowExcept1on commented Aug 7, 2024

You can update to the latest stable version of the compiler. In the next release we plan to bump the minimum version of Rust to 1.81 due to stabilization of the panic_info_message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants