wasmerio / rusty_jsc

Rust bindings for the JavaScriptCore engine.
MIT License
99 stars 7 forks source link

Doesn't build on Windows #10

Open Michael-F-Bryan opened 1 year ago

Michael-F-Bryan commented 1 year ago

The build script for rusty-jsc-sys doesn't include a main() function on Windows, which means builds will fail with the following error on Windows:

error[E0601]: `main` function not found in crate `build_script_build`
 --> C:\Users\Work\.cargo\registry\src\github.com-1ecc6299db9ec823\rusty_jsc_sys-0.1.0\build.rs:9:2
  |
9 | }
  |  ^ consider adding a `main` function to `C:\Users\Work\.cargo\registry\src\github.com-1ecc6299db9ec823\rusty_jsc_sys-0.1.0\build.rs`

I suspect we'll need to do a bit more to make things link than just stubbing out the main() function, but I've never built JavaScriptCore from source so I'm not sure how to go about it.

darkdarcool commented 8 months ago

I'm having the same issue. Did you manage to fix it?