iota-community / channels-examples

Sample code for IOTA Channels
8 stars 5 forks source link

Unable to build #15

Open CMIT-RomanP opened 3 years ago

CMIT-RomanP commented 3 years ago

Command "cargo build" leads to error Updating crates.io index Updating git repository https://github.com/iotaledger/iota.rs Updating git repository https://github.com/iotaledger/iota.rs Updating git repository https://github.com/iotaledger/streams Updating git repository https://github.com/iotaledger/bee.git Updating git repository https://github.com/Alex6323/bee-p.git error: no matching package named bee-ternary found location searched: https://github.com/iotaledger/bee.git?branch=dev prerelease package needs to be specified explicitly bee-ternary = { version = "0.3.2-alpha" } required by package iota-core v0.2.0-alpha.3 (https://github.com/iotaledger/iota.rs?rev=0ad8e7f#0ad8e7f7) ... which is depended on by `author v0.1.0

Changing the dependency in Cargo.toml to iota-core = { git = "https://github.com/iotaledger/iota.rs", branch = "dev" } leads to another error error[E0308]: mismatched types --> src\main.rs:39:48 39 let client: Client = Client::new(send_opt, iota_client::ClientBuilder::new().node(url).unwrap().build().unwrap()); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct iota_client::client::Client, found struct iota::Client

= note: perhaps two different versions of crate iota_client are being used?

IOTA Streams examples are probably not usable at this moment.

Thank you for any help, Roman

dangenendt commented 3 years ago

Workaround: adjust two dependencies in Cargo.toml.

  1. iota-streams branch from "master" to "develop"
  2. iota-core rev from "0ad8e7f" to "f230e64"

Build again => should work... for me it does!