Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i dont can compilling, i update Cargo.toml ring version and untrusted. #14

Open
bottookku opened this issue Feb 24, 2019 · 4 comments
Open

Comments

@bottookku
Copy link

bottookku commented Feb 24, 2019

ring = "0.14.6"
untrusted = "0.6.2"

but i recieve errors and not finishing compilling

ubuntu@ip-172-31-31-153:~/whatsappweb-rs$ cargo build
   Compiling whatsappweb v0.0.2 (/home/ubuntu/whatsappweb-rs)
warning: use of deprecated item 'ws::util::Timeout': use mio-extras instead
  --> src/connection.rs:18:23
   |
18 | use ws::util::{Token, Timeout};
   |                       ^^^^^^^
   |
   = note: #[warn(deprecated)] on by default

warning: use of deprecated item 'ws::util::Timeout': use mio-extras instead
   --> src/connection.rs:691:57
    |
691 |     fn on_new_timeout(&mut self, event: Token, timeout: Timeout) -> ws::Result<()> {
    |                                                         ^^^^^^^

error[E0599]: no method named `public_key_len` found for type `ring::agreement::EphemeralPrivateKey` in the current scope
  --> src/crypto.rs:19:54
   |
19 |     let mut my_public_key = vec![0u8; my_private_key.public_key_len()];
   |                                                      ^^^^^^^^^^^^^^

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
  --> src/crypto.rs:20:20
   |
20 |     my_private_key.compute_public_key(&mut my_public_key).unwrap();
   |                    ^^^^^^^^^^^^^^^^^^ expected 0 parameters

error: aborting due to 2 previous errors

Some errors occurred: E0061, E0599.
For more information about an error, try `rustc --explain E0061`.
error: Could not compile `whatsappweb`.

To learn more, run the command again with --verbose.

@bottookku bottookku changed the title i dont cat compilling, i update Cargo.toml ring version and untrusted. i dont can compilling, i update Cargo.toml ring version and untrusted. Feb 24, 2019
@eeeeeta
Copy link

eeeeeta commented May 18, 2019

I fixed this issue in my own fork with this commit: eeeeeta@6581661 - if you wanted, you could probably just cherry-pick that to get it to compile?

@stephen1331
Copy link

warning: use of deprecated item 'ws::util::Timeout': use mio-extras instead
--> src/connection.rs:18:23
|
18 | use ws::util::{Token, Timeout};
| ^^^^^^^
|
= note: #[warn(deprecated)] on by default

warning: use of deprecated item 'ws::util::Timeout': use mio-extras instead
--> src/connection.rs:691:57
|
691 | fn on_new_timeout(&mut self, event: Token, timeout: Timeout) -> ws::Result<()> {
| ^^^^^^^

error[E0599]: no method named public_key_len found for type ring::agreement::EphemeralPrivateKey in the current scope
--> src/crypto.rs:19:54
|
19 | let mut my_public_key = vec![0u8; my_private_key.public_key_len()];
| ^^^^^^^^^^^^^^

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
--> src/crypto.rs:20:20
|
20 | my_private_key.compute_public_key(&mut my_public_key).unwrap();
| ^^^^^^^^^^^^^^^^^^ expected 0 parameters

warning: use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting
--> src/errors.rs:10:1
|
10 | / error_chain! {
11 | | foreign_links {
12 | | Io(io::Error);
13 | | Websocket(ws::Error);
... |
31 | | }
32 | | }
| |_^
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to 2 previous errors

@eeeeeta
Copy link

eeeeeta commented May 27, 2019 via email

@stephen1331
Copy link

Hey i checked it out what do i do after this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants