Skip to content

Commit 7ee651d

Browse files
authored
chore: Update to latest maturin/uniffi (#65)
* Makefile * WIP * Up maturin * Up maturin * WIP * up * WIP * WIP * Revert name changes * WIP * WIP * Fix version for build * WIP * Name change * Update .gitignore * Update lib.rs * Update Makefile * Reexport Signer * Fix pyproject build
1 parent a3f51b2 commit 7ee651d

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ authors = ["Gavin Peacock <[email protected]"]
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88
[lib]
9-
name = "c2pa"
10-
crate-type = ["cdylib"]
9+
crate-type = ["lib", "cdylib"]
1110

1211
[package.metadata.cargo-udeps.ignore]
1312
normal = ["openssl-src"]
@@ -19,9 +18,9 @@ serde = { version = "1.0.197", features = ["derive"] }
1918
serde_derive = "1.0"
2019
serde_json = "1.0"
2120
thiserror = "1.0.49"
22-
uniffi = "0.24.1"
21+
uniffi = "0.28.2"
2322
openssl-src = "=300.3.1" # Required for openssl-sys
2423
log = "0.4.21"
2524

2625
[build-dependencies]
27-
uniffi = { version = "0.24.1", features = ["build"] }
26+
uniffi = { version = "0.28.2", features = ["build"] }

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# For Python bindings ===========================================================
2+
3+
# Start from clean env: Delete `.venv`, then `python3 -m venv .venv`
4+
# Pre-requisite: Python virtual environment is active (source .venv/bin/activate)
5+
build-python: release
6+
python3 -m venv .venv
7+
source .venv/bin/activate
8+
python3 -m pip install -r requirements.txt
9+
maturin develop

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[build-system]
2-
requires = ["maturin>=1.2,<2.0","uniffi_bindgen>=0.24,<0.25"]
2+
requires = ["maturin>=1.7.4,<2.0","uniffi_bindgen>=0.28,<0.30"]
33
build-backend = "maturin"
44

55
[project]
6-
name = "c2pa-python"
6+
name = "c2pa"
77
dependencies = ["cffi"]
88
requires-python = ">=3.7"
99
description = "Python bindings for the C2PA Content Authenticity Initiative (CAI) library"

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
maturin==1.2.0
2-
uniffi-bindgen==0.24.1
1+
maturin==1.7.4
2+
uniffi-bindgen==0.28.0
33
cryptography==43.0.1

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use std::env;
1515
use std::sync::RwLock;
1616

17-
pub use c2pa::SigningAlg;
17+
pub use c2pa::{Signer, SigningAlg};
1818

1919
/// these all need to be public so that the uniffi macro can see them
2020
mod error;

0 commit comments

Comments
 (0)