Crates.io | c2pa-c-ffi |
lib.rs | c2pa-c-ffi |
version | 0.66.0 |
created_at | 2025-06-18 21:23:09.404882+00 |
updated_at | 2025-09-24 19:58:52.250074+00 |
description | C language FFI base for c2pa crate to create bindings |
homepage | https://contentauthenticity.org |
repository | https://github.com/contentauth/c2pa-rs |
max_upload_size | |
id | 1717616 |
size | 235,821 |
This is the C API wrapper for the C2PA Rust SDK. It provides a C-compatible interface for working with content credentials, with same formats supported as the Rust SDK. This crate can also be used in Rust code to write C-compatible bindings with the exposed types.
The C2PA C API allows developers to integrate content authenticity features into their applications using C or any language that can interface with C libraries.
Pre-requisite: You will need the Rust toolchain (cargo) installed.
To build and test locally, run:
make test
The build will have 2 features activated: rust_native_crypto
and file_io
.
Note that running the make test
command will also check formatting of the code.