7 stable releases

3.0.1 Dec 26, 2024
3.0.0 Feb 21, 2021
2.0.1 Feb 7, 2021
2.0.0 Dec 10, 2020
1.0.0 Oct 29, 2019

#610 in Parser implementations

Download history 4/week @ 2024-09-29 2/week @ 2024-11-03 14/week @ 2024-11-10 118/week @ 2024-12-22 8/week @ 2024-12-29 4/week @ 2025-01-05 4/week @ 2025-01-12

134 downloads per month

BSD-3-Clause

42KB
699 lines

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());
}

Dependencies

~0.5–6.5MB
~46K SLoC