feat: add cargo workpaces + add pass-webauthn
#13
Annotations
9 errors and 3 warnings
check
Process completed with exit code 101.
|
mismatched types:
pass-webauthn/src/impls.rs#L154
error[E0308]: mismatched types
--> pass-webauthn/src/impls.rs:154:9
|
153 | fn user_id(&self) -> HashedUserId {
| ------------ expected `[u8; 32]` because of return type
154 | &self.user_id
| ^^^^^^^^^^^^^ expected `[u8; 32]`, found `&[u8; 32]`
|
help: consider removing the borrow
|
154 - &self.user_id
154 + self.user_id
|
|
no field `public_key` on type `&Credential<Cx>`:
pass-webauthn/src/impls.rs#L129
error[E0609]: no field `public_key` on type `&Credential<Cx>`
--> pass-webauthn/src/impls.rs:129:19
|
129 | &self.public_key,
| ^^^^^^^^^^ unknown field
|
= note: available fields are: `user_id`, `context`, `authenticator_data`, `client_data`, `signature`
|
no method named `as_bytes` found for struct `std::vec::Vec<u8>` in the current scope:
pass-webauthn/src/impls.rs#L113
error[E0599]: no method named `as_bytes` found for struct `std::vec::Vec<u8>` in the current scope
--> pass-webauthn/src/impls.rs:113:70
|
113 | Decode::decode(&mut TrailingZeroInput::new(challenge_str.as_bytes())).map_err(|_| ())?
| ^^^^^^^^
|
= help: items from traits can only be used if the trait is in scope
help: the following traits which provide `as_bytes` are implemented but not in scope; perhaps you want to import one of them
|
1 + use blake2::as_bytes::AsBytes;
|
1 + use std::os::unix::ffi::OsStrExt;
|
1 + use zerocopy::AsBytes;
|
help: there is a method `bytes` with a similar name
|
113 | Decode::decode(&mut TrailingZeroInput::new(challenge_str.bytes())).map_err(|_| ())?
| ~~~~~
|
no field `client_data` on type `&Attestation<Cx>`:
pass-webauthn/src/impls.rs#L50
error[E0609]: no field `client_data` on type `&Attestation<Cx>`
--> pass-webauthn/src/impls.rs:50:55
|
50 | serde_json::from_slice::<Value>(&self.client_data).map_err(|_| ())?;
| ^^^^^^^^^^^ unknown field
|
= note: available fields are: `credential_id`, `context`, `authenticator_data`, `attestation_data`, `public_key`
|
no field `client_data` on type `&Attestation<Cx>`:
pass-webauthn/src/impls.rs#L20
error[E0609]: no field `client_data` on type `&Attestation<Cx>`
--> pass-webauthn/src/impls.rs:20:55
|
20 | serde_json::from_slice::<Value>(&self.client_data).map_err(|_| ())?;
| ^^^^^^^^^^^ unknown field
|
= note: available fields are: `credential_id`, `context`, `authenticator_data`, `attestation_data`, `public_key`
|
failed to resolve: use of undeclared crate or module `sp_io`:
pass-webauthn/src/impls.rs#L4
error[E0433]: failed to resolve: use of undeclared crate or module `sp_io`
--> pass-webauthn/src/impls.rs:4:5
|
4 | use sp_io::hashing::blake2_256;
| ^^^^^ use of undeclared crate or module `sp_io`
|
clippy
Clippy had exited with the 101 exit code
|
test
Process completed with exit code 101.
|
useless use of `vec!`:
verifier/src/lib.rs#L76
warning: useless use of `vec!`
--> verifier/src/lib.rs:76:19
|
76 | let message = vec![authenticator_data, &client_data_hash].concat();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[authenticator_data, &client_data_hash]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
= note: `#[warn(clippy::useless_vec)]` on by default
|
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/
|
clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|