Crates.io | did-rs |
lib.rs | did-rs |
version | 0.1.5 |
source | src |
created_at | 2019-07-25 20:51:04.898243 |
updated_at | 2019-07-25 21:05:11.743443 |
description | Implements a parser for decentralized identifiers |
homepage | |
repository | |
max_upload_size | |
id | 151647 |
size | 21,745 |
Implements a parser for decentralized identifiers. Uses pest for now to define the grammar of the generic scheme defined in the specification. This will be changed in the future to something more performant like nom.
use did_rs::DID;
fn main() {
let d = DID::parse("did:example:").expect("failed");
println!("{}", d);
}