-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adds tests, clippy, formatting, and auditing to CI
changes the following to appease the new CI rules: * ignores unused dep warning for openssl-sys. * runs cargo +nightly fmt on source. * fixes clippy issues. * removes modules from V1 that weren't being used. These modules were behind v1 feature flags that had been removed as well. * adds deny.toml from c2pa-rs.
- Loading branch information
Dylan Ross
committed
Oct 29, 2024
1 parent
11745b9
commit ab84539
Showing
10 changed files
with
242 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ authors = ["Gavin Peacock <[email protected]"] | |
name = "c2pa" | ||
crate-type = ["cdylib"] | ||
|
||
[package.metadata.cargo-udeps.ignore] | ||
normal = ["openssl-src"] | ||
|
||
[dependencies] | ||
c2pa = {version = "0.35.0", features = ["unstable_api", "file_io", "openssl", "pdf", "fetch_remote_manifests"]} | ||
|
@@ -20,7 +22,6 @@ thiserror = "1.0.49" | |
uniffi = "0.24.1" | ||
openssl-src = "=300.3.1" # Required for openssl-sys | ||
log = "0.4.21" | ||
env_logger = "0.11.3" | ||
|
||
[build-dependencies] | ||
uniffi = { version = "0.24.1", features = ["build"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Configuration used for dependency checking with cargo-deny. | ||
# | ||
# For further details on all configuration options see: | ||
# https://embarkstudios.github.io/cargo-deny/checks/cfg.html | ||
|
||
[graph] | ||
targets = [ | ||
{ triple = "x86_64-unknown-linux-gnu" }, | ||
{ triple = "x86_64-apple-darwin" }, | ||
{ triple = "x86_64-pc-windows-msvc" }, | ||
{ triple = "aarch64-apple-darwin" }, | ||
{ triple = "wasm32-unknown-unknown" }, | ||
] | ||
|
||
[advisories] | ||
yanked = "deny" | ||
|
||
ignore = [ | ||
"RUSTSEC-2021-0127", # serde_cbor | ||
"RUSTSEC-2023-0071", # rsa Marvin Attack: (https://jira.corp.adobe.com/browse/CAI-5104) | ||
] | ||
|
||
[bans] | ||
multiple-versions = "allow" | ||
|
||
[licenses] | ||
allow = [ | ||
"Apache-2.0", | ||
"BSD-2-Clause", | ||
"BSD-3-Clause", | ||
"CC0-1.0", | ||
"ISC", | ||
"LicenseRef-ring", | ||
"MIT", | ||
"MPL-2.0", | ||
"Unicode-DFS-2016", | ||
"Zlib", | ||
] | ||
confidence-threshold = 0.9 | ||
|
||
[[licenses.clarify]] | ||
name = "ring" | ||
expression = "LicenseRef-ring" | ||
license-files = [ | ||
{ path = "LICENSE", hash = 3171872035 } | ||
] | ||
|
||
[sources] | ||
unknown-registry = "deny" | ||
unknown-git = "deny" | ||
allow-registry = ["https://github.com/rust-lang/crates.io-index"] | ||
allow-git = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.