google / google/autocxx

[feature request] support for custom derive

Open
#668 6 comments 2 reactions 0 assignees View on GitHub
ergonomics
Dominant language
Rust
Stars
2.6k
Forks
175
PR merge metrics
No merged PRs in 30d

Description

There are some quality-of-life derives that would be really nice to have for C++ types. e.g. `#[derive(TryFromPrimitive)]` from `num_enum`.

Maybe `generate!` could take a list of derives that user want to add?

Contributor guide

Open the contributing guide

Research direction

Start by tracing the `generate!` entry point and how it produces Rust types from C++ headers. Compare the requested `TryFromPrimitive` derive with the existing generated-type flow and determine the supported API for passing custom derives. Done means a documented, tested way to apply user-specified derives.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, rust
Domain
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.