dns-stamp-parser

Crates.iodns-stamp-parser
lib.rsdns-stamp-parser
version3.0.0
sourcesrc
created_at2019-10-29 18:58:00.756156
updated_at2021-02-21 15:37:06.741092
descriptionLibary to encode and decode DNS stamps
homepage
repositoryhttps://github.com/LinkTed/dns-stamp-parser
max_upload_size
id176717
size158,204
(LinkTed)

documentation

README

dns-stamp-parser

A library to encode and decode DNS stamp. Build status Dependency status Code coverage Latest version License

Usage

Add this to your Cargo.toml:

[dependencies]
dns-stamp-parser = "~3.0.0"

Example

use dns_stamp_parser::DnsStamp;

fn example() {
    let stamp = "sdns://AgcAAAAAAAAADTIxNy4xNjkuMjAuMjIgPhoaD2xT8-l6SS1XCEtbmAcFnuBXqxUFh2_YP9o9uDgNZG5zLmFhLm5ldC51awovZG5zLXF1ZXJ5";
    let dns_stamp = DnsStamp::decode(stamp).unwrap();
    println!("{}", dns_stamp.encode().unwrap());
}
Commit count: 48

cargo fmt