Skip to content

Official servers will not load wasm binaries compiled using Rust >=1.70 #391

Open
@shanemadden

Description

@shanemadden

Current nightly builds of rust use new wasm opcodes for sign-extension which will not load under the LLVM running on the official servers. Private servers tested appear to have no problem with the new opcodes.

Errors like Compiling wasm function #1389:<screeps::constants::small_enums::Direction as ... failed: Invalid opcode (enable with --experimental-wasm-se) @+1009670 will occur on attempt to load the module.

Ideally we'll be able to have a setting to control disabling these newer opcodes (possibly integrated into cargo-screeps) but a working workaround has not yet been identified - see rust-lang/rust#109807

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-upstreamIssue blocked by an upstream problem/feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions