Cargo Features

[dependencies]
c2pa = { version = "0.39.0", default-features = false, features = ["add_thumbnails", "psxxx_ocsp_stapling_experimental", "file_io", "serialize_thumbnails", "no_interleaved_io", "fetch_remote_manifests", "openssl_sign", "json_schema", "pdf", "v1_api", "unstable_api", "openssl_ffi_mutex", "diagnostics"] }
default = v1_api

The v1_api feature is set by default whenever c2pa is added without default-features = false somewhere in the dependency tree.

add_thumbnails = image
psxxx_ocsp_stapling_experimental
file_io no_interleaved_io? = openssl_sign

Affects builder::Builder.base_path, create_signer::from_files, ingredient::IngredientOptions, ingredient::DefaultOptions, jumbf_io::save_jumbf_to_file, jumbf_io::load_jumbf_from_file, jumbf_io::remove_jumbf_from_file, temp_signer::get_ec_signer, temp_signer::get_ed_signer, temp_signer::get_rsa_signer, mime::format_to_extension, test::temp_signer_file, test::write_jpeg_placeholder_file, test::temp_signer_with_alg, thumbnail::make_thumbnail

serialize_thumbnails
no_interleaved_io = file_io
fetch_remote_manifests
openssl_sign file_io? = openssl

Affects c2pa::create_signer, temp_signer_async::AsyncSignerAdapter, test::temp_async_signer

json_schema

Enables schemars

pdf

Enables lopdf ^0.31.0

Affects asset_handlers::pdf_io

v1_api default
unstable_api

Affects resource_store::ResourceResolver

openssl_ffi_mutex
diagnostics

The diagnostics feature is unsupported and might be removed.
It enables some low-overhead timing features used in our development cycle.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

image not wasm32 add_thumbnails?

Enables image ^0.24.7

openssl not wasm32 openssl_sign?