Skip to content

Rust built WASM library in Blazor project fails on wasm-opt when being published #96394

Closed as not planned
@shakenov-chinga

Description

@shakenov-chinga

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hi guys,
I've been trying to publish my project with this error. I've searched a lot and tried a bunch of stuff, but none of them worked. Then I stumbled upon the issue where BlazeOrbit was recommended to verified the issue. The same error occurs on that project too.

image
I get this error:
error.log

Expected Behavior

It should have published the project

Steps To Reproduce

My steps are:

  1. Run command in PowerShell BlazeOrbital\rustqr> cargo build --target wasm32-unknown-emscripten
  2. In BlazeOrbital\rustqr\Cargo.toml change from crate-type = ["staticlib"] to crate-type = ["dylib"] (I need dll for BlazeOrbital.Accounting)
  3. Run command BlazeOrbital\rustqr> cargo build --target x86_64-pc-windows-msvc
  4. Build solution in Visual Studio 2022
  5. Press "Publish" on BlazeOrbital.ManufacturingHub project
  6. Select folder profile with default values
  7. Press "Publish"

Exceptions (if any)

No response

.NET Version

6.0

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions