Giter VIP home page Giter VIP logo

Comments (5)

replydev avatar replydev commented on May 31, 2024

Hi, I apologize for the delayed response. I've reverted some commits to remove some features that I think are unnecessary, since, in my spare time, I'm going to implement a simple and lightweight GUI. Try recompiling with the current source and let me know.

from cotp.

magicstone1412 avatar magicstone1412 commented on May 31, 2024

I have tried to compile again based on your suggestion but still got errors

Compiling cotp v0.1.7 (/root/cotp)
error[E0271]: type mismatch resolving `<[u8; 16] as std::convert::TryFrom<std::vec::Vec<u8>>>::Error == std::vec::Vec<u8>`
  --> src/cryptograpy.rs:87:14
   |
87 |     byte_vec.try_into()
   |              ^^^^^^^^ expected enum `std::convert::Infallible`, found struct `std::vec::Vec`
   |
   = note: expected enum `std::convert::Infallible`
            found struct `std::vec::Vec<u8>`

error[E0277]: the trait bound `[u8; 16]: std::convert::From<std::vec::Vec<u8>>` is not satisfied
  --> src/cryptograpy.rs:87:14
   |
87 |     byte_vec.try_into()
   |              ^^^^^^^^ the trait `std::convert::From<std::vec::Vec<u8>>` is not implemented for `[u8; 16]`
   |
   = note: required because of the requirements on the impl of `std::convert::Into<[u8; 16]>` for `std::vec::Vec<u8>`
   = note: required because of the requirements on the impl of `std::convert::TryFrom<std::vec::Vec<u8>>` for `[u8; 16]`
   = note: required because of the requirements on the impl of `std::convert::TryInto<[u8; 16]>` for `std::vec::Vec<u8>`

error[E0271]: type mismatch resolving `<[u8; 24] as std::convert::TryFrom<std::vec::Vec<u8>>>::Error == std::vec::Vec<u8>`
  --> src/cryptograpy.rs:92:14
   |
92 |     byte_vec.try_into()
   |              ^^^^^^^^ expected enum `std::convert::Infallible`, found struct `std::vec::Vec`
   |
   = note: expected enum `std::convert::Infallible`
            found struct `std::vec::Vec<u8>`

error[E0277]: the trait bound `[u8; 24]: std::convert::From<std::vec::Vec<u8>>` is not satisfied
  --> src/cryptograpy.rs:92:14
   |
92 |     byte_vec.try_into()
   |              ^^^^^^^^ the trait `std::convert::From<std::vec::Vec<u8>>` is not implemented for `[u8; 24]`
   |
   = note: required because of the requirements on the impl of `std::convert::Into<[u8; 24]>` for `std::vec::Vec<u8>`
   = note: required because of the requirements on the impl of `std::convert::TryFrom<std::vec::Vec<u8>>` for `[u8; 24]`
   = note: required because of the requirements on the impl of `std::convert::TryInto<[u8; 24]>` for `std::vec::Vec<u8>`

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0271, E0277.
For more information about an error, try `rustc --explain E0271`.
error: failed to compile `cotp v0.1.7 (/root/cotp)`, intermediate artifacts can be found at `/root/cotp/target`

Caused by:
  could not compile `cotp`.

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

Thank you.

from cotp.

replydev avatar replydev commented on May 31, 2024

How did you install the rust toolchain?

from cotp.

magicstone1412 avatar magicstone1412 commented on May 31, 2024

Hi, sorry for late reply. The problem was resolved when I updated rustc. Previous version rustc 1.47.0 could not compile. I have update using the below command based on https://www.rust-lang.org/

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

After updating to version 1.53.0 it has no problem. Thank you for your help.

I have an suggestion: could you please consider to push this application on https://www.flathub.org/ if the GUI version is available?

Very good application compared to the existing one.

from cotp.

replydev avatar replydev commented on May 31, 2024

Hi, i'm glad you resolved the problem, in these times i don't have much time to dedicate to my hobby projects but surely i could add cotp to Flathub! Thanks for your support.

Regards

from cotp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.