Skip to main content

c2pa_c/
lib.rs

1// Copyright 2023 Adobe. All rights reserved.
2// This file is licensed to you under the Apache License,
3// Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
4// or the MIT license (http://opensource.org/licenses/MIT),
5// at your option.
6// Unless required by applicable law or agreed to in writing,
7// this software is distributed on an "AS IS" BASIS, WITHOUT
8// WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or
9// implied. See the LICENSE-MIT and LICENSE-APACHE files for the
10// specific language governing permissions and limitations under
11// each license.
12
13/// This module exports a C2PA library
14mod c2pa_stream;
15#[macro_use]
16mod cimpl;
17mod c_api;
18mod error;
19#[cfg(feature = "file_io")]
20mod json_api;
21mod maybe_send_sync;
22mod signer_info;
23
24pub use c2pa::{
25    AsyncSigner, Builder, Error as C2paError, Reader, Result as C2paResult, Signer, SigningAlg,
26};
27pub use c2pa_stream::*;
28pub use c_api::*;
29// Re-export for macro use
30#[doc(hidden)]
31pub use cimpl::cimpl_error::CimplError;
32pub use cimpl::*;
33pub use error::{Error, Result};
34pub use signer_info::SignerInfo;