PyO3 / PyO3/pyo3

Use `stable_abi.toml` from CPython to expand FFI checks for items in the stable ABI

Open
#6,092 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
16.2k
Forks
1k
Avg merge
2d 6h
Merged PRs (30d)
66

Description

CPython maintains a toml file containing a large amount of metadata about items in the stable ABI:

https://github.com/python/cpython/blob/main/Misc/stable_abi.toml

We could write a test that automatically verifies that the conditional compilation and items included in the stable ABI in pyo3-ffi match the toml file.

It'd be nice if the toml file included type information as well but we can at least use it for a completeness check.

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 reading CPython's Misc/stable_abi.toml and the stable-ABI conditional compilation and item definitions in pyo3-ffi. Compare the metadata with the bindings and existing FFI tests, then verify that the automated check detects missing or extra stable-ABI items.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
backend-api-design, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.