Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: missing crate version/bad documentation #148

Open
RaphaelDarley opened this issue Mar 12, 2024 · 3 comments
Open

Bug: missing crate version/bad documentation #148

RaphaelDarley opened this issue Mar 12, 2024 · 3 comments

Comments

@RaphaelDarley
Copy link

RaphaelDarley commented Mar 12, 2024

The README of this project says to install deno_bindgen_cli via cargo install however, the version on crates.io is v0.1.0 and does not work. The crate should either be updated or instruction should be given to install it via deno as on crates.io

I'm also unable to get the command in the crates.io documentation to work

@nearest-river
Copy link

nearest-river commented Mar 22, 2024

The documentation is updated for release 0.9 but release 0.9 isn't out yet

so you must do it as the old documentation says

@Sleepful
Copy link

I had added:

cargo add deno_bindgen

I had installed:

cargo install deno_bindgen_cli

But then I was getting this weird error...

$ deno_bindgen -o mod.ts

Error: Custom { kind: Other, error: "failed to load library: Could not obtain symbol from the library: dlsym(0x83731040, init_deno_bindgen): symbol not found" }

Then I found your issue. So debugging accordingly, I added this to my Rust project:

cargo add deno_bindgen@=0.9.0-alpha
cargo add linkme

And now I can run:

$ deno_bindgen -o mod.ts

So... yeah, very confusing :S
The README should be updated indeed.

@Sleepful
Copy link

Sleepful commented Apr 27, 2024

or, if you want to use stable release 8.1, which I had to do (see here #149), do as the old docs say: https://github.com/denoland/deno_bindgen/tree/0.8.1

So you will install a deno CLI instead of a cargo CLI, and you will use cargo add deno_bindgen to get the 8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants