Comments (5)
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.
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.
How did you install the rust toolchain?
from cotp.
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.
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)
- Error editing entry HOT 4
- Use color-eyre crate for error handling
- Configure Cache in CI/CD
- Use once_cell crate for lazy initialization
- Export to widely know format HOT 3
- Migrate to ratatui as tui-rs is unmainteined
- [Feature request] Is it possible to add URI string format support for both import and export HOT 13
- [Feature request] Is it possible to support some kind(s) portable mode? HOT 11
- [Feature request] Is it possible to add a Page Up/Down page navigation feature for the UI HOT 1
- Consider using the xdg specification HOT 6
- Chromium 117 freezes for several seconds when attempting to paste the token
- Minor typo s/chages/changes HOT 1
- convert export.cotp HOT 7
- The automated release is failing 🚨
- How can I use Cotp with Microsoft Teams? HOT 1
- Should downstream packaging include importers? HOT 4
- Feature Request: A way to share HOTP/TOTP URI outside of QR encoding HOT 2
- No way to import OTP URIs as strings (from stdin or arguments) without files HOT 4
- `cotp import --otp-uri --path [file]` doesn't seem to work HOT 2
- Feature request: add subcomannd `list` to list entries HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cotp.