Use `stable_abi.toml` from CPython to expand FFI checks for items in the stable ABI
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
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 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