11 releases

0.2.6 Oct 14, 2019
0.2.5 May 29, 2019
0.2.4 Jan 1, 2019
0.2.3 Aug 24, 2018
0.1.0 Mar 30, 2016

#3 in Value formatting

Download history 6077/week @ 2019-12-17 2791/week @ 2019-12-24 3322/week @ 2019-12-31 5019/week @ 2020-01-07 5462/week @ 2020-01-14 4545/week @ 2020-01-21 5397/week @ 2020-01-28 4922/week @ 2020-02-04 5260/week @ 2020-02-11 5439/week @ 2020-02-18 5464/week @ 2020-02-25 5226/week @ 2020-03-03 6703/week @ 2020-03-10 8086/week @ 2020-03-17 9410/week @ 2020-03-24 8589/week @ 2020-03-31

21,174 downloads per month
Used in 196 crates (5 directly)

MIT license

16KB
371 lines

base-x

Build Status

This is a Rust fork of https://github.com/cryptocoinjs/base-x

WARNING: This module is NOT RFC3548 compliant, it cannot be used for base16 (hex), base32, or base64 encoding in a standards compliant manner.

And this my very first Rust project: please review the source code!

Installation

Add this to Cargo.toml file:

[dependencies]
base-x = "0.2.0"

Usage

extern crate base_x;

fn main() {
    let decoded = base_x::decode("01", "11111111000000001111111100000000").unwrap();
    let encoded = base_x::encode("01", &decoded);
    assert_eq!(encoded, "11111111000000001111111100000000");
}

Changelog

  • 0.2.0

    Breaking change: alphabet has to be provided as an array of bytes instead of a string.

  • 0.1.0

    initial version

Contributors

No runtime deps