Cargo Features
[dependencies]
c2pa = { version = "0.40.0", default-features = false, features = ["add_thumbnails", "file_io", "serialize_thumbnails", "no_interleaved_io", "fetch_remote_manifests", "openssl", "openssl_sign", "json_schema", "pdf", "v1_api", "unstable_api", "diagnostics"] }
- default = v1_api
-
The
v1_api
feature is set by default wheneverc2pa
is added without
somewhere in the dependency tree.default-features = false - add_thumbnails = image
- 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
,mime::format_to_extension
,test::temp_signer_file
,test::write_jpeg_placeholder_file
,thumbnail::make_thumbnail
… - serialize_thumbnails
- no_interleaved_io = file_io
- fetch_remote_manifests
- openssl openssl_sign?
-
Enables openssl, openssl of c2pa-crypto
- openssl_sign file_io? = openssl
-
Enables openssl of c2pa-crypto
Affects
c2pa::create_signer
… - json_schema
-
Enables schemars, json_schema of c2pa-crypto
-
Enables lopdf ^0.31.0
Affects
asset_handlers::pdf_io
… - v1_api default
- unstable_api
-
Affects
resource_store::ResourceResolver
… - 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