rust-lang / rust-lang/rust-bindgen

Idea: Support compilation/cc-rs interface

Open
#2,873 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
5.3k
Forks
829
Avg merge
1d 1h
Merged PRs (30d)
15

Description

When using bindgen for non-system libraries, it's common pattern to also have cc-rs for compilation that gets most flags (include headers, paths, ...) duplicated for bindgen (see mozjs or mozangle for such examples). This is usually migrated by feeding same raw compiler flags for both. It would be nice to only provide all flags once using nicer cc api and then reuse them for bindgen. Or simply offer compilation as part of bindgen (maybe benefiting because static analysis is not run twice).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files or tests. Start by reviewing bindgen's public API and the cc-rs integration patterns used by mozjs or mozangle. First clarify whether the goal is shared compiler flags or compilation within bindgen, then define the API and acceptance criteria with maintainers.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.