A little toy written in Rust to preview a hex dump of a given file, just like xxd
First, install Rust (using the recommended rustup installation method) and then clone this repository:
$ git clone https://github.com/Ainevsia/xd.git
$ cd xd
// build release
$ cargo build --release
If you are using Rust for the first time and the progress bar stucks at the first step like this:
Updating crates.io index
Fetch [==================> ] 34.94%
You should change the source of the crates.io
. Add these lines to $HOME/.cargo/config
(if not exists, create it):
[source.crates-io]
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
and then run cargo build --release
. The Rust compile process will take pretty much time, which involves downloading and compiling the depended packages. It took me 4m 38s
to finish.
Finished release [optimized] target(s) in 4m 38s
Colored output with length-specificed limitation.
the binary is in the target/release
.
- Fork it (https://github.com/Ainevsia/xd.git)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Made with contributors-img.
xd © Ainevsia, Released under the MIT License.
Authored and maintained by DIYgod with help from contributors (list).