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).

Home Page:https://wiki.hyperledger.org/display/ursa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to import ursa library

arunprakashpj opened this issue · comments

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 ?

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

Try running rustup update to 1.47.0

Try running rustup update to 1.47.0

Thanks @mikelodder7 ! Perfect !