You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"vodozemac" = { version = "0.8", default-features = false }
then cargo check returns this compile error:
Error
Checking vodozemac v0.8.0
error[E0599]: no function or associated item named `new_pickle` found for struct `Cipher` in the current scope
--> /home/denis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/vodozemac-0.8.0/src/utilities/mod.rs:50:41
|
50 | let cipher = crate::cipher::Cipher::new_pickle(pickle_key);
| ^^^^^^^^^^ function or associated item not found in `Cipher`
|
::: /home/denis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/vodozemac-0.8.0/src/cipher/mod.rs:97:1
|
97 | pub struct Cipher {
| ----------------- function or associated item `new_pickle` not found for this struct
|
note: if you're trying to build a new `Cipher` consider using one of the following associated functions:
Cipher::new
Cipher::new_megolm
--> /home/denis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/vodozemac-0.8.0/src/cipher/mod.rs:110:5
|
110 | pub fn new(key: &[u8; 32]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
125 | pub fn new_megolm(&key: &[u8; 128]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0599]: no function or associated item named `new_pickle` found for struct `Cipher` in the current scope
--> /home/denis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/vodozemac-0.8.0/src/utilities/mod.rs:65:41
|
65 | let cipher = crate::cipher::Cipher::new_pickle(pickle_key);
| ^^^^^^^^^^ function or associated item not found in `Cipher`
|
::: /home/denis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/vodozemac-0.8.0/src/cipher/mod.rs:97:1
|
97 | pub struct Cipher {
| ----------------- function or associated item `new_pickle` not found for this struct
|
note: if you're trying to build a new `Cipher` consider using one of the following associated functions:
Cipher::new
Cipher::new_megolm
--> /home/denis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/vodozemac-0.8.0/src/cipher/mod.rs:110:5
|
110 | pub fn new(key: &[u8; 32]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
125 | pub fn new_megolm(&key: &[u8; 128]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0599`.
error: could not compile `vodozemac` (lib) due to 2 previous errors
$ cargo check -p vodozemac --no-default-features
Checking vodozemac v0.8.0 (/home/denis/Projects/vodozemac)
error[E0599]: no function or associated item named `new_pickle` found for struct `Cipher` in the current scope
--> src/utilities/mod.rs:50:41
|
50 | let cipher = crate::cipher::Cipher::new_pickle(pickle_key);
| ^^^^^^^^^^ function or associated item not found in `Cipher`
|
::: src/cipher/mod.rs:97:1
|
97 | pub struct Cipher {
| ----------------- function or associated item `new_pickle` not found for this struct
|
note: if you're trying to build a new `Cipher` consider using one of the following associated functions:
Cipher::new
Cipher::new_megolm
--> src/cipher/mod.rs:110:5
|
110 | pub fn new(key: &[u8; 32]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
125 | pub fn new_megolm(&key: &[u8; 128]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0599]: no function or associated item named `new_pickle` found for struct `Cipher` in the current scope
--> src/utilities/mod.rs:65:41
|
65 | let cipher = crate::cipher::Cipher::new_pickle(pickle_key);
| ^^^^^^^^^^ function or associated item not found in `Cipher`
|
::: src/cipher/mod.rs:97:1
|
97 | pub struct Cipher {
| ----------------- function or associated item `new_pickle` not found for this struct
|
note: if you're trying to build a new `Cipher` consider using one of the following associated functions:
Cipher::new
Cipher::new_megolm
--> src/cipher/mod.rs:110:5
|
110 | pub fn new(key: &[u8; 32]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
125 | pub fn new_megolm(&key: &[u8; 128]) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `zeroize::Zeroize`
--> src/utilities/mod.rs:48:9
|
48 | use zeroize::Zeroize;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
For more information about this error, try `rustc --explain E0599`.
warning: `vodozemac` (lib) generated 1 warning
error: could not compile `vodozemac` (lib) due to 2 previous errors; 1 warning emitted
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
Either add the crate into dependencies as:
then
cargo check
returns this compile error:Error
or, just checkout
0.8.0
tag:which will produce the same error message:
Error
The text was updated successfully, but these errors were encountered: