simple-c2pa

This is a fork of https://gitlab.com/guardianproject/proofmode/simple-c2pa
git clone git://archive.git.mtrnord.blog/mtrnords-photography-manager/simple-c2pa.git
Log | Files | Refs | README | LICENSE

commit 3ce89fdd55a7f0c4ccbe7601be453317189288fd
parent dd7c5d534f1ce67d13c2454fbb984c6f446ab830
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 22 Jun 2024 11:48:21 +0200

Add missing imports and use local patched sdk for cr3

Diffstat:
A.idea/.gitignore | 5+++++
A.idea/modules.xml | 9+++++++++
A.idea/simple-c2pa.iml | 13+++++++++++++
A.idea/vcs.xml | 7+++++++
MCargo.toml | 2+-
Msrc/lib.rs | 16+++++++++-------
6 files changed, 44 insertions(+), 8 deletions(-)

diff --git a/.idea/.gitignore b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/modules.xml b/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/.idea/simple-c2pa.iml" filepath="$PROJECT_DIR$/.idea/simple-c2pa.iml" /> + </modules> + </component> +</project> +\ No newline at end of file diff --git a/.idea/simple-c2pa.iml b/.idea/simple-c2pa.iml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="EMPTY_MODULE" version="4"> + <component name="NewModuleRootManager"> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" /> + <excludeFolder url="file://$MODULE_DIR$/target" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + </component> +</module> +\ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="" vcs="Git" /> + </component> +</project> +\ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.14" edition = "2021" [dependencies] -c2pa = { version = "0.28.4", features = ["file_io", "add_thumbnails"] } +c2pa = { version = "0.32.1", features = ["file_io", "add_thumbnails"], path = "/run/media/marcel/1ac60e61-e5e2-4157-9a7a-830801a3fb0b/projects/c2pa-rs/sdk" } openssl = "0.10.48" log = "0.4.20" ring = "0.17.7" diff --git a/src/lib.rs b/src/lib.rs @@ -1,16 +1,18 @@ +pub use assertions::{AIDataMiningUsage, CustomAITrainingOptions, ExifData}; +pub use certificates::{ + Certificate, CertificateOptions, CertificateType, create_certificate, + create_content_credentials_certificate, create_private_key, create_root_certificate, request_signed_certificate, +}; +pub use common::FileData; +pub use content_credentials::{ApplicationInfo, ContentCredentials}; + uniffi::setup_scaffolding!("simple_c2pa"); mod common; -pub use common::FileData; mod certificates; -pub use certificates::{ - create_certificate, create_content_credentials_certificate, create_private_key, - create_root_certificate, request_signed_certificate, CertificateOptions, CertificateType, -}; mod content_credentials; -pub use content_credentials::{ApplicationInfo, ContentCredentials}; mod assertions; -pub use assertions::{AIDataMiningUsage, CustomAITrainingOptions, ExifData}; +