Explore macros to reduce conditional compilation complexity
Open
Nobody has claimed this yet.
FFI
needs-design
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 1k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 66
Description
This doesn't actually compile and is only illustrative of a possible macro syntax, but something like this might be nice:
Credit to @cehteh for suggesting this to me in ##rust on libera IRC.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Rust playground example and the issue's illustrative macro syntax, then compare it with PyO3's current conditional-compilation patterns. Done means a concrete, maintainable macro approach has been evaluated and its scope is agreed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100