Skip to content

Commit 4f33478

Browse files
committed
Merge branch 'test/deployment-rust188-deps'
2 parents 9da926e + 3b62b88 commit 4f33478

7 files changed

Lines changed: 47 additions & 25 deletions

File tree

.github/workflows/cross_platform_tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ jobs:
3131
- uses: actions/checkout@v4
3232
with:
3333
submodules: recursive
34+
35+
- name: Set up Rust 1.88.0
36+
uses: dtolnay/rust-toolchain@stable
37+
with:
38+
toolchain: 1.88.0
39+
40+
- name: Verify Rust version
41+
run: rustc --version
3442

3543
- name: Set up Python ${{ matrix.python-version }}
3644
uses: actions/setup-python@v4
@@ -164,4 +172,4 @@ jobs:
164172
- name: Publish to PyPI
165173
uses: pypa/gh-action-pypi-publish@release/v1
166174

167-
175+

Cargo.lock

Lines changed: 28 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fast-c2pa-python"
3-
version = "0.1.6"
3+
version = "0.1.7"
44
edition = "2021"
55
authors = ["Sightengine <info@sightengine.com>"]
66
license = "MIT OR Apache-2.0"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "fast-c2pa-python"
7-
version = "0.1.6"
7+
version = "0.1.7"
88
description = "Fast Python library for reading C2PA metadata using PyO3 bindings to c2pa-rs"
99
authors = [{name = "Sightengine", email = "info@sightengine.com"}]
1010
license = {text = "MIT OR Apache-2.0"}
@@ -30,4 +30,4 @@ classifiers = [
3030

3131
[tool.maturin]
3232
features = ["pyo3/extension-module"]
33-
python-packages = ["fast_c2pa_python"]
33+
python-packages = ["fast_c2pa_python"]

rust-toolchain.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[toolchain]
2+
channel = "1.88.0"
3+
components = ["rustfmt", "clippy"]
4+
profile = "minimal"
-1.54 MB
Loading

tests/test_performance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Performance benchmark tests for fast_c2pa_python.
33
4-
These tests verify that our implementation is at least 30x faster than c2pa-python,
4+
These tests verify that our implementation is at least 10x faster than c2pa-python,
55
focusing on relative performance rather than absolute time measurements.
66
"""
77

@@ -34,7 +34,7 @@ def get_performance_settings():
3434
These settings can be overridden by environment variables.
3535
"""
3636
# Default minimum speedup factor (can be overridden)
37-
default_speedup_factor = 20.0
37+
default_speedup_factor = 10.0
3838

3939
# Allow overriding thresholds via environment variables
4040
speedup_factor = float(os.environ.get("FAST_C2PA_MIN_SPEEDUP_FACTOR", default_speedup_factor))
@@ -109,4 +109,4 @@ def test_compare_performance(setup_test_image_bytes):
109109
assert speedup >= settings["speedup_factor"], (
110110
f"fast_c2pa_python is only {speedup:.2f}x faster than c2pa-python, "
111111
f"but at least {settings['speedup_factor']}x speedup is required"
112-
)
112+
)

0 commit comments

Comments
 (0)