hyperledger-archives / ursa

Hyperledger Ursa (a shared cryptographic library) has moved to end-of-life status, with the components of Ursa still in use moved to their relevant Hyperledger projects (AnonCreds, Indy, Aries and Iroha).
https://wiki.hyperledger.org/display/ursa
Apache License 2.0
321 stars 142 forks source link

Unable to import ursa library #160

Closed arunprakashpj closed 3 years ago

arunprakashpj commented 3 years ago

I am trying to execute Hyperledger Ursa(https://github.com/hyperledger/ursa) as described in https://crates.io/crates/ursa. That is , I have added the ursa as dependency in Cargo.toml. Then i just imported it as below

extern crate ferris_says; extern crate ursa;

use ferris_says::say; use std::io::{ stdout, BufWriter }; use ursa::bls::*;

fn main() { let out = b"Hello fellow Rustaceans!"; let width = 24;

let mut writer = BufWriter::new(stdout()); say(out, width, &mut writer).unwrap(); }

But the system is throwing err as , the ursa cannot be compiled. If ferris_says can work properly, why not ursa ?

mikelodder7 commented 3 years ago

What version of Rust are you using? Make sure you are on the latest version.

mikelodder7 commented 3 years ago

Try running rustup update to 1.47.0

arunprakashpj commented 3 years ago

Try running rustup update to 1.47.0

Thanks @mikelodder7 ! Perfect !