Skip to content

lukateras/rust-base36

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-base36

Base36 encoder/decoder for Rust. See: https://en.wikipedia.org/wiki/Base36

Base36 is the most compact regular encoding that is valid in domain names.

Usage

Add the crate to your project's Cargo.toml:

base36 = "1"

You are all set:

fn main() {
    let buf = [0, 1, 2, 63, 64, 65, 127, 128, 129];
    println!("{}", base36::encode(&buf));
}
$ cargo run
jvqhhz7lkzl

Documentation

See the documentation for the latest revision: https://lukateras.github.io/rust-base36/base36/

About

Base36 encoder/decoder for Rust

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages