mozilla / mozilla/cbindgen

pub static constants are not prefixed with .with_item_prefix configuration

Open
#1,135 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
3k
Forks
386
Avg merge
1h 43m
Merged PRs (30d)
1

Description

configuration on the builder includes .with_item_prefix but when genreating pub static being a struct with a simple byte slice the prefix is not used

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

Start by tracing the builder's with_item_prefix configuration into generation of pub static constants represented by simple byte slices. Reproduce the missing-prefix case and identify the relevant generation entry point; done means the configured prefix is applied consistently to these generated constants.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.