diff --git a/Cargo.toml b/Cargo.toml index 5441e2c..70b82d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,11 +12,7 @@ crate-type = ["lib", "cdylib"] normal = ["openssl-src"] [dependencies] -c2pa = {version = "0.38.0", features = ["unstable_api", "file_io", "openssl", "pdf", "fetch_remote_manifests"]} -pem = "3.0.3" -serde = { version = "1.0.197", features = ["derive"] } -serde_derive = "1.0" -serde_json = "1.0" +c2pa = {version = "0.40.0", features = ["unstable_api", "file_io", "openssl", "pdf", "fetch_remote_manifests"]} thiserror = "1.0.49" uniffi = "0.28.2" openssl-src = "=300.3.1" # Required for openssl-sys diff --git a/deny.toml b/deny.toml index b62b196..7d2c442 100644 --- a/deny.toml +++ b/deny.toml @@ -18,6 +18,8 @@ yanked = "deny" ignore = [ "RUSTSEC-2021-0127", # serde_cbor "RUSTSEC-2023-0071", # rsa Marvin Attack: (https://jira.corp.adobe.com/browse/CAI-5104) + "RUSTSEC-2024-0384", # instant (https://github.com/contentauth/c2pa-rs/issues/663) + "RUSTSEC-2024-0399", # tokio-rustls server: https://rustsec.org/advisories/RUSTSEC-2024-0399 ] [bans] diff --git a/src/lib.rs b/src/lib.rs index 015c8d4..169ccfa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,6 +10,9 @@ // specific language governing permissions and limitations under // each license. +// Uniffi is generating a clippy error in their output. This ignores that error. +#![allow(clippy::empty_line_after_doc_comments)] + /// This module exports a C2PA library use std::env; use std::sync::RwLock; diff --git a/src/streams.rs b/src/streams.rs index 9cdb1c1..cab0a6e 100644 --- a/src/streams.rs +++ b/src/streams.rs @@ -80,7 +80,7 @@ impl<'a> From<&'a dyn Stream> for StreamAdapter<'a> { // impl<'a> c2pa::CAIReadWrite for StreamAdapter<'a> {} -impl<'a> Read for StreamAdapter<'a> { +impl Read for StreamAdapter<'_> { fn read(&mut self, buf: &mut [u8]) -> std::io::Result { let bytes = self .stream @@ -93,7 +93,7 @@ impl<'a> Read for StreamAdapter<'a> { } } -impl<'a> Seek for StreamAdapter<'a> { +impl Seek for StreamAdapter<'_> { fn seek(&mut self, pos: std::io::SeekFrom) -> std::io::Result { let (pos, mode) = match pos { SeekFrom::Current(pos) => (pos, SeekMode::Current), @@ -107,7 +107,7 @@ impl<'a> Seek for StreamAdapter<'a> { } } -impl<'a> Write for StreamAdapter<'a> { +impl Write for StreamAdapter<'_> { fn write(&mut self, buf: &[u8]) -> std::io::Result { let len = self .stream