denoland / deno_bindgen

Write high-level Deno FFI libraries in Rust.
MIT License
275 stars 28 forks source link

fix: deno_bindgen does not work properly on Windows. #92

Closed skanehira closed 2 years ago

skanehira commented 2 years ago

fix https://github.com/denoland/deno_bindgen/issues/91

When deno_bindgen run on Windows, the fetchPrefix should be ..\target\debug. But \ escapes the next characters, so the final fetchPrefix will be \..argetdebug.

kt3k commented 2 years ago

@littledivy Can you also take a look?

serverwentdown commented 1 year ago

This change broke the use of deno_bindgen in cargo workspaces. The code generated within a workspace is now:

const url = new URL("..../target/debug", import.meta.url) ;

I can poke around and make a PR + tests.