c2pa-c-ffi

Crates.ioc2pa-c-ffi
lib.rsc2pa-c-ffi
version0.66.0
created_at2025-06-18 21:23:09.404882+00
updated_at2025-09-24 19:58:52.250074+00
descriptionC language FFI base for c2pa crate to create bindings
homepagehttps://contentauthenticity.org
repositoryhttps://github.com/contentauth/c2pa-rs
max_upload_size
id1717616
size235,821
CAI Open Source Builds (caiopensrc)

documentation

https://docs.rs/c2pa-c-ffi

README

C2PA C API

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.

Overview

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.

Building locally

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.

Commit count: 1189

cargo fmt