When I try cargo build the Rust example posted on the IOTA Chrysalis documentation website Getting Started with Rust
use iota::Client;
#[tokio::main]
async fn main() {
let iota = Client::builder() // Crate a client instance builder
.with_node("https://api.lb-0.testnet.chrysalis2.com")
.unwrap()
.finish()
.await
.unwrap();
let info = iota.get_info().await.unwrap();
println!("Nodeinfo: {:?}", info);
}
I am getting the following errors:
I also added
[dependencies]
iota-core = { git = "https://github.com/iotaledger/iota.rs", branch = "dev" }
to Cargo.toml
Also when the example is run directly on the website the following errors occur:
Can someone please help me to solve the errors?