Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/DISCUSSION_TEMPLATE/q-a.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ body:
id: package-version
attributes:
label: Package and version
placeholder: "packvium-native-rust 1.8.0 (Rust)"
placeholder: "packvium-native-rust 1.9.0 (Rust)"
validations:
required: true
- type: textarea
Expand Down
2 changes: 1 addition & 1 deletion .github/DISCUSSION_TEMPLATE/show-and-tell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ body:
id: package-version
attributes:
label: Package and version
placeholder: "packvium-native-rust 1.8.0 (Rust)"
placeholder: "packvium-native-rust 1.9.0 (Rust)"
validations:
required: false
- type: textarea
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ body:
id: version
attributes:
label: Package version
description: The exact version installed, for example 1.8.0.
placeholder: "1.8.0"
description: The exact version installed, for example 1.9.0.
placeholder: "1.9.0"
validations:
required: true
- type: input
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ body:
id: version
attributes:
label: Package version
placeholder: "1.8.0"
placeholder: "1.9.0"
validations:
required: true
- type: textarea
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- uses: dtolnay/rust-toolchain@46511b1c83438f0dd37c02d843619ece5a4abb5b # 1.97.1
with:
components: rustfmt, clippy
Expand All @@ -33,13 +33,13 @@ jobs:
os: [ubuntu-24.04, ubuntu-24.04-arm, macos-latest, macos-15-intel, windows-latest]
python: ["3.9", "3.14"]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
# The components rust-toolchain.toml names, installed up front: left to maturin's first
# `cargo metadata`, rustup tries to add rustfmt over the runner's own cargo-fmt and fails.
- uses: dtolnay/rust-toolchain@46511b1c83438f0dd37c02d843619ece5a4abb5b # 1.97.1
with:
components: rustfmt, clippy
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python }}
- run: python -m pip install "maturin>=1.9.4,<2"
Expand All @@ -59,11 +59,11 @@ jobs:
- {target: x86_64-apple-darwin, platform: darwin-x64, runner: macos-15-intel}
- {target: x86_64-pc-windows-msvc, platform: win32-x64-msvc, runner: windows-latest}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- uses: dtolnay/rust-toolchain@46511b1c83438f0dd37c02d843619ece5a4abb5b # 1.97.1
with:
targets: ${{ matrix.target }}
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with: {node-version: "22"}
- run: cargo build --release --locked -p packvium-node-native --target ${{ matrix.target }}
- run: node scripts/stage-node-addon.mjs ${{ matrix.target }}
Expand All @@ -74,7 +74,7 @@ jobs:
(cd bindings/node && npm pack --dry-run)
(cd bindings/node/npm/${{ matrix.platform }} && npm pack --dry-run)
- if: matrix.platform == 'linux-x64-gnu'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: addon-linux-x64-gnu
path: bindings/node/packvium-native.linux-x64-gnu.node
Expand All @@ -88,11 +88,11 @@ jobs:
matrix:
node: ["16", "18", "20", "22", "24", "26"]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: ${{ matrix.node }}
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with: {name: addon-linux-x64-gnu, path: bindings/node}
- run: node tests/node/addon.test.mjs

Expand All @@ -108,16 +108,16 @@ jobs:
- {target: x86_64-apple-darwin, library: libpackvium_ffi.dylib, runner: macos-15-intel}
- {target: x86_64-pc-windows-msvc, library: packvium_ffi.dll, runner: windows-latest}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- uses: dtolnay/rust-toolchain@46511b1c83438f0dd37c02d843619ece5a4abb5b # 1.97.1
with:
targets: ${{ matrix.target }}
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with: {python-version: "3.13"}
- run: cargo build --release --locked -p packvium-ffi --target ${{ matrix.target }}
- run: python tests/ffi/ffi_smoke.py target/${{ matrix.target }}/release/${{ matrix.library }}
- if: matrix.target == 'x86_64-unknown-linux-gnu'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: ffi-linux-x64
path: target/${{ matrix.target }}/release/${{ matrix.library }}
Expand All @@ -133,8 +133,8 @@ jobs:
matrix:
php: ["8.2", "8.3", "8.4", "8.5"]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with: {name: ffi-linux-x64, path: lib}
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
with:
Expand All @@ -160,7 +160,7 @@ jobs:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
with:
fail-on-severity: low
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
verify-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
# The tag and every packaged version must agree. Without this, `git tag v0.2.0` on a
# tree that still says 0.1.0 publishes 0.1.0 under a name that claims otherwise, and the
# mistake is only visible after it is public and immutable.
Expand Down
58 changes: 31 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
verify-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
# The tag and every packaged version must agree. Without this, `git tag v0.2.0` on a
# tree that still says 0.1.0 publishes 0.1.0 under a name that claims otherwise, and the
# mistake is only visible after it is public and immutable.
Expand Down Expand Up @@ -66,9 +66,9 @@ jobs:
runs-on: ${{ matrix.arch == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
container: quay.io/pypa/manylinux_2_28_${{ matrix.arch }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- name: Install the pinned Rust toolchain
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.97.1
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.97.1 --component rustfmt,clippy
- name: Build an abi3-py39 manylinux_2_28 wheel
working-directory: bindings/python
run: |
Expand All @@ -81,7 +81,7 @@ jobs:
"$python" -m pip install --quiet --no-index --find-links bindings/python/dist packvium-native-rust
"$python" -m unittest discover -s tests/python -v
done
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: wheel-linux-${{ matrix.arch }}
path: bindings/python/dist/*.whl
Expand All @@ -94,9 +94,13 @@ jobs:
os: [macos-15, macos-15-intel, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
# The components rust-toolchain.toml names, installed up front: left to maturin's first
# `cargo metadata`, rustup tries to add rustfmt over the runner's own cargo-fmt and fails.
- uses: dtolnay/rust-toolchain@46511b1c83438f0dd37c02d843619ece5a4abb5b # 1.97.1
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
components: rustfmt, clippy
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.9"
- run: python -m pip install "maturin>=1.9.4,<2"
Expand All @@ -105,12 +109,12 @@ jobs:
- run: python -m pip install --no-index --find-links bindings/python/dist packvium-native-rust
- run: python -m unittest discover -s tests/python -v
# Test the exact floor-built wheel on the newest interpreter before publishing it.
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.14"
- run: python -m pip install --no-index --find-links bindings/python/dist packvium-native-rust
- run: python -m unittest discover -s tests/python -v
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: wheel-${{ matrix.os }}
path: bindings/python/dist/*.whl
Expand All @@ -127,16 +131,16 @@ jobs:
- {target: x86_64-pc-windows-msvc, platform: win32-x64-msvc, runner: windows-latest}
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- uses: dtolnay/rust-toolchain@46511b1c83438f0dd37c02d843619ece5a4abb5b # 1.97.1
with:
targets: ${{ matrix.target }}
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with: {node-version: "22"}
- run: cargo build --release --locked -p packvium-node-native --target ${{ matrix.target }}
- run: node scripts/stage-node-addon.mjs ${{ matrix.target }}
- run: node tests/node/addon.test.mjs
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: addon-${{ matrix.platform }}
path: bindings/node/npm/${{ matrix.platform }}/packvium-native.${{ matrix.platform }}.node
Expand All @@ -154,11 +158,11 @@ jobs:
- {target: x86_64-pc-windows-msvc, library: packvium_ffi.dll, asset: packvium_ffi-x86_64-pc-windows-msvc.dll, runner: windows-latest}
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- uses: dtolnay/rust-toolchain@46511b1c83438f0dd37c02d843619ece5a4abb5b # 1.97.1
with:
targets: ${{ matrix.target }}
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with: {python-version: "3.13"}
- run: cargo build --release --locked -p packvium-ffi --target ${{ matrix.target }}
- run: python tests/ffi/ffi_smoke.py target/${{ matrix.target }}/release/${{ matrix.library }}
Expand All @@ -167,7 +171,7 @@ jobs:
run: |
mkdir -p assets
cp "target/${{ matrix.target }}/release/${{ matrix.library }}" "assets/${{ matrix.asset }}"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: ffi-${{ matrix.target }}
path: assets/${{ matrix.asset }}
Expand All @@ -182,14 +186,14 @@ jobs:
id-token: write # the attestation
attestations: write # build provenance, so a consumer can verify where a file came from
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with: {node-version: "22"}
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with: {pattern: wheel-*, path: dist, merge-multiple: true}
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with: {pattern: addon-*, path: addons}
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with: {pattern: ffi-*, path: assets, merge-multiple: true}
- name: Five wheels, four addons and five libraries, no more and no fewer
run: |
Expand Down Expand Up @@ -239,11 +243,11 @@ jobs:
dist/*.whl
packages/*.tgz
assets/*
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with: {name: wheels, path: dist/*.whl}
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with: {name: npm-packages, path: packages/*.tgz}
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with: {name: release-assets, path: assets/*}

publish-pypi:
Expand All @@ -253,7 +257,7 @@ jobs:
permissions:
id-token: write # OIDC, for Trusted Publishing and PyPI's own attestations
steps:
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with: {name: wheels, path: dist}
# A re-run after a partial upload finishes the release instead of failing on the files
# already there; PyPI never lets an existing file be replaced, so nothing is overwritten.
Expand All @@ -269,15 +273,15 @@ jobs:
permissions:
id-token: write # npm Trusted Publishing and provenance
steps:
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with: {node-version: "22", registry-url: "https://registry.npmjs.org"}
# npm's OIDC trusted publishing needs npm 11.5.1 or newer; Node 22 still bundles npm 10,
# which performs no OIDC exchange at all. The publish then goes out unauthenticated and
# the registry answers `404 Not Found - PUT`, which reads exactly like a missing package
# rather than a missing credential.
- run: npm install -g npm@^11.5.1
- run: npm --version
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with: {name: npm-packages, path: packages}
# Platform packages first: the root package names them as optional dependencies, and a
# pin must never point at a version the registry does not serve.
Expand Down Expand Up @@ -307,8 +311,8 @@ jobs:
permissions:
contents: write # the Release is the only thing this workflow writes to the repository
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with: {name: release-assets, path: assets}
- name: Create the GitHub Release from the tag, with the C libraries attached
env:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ PyPI, `@packvium/native` and its platform packages on npm, and the C library on
Releases. The format follows [Keep a Changelog](https://keepachangelog.com/1.1.0/) and this
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.9.0]

The compiled engines rebuilt on the 1.9.0 core: the centre of gravity is checked under a support
ratio, a length past `2^53 - 1` ticks or an empty side is refused with a pointer, nesting under a
clearance agrees with the other engines, and `exact_small` is 9-28% faster where it runs.

## [1.8.0]

The first release of the compiled engines. Each binary is built from the Rust source in this
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type: software
authors:
- name: "Packvium contributors"
website: "https://packvium.com"
version: "1.8.0"
version: "1.9.0"
license: MIT
url: "https://packvium.com"
repository-code: "https://github.com/toxakara/packvium-native"
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ members = [
default-members = ["crates/packvium-core", "crates/packvium-ffi"]

[workspace.package]
version = "1.8.0"
version = "1.9.0"
edition = "2024"
rust-version = "1.88"
license = "MIT"
Expand All @@ -26,4 +26,4 @@ thiserror = "2.0.19"
# package hashes too; default features off, it needs nothing from std.
sha2 = { version = "0.10.9", default-features = false }
web-time = "1.1.0"
packvium-core = { path = "crates/packvium-core", version = "1.8.0" }
packvium-core = { path = "crates/packvium-core", version = "1.9.0" }
Loading
Loading