bread-cli

Crates.iobread-cli
lib.rsbread-cli
version2.0.0
sourcesrc
created_at2022-10-27 13:45:54.869232
updated_at2022-11-22 11:57:12.005437
descriptionbyte conversion tool
homepagehttps://github.com/biagang/bread
repositoryhttps://github.com/biagang/bread
max_upload_size
id699162
size563,120
(biagang)

documentation

README

bread

byte stream conversion library and CLI tool

About

bread is a cross-platform command-line tool useful for converting from and to a stream of:

  • raw bytes
  • ascii characters
  • binary, hexadecimal or other numeric base representation of bytes

For more info about supported formats see

bread-cli --help

Getting Started

Prerequisites

bread is cross-platofrm, coded in Rust; you need to have a valid Rust installation. Nightly version would be required for running benchmarks (feature "benchmark").

Get with cargo

cargo install -f bread-cli

Build from sources

  1. clone this repository
  2. build with cargo:
cargo build --release

Usage

Usage: bread [OPTIONS]

Options: -i, --input INPUT -o, --output OUTPUT

Possible values for INPUT and OUTPUT are:

  • raw: raw byte
  • bin: binary representation (g.e. '00001101')
  • hex: hexadecimal representation (g.e. 'a4')
  • ascii: ASCII characters (g.e. '!')
  • N: base N representation (note: make sure to provide required number of digits per each byte, pad with heading 0s)

[default: ascii]

-h, --help Print help information (use -h for a summary)

-V, --version Print version information

License

This project is licensed under the GNU General Public License v3.

See LICENSE for more information.

Acknowledgements

Commit count: 31

cargo fmt