hyperledger-archives / indy-sdk

indy-sdk
https://wiki.hyperledger.org/display/indy
Apache License 2.0
668 stars 735 forks source link

Build error in Mac OS #910

Closed atyenoria closed 6 years ago

atyenoria commented 6 years ago

How can I solve this?

cargo build                                                                                                                                                                                             2.3.5
   Compiling indy v1.4.0 (file:///Users/jima/jdd/indy-sdk/libindy)
error: non-reference pattern used to match a reference (see issue #42640)
   --> src/commands/did.rs:555:24
    |
555 |                 if let Some(data) = &res.data {
    |                        ^^^^^^^^^^ help: consider using: `&Some(data)`

error: aborting due to previous error

error: Could not compile `indy`.

From this, this might be related to https://github.com/rust-lang/rust/issues/42640

I followed this instruction https://github.com/hyperledger/indy-sdk/blob/master/doc/mac-build.md

vimmerru commented 6 years ago

@atyenoria You need to update your Rust compiler. 1.26 or 1.27 version will work.

atyenoria commented 6 years ago

@vimmerru Thanks! It works. rustup update