rust-birkana

Crates.iorust-birkana
lib.rsrust-birkana
version1.1.2
sourcesrc
created_at2016-10-25 07:36:17.509224
updated_at2019-02-25 12:43:47.76992
descriptionCreates Birkana rune symbols SVG representation of given hexadecimal number.
homepagehttps://github.com/lunemec/rust-birkana
repositoryhttps://github.com/lunemec/rust-birkana
max_upload_size
id7003
size16,599
Lukáš Němec (lunemec)

documentation

README

rust-birkana

Crates.io

Birkana SVG generator.

Recently I read this awesome article about representing hexadecimal numbers using runic system. So I created this little program that takes hexadecimal string on stdin and spits out SVG data on stdout. The code is not that nice, I just wanted a working version.

Download:

You can download binary versions for most common platforms from releases section.

Build:

Since cross-compilation is not in very much working state right now, you'll have to build the binary yourselves.

Steps:

  • install rust.
git clone https://github.com/lunemec/rust-birkana
cd rust-birkana
cargo build --release
mv target/release/rust-birkana .

Now you should be able use the program as described in usage section.

Usage:

echo "0123456789abcdef" | rust-birkana > target.svg

This results in this kind of SVG image:

This is a image of my name encoded in UTF-8 and represented as HEX:

You can now use this crate as a module:

In your Cargo.toml add:

[dependencies]
rust-birkana = "1.1"

And use it like this:

extern crate rust_birkana;

use rust_birkana::document_from_string;


let document = document_from_string(hex_string);
let svg_string = document.to_string();
Commit count: 34

cargo fmt