denoland / denoland/deno_bindgen

Can't generate bindgens for OXC crate

Open
#149 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
320
Forks
28
PR merge metrics
No merged PRs in 30d

Description

`deno_bindgen -o mod.ts` (the rust crate `deno_bindgen_cli` + `deno_bindgen = "=0.9.0-alpha"`) hangs indefinitely when the project has the oxc dependency. Any empty project will do, then run `cargo add oxc` and then try to `deno_bindgen -o mod.ts`, it never finishes.

alternatively, the issue happens when using `cargo add oxc_ast` or `cargo add oxc_parser`, it doesn't happen when only using some other subparts like `oxc_allocator` or `oxc_span`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with an empty Rust project using deno_bindgen_cli and deno_bindgen = "=0.9.0-alpha"; run cargo add oxc, then deno_bindgen -o mod.ts to reproduce the hang. Compare oxc_ast and oxc_parser against the reported non-hanging oxc_allocator and oxc_span cases. No implementation files or tests are named; done means binding generation completes for the affected dependencies without regressing the working cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
deno, rust
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
43/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.