WIP on quick prototype using embeddable manifest test suite #8
ci.yml
on: pull_request
Clippy
1m 47s
Enforce Rust code format
11s
Preflight docs.rs build
1m 49s
Check for unused dependencies
1m 56s
Matrix: License / vulnerability audit
Matrix: Preflight crate publish
Matrix: Unit tests with default features disabled
Matrix: Unit tests with minimum versions of direct dependencies
Matrix: Unit tests
Matrix: Unit tests
Annotations
24 errors and 23 warnings
no method named `write_all` found for struct `std::io::Cursor` in the current scope:
src/tests/poc.rs#L127
error[E0599]: no method named `write_all` found for struct `std::io::Cursor` in the current scope
--> src/tests/poc.rs:127:16
|
127 | out_stream.write_all(&after_buf).unwrap();
| ^^^^^^^^^ method not found in `Cursor<Vec<_>>`
|
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
14 + use ciborium_io::Write;
|
14 + use serde_cbor::write::Write;
|
14 + use std::io::Write;
|
|
no method named `read_to_end` found for struct `std::fs::File` in the current scope:
src/tests/poc.rs#L123
error[E0599]: no method named `read_to_end` found for struct `std::fs::File` in the current scope
--> src/tests/poc.rs:123:16
|
123 | input_file.read_to_end(&mut after_buf).unwrap();
| ^^^^^^^^^^^ method not found in `File`
--> /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/io/mod.rs:819:8
|
= note: the method is available for `std::fs::File` here
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
14 + use std::io::Read;
|
|
no method named `write_all` found for struct `std::io::Cursor` in the current scope:
src/tests/poc.rs#L119
error[E0599]: no method named `write_all` found for struct `std::io::Cursor` in the current scope
--> src/tests/poc.rs:119:16
|
119 | out_stream.write_all(placeholder).unwrap();
| ^^^^^^^^^ method not found in `Cursor<Vec<_>>`
|
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
14 + use ciborium_io::Write;
|
14 + use serde_cbor::write::Write;
|
14 + use std::io::Write;
|
|
no method named `write_all` found for struct `std::io::Cursor` in the current scope:
src/tests/poc.rs#L116
error[E0599]: no method named `write_all` found for struct `std::io::Cursor` in the current scope
--> src/tests/poc.rs:116:16
|
116 | out_stream.write_all(&before).unwrap();
| ^^^^^^^^^ method not found in `Cursor<Vec<_>>`
|
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
14 + use ciborium_io::Write;
|
14 + use serde_cbor::write::Write;
|
14 + use std::io::Write;
|
|
no method named `read_exact` found for struct `std::fs::File` in the current scope:
src/tests/poc.rs#L112
error[E0599]: no method named `read_exact` found for struct `std::fs::File` in the current scope
--> src/tests/poc.rs:112:16
|
112 | input_file.read_exact(before.as_mut_slice()).unwrap();
| ^^^^^^^^^^ method not found in `File`
|
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
14 + use ciborium_io::Read;
|
14 + use std::io::Read;
|
|
no function or associated item named `from_file` found for struct `c2pa::ManifestStore` in the current scope:
src/tests/poc.rs#L73
error[E0599]: no function or associated item named `from_file` found for struct `c2pa::ManifestStore` in the current scope
--> src/tests/poc.rs:73:41
|
73 | let manifest_store = ManifestStore::from_file(&output).expect("from_file");
| ^^^^^^^^^ function or associated item not found in `ManifestStore`
|
note: if you're trying to build a new `c2pa::ManifestStore` consider using one of the following associated functions:
c2pa::ManifestStore::new
c2pa::ManifestStore::from_store
c2pa::ManifestStore::from_store_impl
c2pa::ManifestStore::from_manifest
and 3 others
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/c2pa-0.30.1/src/manifest_store.rs:47:5
|
47 | pub fn new() -> Self {
| ^^^^^^^^^^^^^^^^^^^^
...
85 | pub(crate) fn from_store(store: &Store, validation_log: &impl StatusTracker) -> ManifestStore {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
105 | / fn from_store_impl(
106 | | store: &Store,
107 | | validation_log: &impl StatusTracker,
108 | | #[cfg(feature = "file_io")] resource_path: Option<&Path>,
109 | | ) -> ManifestStore {
| |______________________^
...
141 | pub fn from_manifest(manifest: &Manifest) -> Result<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
mismatched types:
src/tests/poc.rs#L52
error[E0308]: mismatched types
--> src/tests/poc.rs:52:60
|
52 | let offset = write_jpeg_placeholder_file(&placeholder, &ap, &mut output_file, None).unwrap();
| --------------------------- ^^^ expected `&Path`, found `&String`
| |
| arguments to this function are incorrect
|
= note: expected reference `&std::path::Path`
found reference `&std::string::String`
note: function defined here
--> src/tests/poc.rs:92:8
|
92 | pub fn write_jpeg_placeholder_file(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
93 | placeholder: &[u8],
94 | input: &Path,
| ------------
|
cannot find type `Hasher` in this scope:
src/tests/poc.rs#L96
error[E0412]: cannot find type `Hasher` in this scope
--> src/tests/poc.rs:96:29
|
96 | mut hasher: Option<&mut Hasher>,
| ^^^^^^ not found in this scope
|
help: consider importing one of these items
|
14 + use core::hash::Hasher;
|
14 + use std::hash::Hasher;
|
|
Clippy
Clippy had exited with the 101 exit code
|
Unit tests with default features disabled (ubuntu-latest)
Process completed with exit code 101.
|
Unit tests with minimum versions of direct dependencies (ubuntu-latest)
Process completed with exit code 101.
|
Unit tests (ubuntu-latest, stable)
Process completed with exit code 1.
|
Check for unused dependencies
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
|
Unit tests (ubuntu-latest, 1.74.0)
Process completed with exit code 1.
|
Unit tests with default features disabled (macos-latest)
Process completed with exit code 101.
|
Unit tests (macos-latest, 1.74.0)
Process completed with exit code 1.
|
Unit tests (aarch64-unknown-linux-gnu, stable)
Process completed with exit code 101.
|
Unit tests (aarch64-unknown-linux-gnu, 1.74.0)
Process completed with exit code 101.
|
Unit tests (macos-latest, stable)
Process completed with exit code 1.
|
Unit tests with minimum versions of direct dependencies (macos-latest)
Process completed with exit code 101.
|
Unit tests with minimum versions of direct dependencies (windows-latest)
Process completed with exit code 1.
|
Unit tests with default features disabled (windows-latest)
Process completed with exit code 1.
|
Unit tests (windows-latest, 1.74.0)
Process completed with exit code 1.
|
Unit tests (windows-latest, stable)
Process completed with exit code 1.
|
Enforce Rust code format
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Preflight crate publish (ubuntu-latest, stable)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
License / vulnerability audit (bans licenses sources)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
License / vulnerability audit (advisories)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Preflight docs.rs build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests with default features disabled (ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests with minimum versions of direct dependencies (ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests (ubuntu-latest, stable)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Check for unused dependencies
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, aig787/cargo-udeps-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Check for unused dependencies
The following actions uses node12 which is deprecated and will be forced to run on node16: aig787/cargo-udeps-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Unit tests (ubuntu-latest, 1.74.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests with default features disabled (macos-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests (macos-latest, 1.74.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests (aarch64-unknown-linux-gnu, stable)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests (aarch64-unknown-linux-gnu, 1.74.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests (macos-latest, stable)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests with minimum versions of direct dependencies (macos-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests with minimum versions of direct dependencies (windows-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests with default features disabled (windows-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests (windows-latest, 1.74.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit tests (windows-latest, stable)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|