soeur/rcnb-rs - wapm
Wapm logo
search

The search results will appear here

soeur/rcnb-rsWASI

0.1.2 Public • Published 3 months ago39.6 KB

Everything can be encoded into RCNB with Rust

Copy and paste to install this package
wapm install soeur/rcnb-rs

launchGithub (grade - call_split - error_outline - open issues/PRs)

rcnb-rs Node.js CI

The world is based on RC. Thus, everything can be encoded into RCNB.

RCNB is available in various languages: Rust JavaScript C PHP Pascal (more..)

Why RCNB?

RCNB vs Base64

Base64RCNB
Speed❌ Fast✔️ Slow, motivate Intel to improve their CPU
Printable❌ On all OS✔️ Only on newer OS, motivate users to upgrade their legacy OS
Niubility❌ Not at all✔️ RCNB!
ExampleQmFzZTY0Lg==ȐĉņþƦȻƝƃŔć

Install

Use Wapm (with Wasmer)

$ wapm install soeur/rcnb-rs

Use Cargo

$ cargo install rcnb-rs

From source

$ cargo build --release
// look ./target/release

From source (to wasi)

$ rustup target add wasm32-wasi
$ cargo build --release --target=wasm32-wasi
// look ./target/wasm32-wasi/release

From releases

Usage

In code

use rcnb_rs::{decode, encode};

fn main() {
    let content = "rcnb";
    let encoded = encode(content);
    let decoded = decode(&encoded);

    assert_eq!(content, decoded);
}

Cli

$ rcnb-rs --help
Usage: rcnb-rs [<content>] [-d] [-e]

RCNB!

Options:
  -d, --decode      decode
  -e, --encode      encode
  --help            display usage information

Use wapm

$ wapm run rcnb-rs -- --help

Example

Encode
$ rcnb-rs rcnb!
ɌcńƁȓČņÞŔć
Decode
$ rcnb-rs -d ɌcńƁȓČņÞŔć
rcnb!
Reads from stdin
$ cat test.txt | rcnb-rs
or
$ rcnb-rs <test.txt