File: encode.rs

package info (click to toggle)
rust-bs58 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 304 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 257 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#![cfg(feature = "alloc")]
use std::io::{self, Read};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut input = Vec::<u8>::new();
    io::stdin().read_to_end(&mut input)?;
    println!("{}", bs58::encode(input).into_string());
    Ok(())
}