building for windows with dependencies #1535
-
I'm sorry if this is a basic easy question, but I've been fighting with this for 3 days and I just cannot figure out how to do this ( it feels like it's not a "cross" problem, but a "understanding cargo build" problem, but .... I have a project in rust, I have setup a build script that compiles for 10 different targets (linux, macos, windows) But now i need to use napi-rs ... that works fine on all targets except windows. ( if i go to a windows machine with nodejs and visual studio installed rust compiles without any issues ) But with cross, it fails with
I assumed i need to find those files and "map" them into cross by adding a
section but from here I'm lost ... I tried extracting a windows nodejs installation and the folder containing delayimp.lib from a windows machine with visual studio installed, but it's like rust does not find them. I guess my question is.
but this only works for linux. Is there a way to easily add things to the wine installation, when building for windows ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try using their alpha release which includes napi-rs/napi-rs#2026 |
Beta Was this translation helpful? Give feedback.
Try using their alpha release which includes napi-rs/napi-rs#2026