From d762471f0f627d1c5fb51d68b418dc7e927a4f8f Mon Sep 17 00:00:00 2001 From: Gavin Peacock Date: Tue, 28 Jan 2025 15:26:14 -0800 Subject: [PATCH 1/3] feat: update for early v2 support --- Cargo.toml | 2 +- src/error.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 496ff863..14ac3c77 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ crate-type = ["lib", "cdylib"] normal = ["openssl-src"] [dependencies] -c2pa = { version = "0.43.0", features = ["unstable_api", "file_io", "openssl", "pdf", "fetch_remote_manifests"]} +c2pa = { git="https://github.com/contentauth/c2pa-rs", branch="main", features = ["file_io", "openssl", "pdf", "fetch_remote_manifests"]} thiserror = "1.0.49" uniffi = "0.28.2" openssl-src = "=300.3.1" # Required for openssl-sys diff --git a/src/error.rs b/src/error.rs index 0953afba..c08bf29d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -64,7 +64,7 @@ impl Error { | TooManyManifestStores => Self::Manifest { reason: err_str }, ClaimMissing { label } => Self::ManifestNotFound { reason: err_str }, AssertionDecoding(_) | ClaimDecoding => Self::Decoding { reason: err_str }, - AssertionEncoding | XmlWriteError | ClaimEncoding => Self::Encoding { reason: err_str }, + AssertionEncoding(_) | XmlWriteError | ClaimEncoding => Self::Encoding { reason: err_str }, InvalidCoseSignature { coset_error } => Self::Signature { reason: err_str }, CoseSignatureAlgorithmNotSupported | CoseMissingKey From e33edc31a918d5341a0b59d49917840de59d7575 Mon Sep 17 00:00:00 2001 From: Gavin Peacock Date: Wed, 29 Jan 2025 14:07:39 -0800 Subject: [PATCH 2/3] feat: Update c2pa-rs with early v2 claim support --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 14ac3c77..f6818478 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ crate-type = ["lib", "cdylib"] normal = ["openssl-src"] [dependencies] -c2pa = { git="https://github.com/contentauth/c2pa-rs", branch="main", features = ["file_io", "openssl", "pdf", "fetch_remote_manifests"]} +c2pa = { version = "0.44.0", features = ["file_io", "openssl", "pdf", "fetch_remote_manifests"]} thiserror = "1.0.49" uniffi = "0.28.2" openssl-src = "=300.3.1" # Required for openssl-sys From af29bd3bfd108fc8d13e4ff99760700d5bc8d806 Mon Sep 17 00:00:00 2001 From: Gavin Peacock Date: Wed, 29 Jan 2025 14:08:49 -0800 Subject: [PATCH 3/3] chore: bump version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f6818478..69bfe988 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "c2pa-python" -version = "0.6.2" +version = "0.6.3" edition = "2021" authors = ["Gavin Peacock