Closed atozen closed 5 years ago
Solved? the first error had to add the following to lines to toml file
log = "0.4" pretty_env_logger = "0.3"
I think the second error error[E0277]: the trait bound failure::error::Error: std::error::Error is not satisfied may have a solution involving another function from failure?
fn compat(self) -> Compat
Will investigate further later
What version of rust are you using?
rustc --version
rustc 1.33.0-nightly (d22fa2d87 2019-01-08)
How are you trying to build the example?
You can build examples from the root of the sdk using
cargo build --example create_account
alternatively replace build
with run
to run it.
Check the cargo guide for more information https://doc.rust-lang.org/cargo/index.html
Thanks compiled and run using that method.
Returned public and private keys as well as following error message error: environment variable not found
Will investigate later have house repair work to do now - I have realised what some issues are. Will report back later
All working fine - creating accounts :)
My understanding of cargo and rust seems to be on a gradual increase.
Thanks for the assistance.
Hi, again this may be my lack of experience with Rust but I am stuck on these 2 errors.
error[E0433]: failed to resolve: use of undeclared type or module
pretty_env_logger
--> src/main.rs:9:5 | 9 | pretty_env_logger::try_init()?; | ^^^^^^^^^^^^^^^^^ use of undeclared type or modulepretty_env_logger
failure::error::Error: std::error::Error
is not satisfied --> src/main.rs:19:20std::error::Error
is not implemented forfailure::error::Error
= note: required because of the requirements on the impl of
failure::Fail
forfailure::error::Error
= note: required because of the requirements on the impl ofstd::convert::From<failure::error::Error>
forfailure::error::Error
= note: required bystd::convert::From::from
error: aborting due to 2 previous errors
Some errors occurred: E0277, E0433. For more information about an error, try
rustc --explain E0277
. error: Could not compilecreateaccount
.