A rust based clone of Juergen Weigert's hexdump utility, xxd.
This project was created to learn rust, therefore there is no perf If you wanna use the proect or contribute feel free, but please take note of the goal(s) and non goals so you won't waste ur time or get frustrated.
What this Project isn't about
``` USAGE: xxd-rs [OPTIONS] [SUBCOMMAND]
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS:
-i, --input-file
SUBCOMMANDS: dump Dumps an input file in the appropriate output format generate Generates a source file containing the specified file as array help Prints this message or the help of the given subcommand(s) ```
Dump file
user@host:~$ xxd-rs dump -i file.txt
Dump file with 16 bit word size
user@host:~$ xxd-rs generate -g 2 -i file.txt
Dump 1024 bytes of file file starting at offset 128
user@host:~$ xxd-rs dump -s 128 -l 1024 -i file.txt
Generate cpp header file containing file in an cpp array
user@host:~$ xxd-rs generate -t cpp -i file.txt
Be aware that the output formats (especially the default) of hexdump, xxd, od, and xxd-rs differ.
user@host:~$ xxd file
user@host:~$ od file
user@host:~$ xxd-rs dump -i file
user@host:~$ xxd-rs dump -i file