Skip to main content

Rust library FAQs

note

These FAQs are based on discussions in the public CAI Discord server from April through October 2026. To view a linked Discord message, sign in to a Discord account and join the CAI server.

How do I avoid sidecar filename collisions?​

Assets with the same base name can produce the same default sidecar filename. For example, file.obj and file.mtl can both produce file.c2pa.

Rename each sidecar immediately after creating it, retaining the asset's original extension in the sidecar filename. For example:

file.obj.c2pa
file.mtl.c2pa

When reading an asset with C2PA Tool, specify the corresponding sidecar with --external-manifest.

Source: Renaming sidecars, September 16, 2026

Can I use the Rust implementation from a Java backend?​

The SDK does not provide a Java binding. The Android bindings are designed for Android, not as a general-purpose Java package. Adapting them for a Java service requires additional work.

You could use the Rust implementation's C API to integrate through JNI.

Source: Android scope and C API integration route, September 14, 2026