Skip to content

Conversation

@dianchia
Copy link

@dianchia dianchia commented Feb 3, 2026

This PR adds the minimal build infrastructure required to support a Rust-based extension module using PyO3 and maturin.
It is purely preparatory and does not introduce any functional or runtime changes to the existing Python SDK.

Specifically, this PR:

  1. Introduces pyproject.toml as the build entry point, which is required by maturin and coexists with the existing Python packaging setup.
  2. Adds a Cargo.toml to define a Rust crate that will later host the extension module.
  3. Adds a GitHub Actions CI workflow (generated from maturin) to build Python wheels across supported platforms and Python versions.
    The workflow has been intentionally modified to only build and upload artefacts, and does not publish to PyPI.

This lays the groundwork for follow-up PRs that will incrementally add Rust code and Python-Rust integration, while keeping the current behaviour unchanged.

Configure Cargo.toml and pyproject.toml for PyO3 extension.
Include a CI workflow for building wheels with maturin for different OS and Python versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant