near/cargo-near

Windows (without WSL) build failure on ABI generation step

Opened this issue · 3 comments

after installing binary release from latest https://github.com/near/cargo-near/releases/tag/cargo-near-v0.6.4 tag
with

irm https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.ps1 | iex

onto
image
image

a cargo near build command fails for a default project, generated by cargo near new:
image
image
image

A standalone cargo build --features near-sdk/__abi-generate command fails with similar error (with and without --release).


A cargo near build --no-abi succeeds:
image
As well as standalone cargo build --target wasm32-unknown-unknown (with and without --release).

the following link https://rust-lang.github.io/rfcs/1717-dllimport.html may or may not be a part of research/implementation, needed for near-sdk in order to fix this

I would love to work on this issue @dj8yfo may I 🙃