Crates.io | ssb-uri-rs |
lib.rs | ssb-uri-rs |
version | 0.2.0 |
source | src |
created_at | 2021-09-23 14:41:59.015707 |
updated_at | 2021-11-01 09:47:10.845513 |
description | Utilities for recognising and converting Secure Scuttlebutt (SSB) URIs |
homepage | |
repository | https://github.com/ssb-ngi-pointer/ssb-uri-rs |
max_upload_size | |
id | 455362 |
size | 50,721 |
Utilities for recognising and converting Secure Scuttlebutt (SSB) URIs according to the SSB URI Specification.
use ssb_uri_rs;
let example_uri = "ssb:message/sha256/g3hPVPDEO1Aj_uPl0-J2NlhFB2bbFLIHlty-YuqFZ3w=";
assert!(ssb_uri_rs::is_classic_msg_uri(example_uri)?);
let example_sigil = ssb_uri_rs::msg_uri_to_sigil(example_uri)?;
assert_eq!(example_sigil, "%g3hPVPDEO1Aj/uPl0+J2NlhFB2bbFLIHlty+YuqFZ3w=.sha256");
Use cargo doc
to generate and serve the Rust documentation for this library:
git clone git@github.com:ssb-ngi-pointer/ssb-uri-rs.git
cd ssb-uri-rs
cargo doc --no-deps --open
LGPL-3.0.