Skip to main content

packaging-rust (Rust mirror of pypa/packaging)

Stage-1 Rust mirror of pypa/packaging (Apache-2.0 OR BSD-2-Clause). Behavior-identical port of src/packaging/*.py exposed as the packaging._packaging extension module via PyO3, with thin packaging/*.py re-export shims preserving the original public API (Version, SpecifierSet, Requirement, Marker, sys_tags, ...).

Layout (publishable)

One implementation, two distributions:

  • packaging-core/ — reusable pure-Rust core crate packaging-rust-core (crates.io). No Python dependency: rlib, cargo test clean. Rust consumers depend on this crate directly.
  • src/lib.rs — thin PyO3 binding crate packaging-rust calling that same core. Ships on PyPI as distribution packaging-rust; the import name is unchanged (import packaging), so users swap the install with zero code changes: pip install packaging-rust instead of pip install packaging.
  • packaging/ — Python shims (one per original module; errors.py keeps the original version-branch glue verbatim since it selects the stdlib ExceptionGroup on 3.11+).
  • release.toml — release configuration (names, version, platforms, Python versions, publishing repo + workflow identity, license, upstream attribution). Read by rustsmith release-prep; see docs/RELEASE.md.

No redesign: same parsing, same ordering, same error messages.

Install

pip install packaging-rust
python -c "from packaging.version import Version; print(Version('1.0'))"

Measured performance

No accepted optimizations yet (mirror baseline); re-run release-prep after run --stage optimize merges winners. Artifact hashes are intentionally absent here; see release-manifest.json.

Metadata

Release files for packaging-rust 26.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for packaging-rust 26.4.0
File Size Uploaded Provenance Actions
packaging_rust-26.4.0.tar.gz 295.9 kB Without provenance Details for packaging_rust-26.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for packaging-rust 26.4.0
File Interpreter ABI Platform Actions
packaging_rust-26.4.0-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details for packaging_rust-26.4.0-cp312-cp312-manylinux_2_34_x86_64.whl

Total release size: 1.1 MB

Release files / packaging_rust-26.4.0.tar.gz

Download URL packaging_rust-26.4.0.tar.gz
Size 295.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0498dee5c2b4a9b7cf5001834f11b90dbccd7d28c1e9409477e3b832629fe1d1
BLAKE2b-256 checksum
How to use checksums
699d46ef8d94cd0e1c1e1e499ca50dba24ea66b4c1c9bf2965d53ab15a58bc51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / packaging_rust-26.4.0-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL packaging_rust-26.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
Size 789.3 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
f41183b4ffa9e1ba0685f0bdfa895b095884d2f31868b9aae3b4e5d1baa1a8c1
BLAKE2b-256 checksum
How to use checksums
f8c542223e6dea3ce115be2fb2fdac1cfed1cabaa700d08d11732dff9d1862c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Security for packaging-rust 26.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

26.4.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page