1 unstable release
Uses old Rust 2015
0.1.0 | Feb 5, 2018 |
---|
#1877 in Encoding
12KB
214 lines
proquint-rs
Proquints are readable, pronouncable representations of identifiers. This is a Rust library for converting between them.
Proquints
Read more about proquints: https://arxiv.org/html/0901.4016
Ex. the ip address 127.0.0.1
is lusab-babad
in proquint form.
Usage
extern crate proquint;
use proquint::Quintable;
use std::net::Ipv4Addr;
let home = Ipv4Addr::new(127, 0, 0, 1);
assert_eq!(home.to_quint(), "lusab-babad");
assert_eq!(u32::from_quint("rotab-vinat").unwrap(), 3141592653u32);
lib.rs
:
Library for converting to and from proquints.
Proquint
A proquint is a pronouncable representation of an identifier, such as an IP address, document number, user id, etc. The purpose is to provide a more convenient way for humans to interact/remember/communicate with unique identifiers.
Original proposal found here: https://arxiv.org/html/0901.4016
Example
use proquint::Quintable;
use std::net::Ipv4Addr;
let home = Ipv4Addr::new(127, 0, 0, 1);
assert_eq!(home.to_quint(), "lusab-babad");