PyO3 / PyO3/pyo3

Explore macros to reduce conditional compilation complexity

Open
#5,748 1 comment 0 reactions 0 assignees View on GitHub

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:

https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=6355a3c8775da82fa77081c2d56748d9

Credit to @cehteh for suggesting this to me in ##rust on libera IRC.

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.